[ 
https://issues.apache.org/jira/browse/KARAF-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176292#comment-14176292
 ] 

ASF GitHub Bot commented on KARAF-3325:
---------------------------------------

GitHub user wm3 opened a pull request:

    https://github.com/apache/karaf/pull/50

    [KARAF-3325] Add a workaround to avoid sudden shutdown

    This change is a copy of the change that fixes the same issue of Tomcat.
    
    
https://github.com/apache/tomcat70/commit/4b1818de6f2d79c8b4e0362830cbe10f23685a3a#diff-4ff8e67f5558cd457dc3fcbe7c7581a9R47


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wm3/karaf bugfix-49-days-shutdown-2.3.8

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/50.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #50
    
----
commit 0349d582c4899f19ad73ee37c8c688660cbc7354
Author: Motoi Washida <w...@mail.w3ch.jp>
Date:   2014-10-19T11:20:22Z

    [KARAF-3325] Add a workaround to avoid sudden shutdown

----


> Karaf throws SocketTimeoutException and exits after 49 days
> -----------------------------------------------------------
>
>                 Key: KARAF-3325
>                 URL: https://issues.apache.org/jira/browse/KARAF-3325
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 2.2.10
>         Environment: OpenJDK 7, Linux 3.X (I can't remember the exact version 
> but I'll check it later)
>            Reporter: Motoi Washida
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to