Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3325

Karaf throws SocketTimeoutException and exits after 49 days

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.10
    • Fix Version/s: 3.0.3, 2.4.1, 2.3.9, 4.0.0.M2, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Java: OpenJDK 1.7.0_55 (64 Bit)
      OS: Linux 3.2.34-55.46.amzn1.x86_64

      Description

      When a Karaf instance is launched, it suddenly exited after about 50 days.

      This issue is very similar to that of Apache Tomcat

      https://issues.apache.org/bugzilla/show_bug.cgi?id=56684

      In my case, I launched an instance at 7/22 10:35, but it stopped at 9/10 3:40. Here is the log when I encountered this issue:

      2014-09-10 03:40:05,800 INFO NioProcessor-2 ServerSession 24 - org.apache.sshd.core - 0.8.0 Session karaf@/127.0.0.1:41720 closed
      2014-09-10 03:40:12,326 WARN RMI TCP Accept-0 tcp - - RMI TCP Accept-0: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=47123] throws
      java.net.SocketTimeoutException: Accept timed out
      at java.net.PlainSocketImpl.socketAccept(Native Method)[:1.7.0_55]
      at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)[:1.7.0_55]
      at java.net.ServerSocket.implAccept(ServerSocket.java:530)[:1.7.0_55]
      at java.net.ServerSocket.accept(ServerSocket.java:498)[:1.7.0_55]
      at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:52)[:1.7.0_55]
      at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:388)[:1.7.0_55]
      at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:360)[:1.7.0_55]
      at java.lang.Thread.run(Thread.java:744)[:1.7.0_55]
      2014-09-10 03:40:14,806 ERROR Thread-3 Main - - Karaf shutdown socket: accept:
      java.net.SocketTimeoutException: Accept timed out
      at java.net.PlainSocketImpl.socketAccept(Native Method)[:1.7.0_55]
      at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)[:1.7.0_55]
      at java.net.ServerSocket.implAccept(ServerSocket.java:530)[:1.7.0_55]
      at java.net.ServerSocket.accept(ServerSocket.java:498)[:1.7.0_55]
      at org.apache.karaf.main.Main$ShutdownSocketThread.run(Main.java:1430)[karaf.jar:2.2.10]

      Although its version is 2.2.10, I think maintained Karaf has this issues too.

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              Motoi Washida Motoi Washida
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: