2 Replies Latest reply on Feb 22, 2014 8:58 AM by danielsap

    Application suddenly stop working

    danielsap

      Hi, I have ear application deployed on jboss-4.0.5.GA

       

      It works some time and it stops. it worked 25 hours last time and 37 hours previous time!

       

      I have this in my log

       

      2014-02-20 20:54:57,613 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000

      2014-02-20 20:57:30,585 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect

      2014-02-20 20:57:30,585 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)

      2014-02-20 20:57:30,585 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

      2014-02-20 20:57:52,444 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect

      2014-02-20 20:57:52,444 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)

      2014-02-20 20:57:52,444 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

      2014-02-20 20:58:38,227 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect

      2014-02-20 20:58:38,227 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)

      2014-02-20 20:58:38,227 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

      2014-02-20 20:59:01,290 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect

      2014-02-20 20:59:01,290 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)

      2014-02-20 20:59:01,290 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

      2014-02-20 20:59:22,290 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect

      2014-02-20 20:59:22,290 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)

      2014-02-20 20:59:22,290 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

      2014-02-20 20:59:43,290 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect

      2014-02-20 20:59:43,290 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)

      2014-02-20 20:59:43,290 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

      2014-02-20 21:02:27,621 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000

       

       

      This is the code

       

      public class InboxService implements InboxServiceMBean

      {   

          @Override

          public void start()

          {

              AsyncReceiver receiver = new AsyncReceiver();

              receiverRunnable = new ReceiverRunnable(receiver);

              (new Thread(receiverRunnable)).start();

          }

       

          @Override

          public void stop()

          {

              logger.info("stop() called");

              receiverRunnable.terminate = true;

          }

      }

       

      class ReceiverRunnable implements Runnable

      {

          AsyncReceiver receiver;

          public Boolean terminate = false;

       

          public ReceiverRunnable(AsyncReceiver receiver)

          {

              this.receiver = receiver;

          }

       

          @Override

          public void run()

          {

              while (!terminate)

                  receiver.execute();

          }

       

      }

       

      The problem is that i expect the thread to loop a lot

        while (!terminate)

        

      receiver.execute();

       

      But it loops only a few times and then exists.

       

      I suspect that JBoss stops my application or the thread is killed from the IdleRemover.

      Please, help me!