You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/06/23 12:43:51 UTC

[jira] Resolved: (JCR-1457) Restart of RMI-component fails (because it's not released while shutdown)

     [ https://issues.apache.org/jira/browse/JCR-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-1457.
--------------------------------

         Assignee: Jukka Zitting
    Fix Version/s: 2.2.0
       Resolution: Fixed

Fixed in revision 957151.

> Restart of RMI-component fails (because it's not released while shutdown)
> -------------------------------------------------------------------------
>
>                 Key: JCR-1457
>                 URL: https://issues.apache.org/jira/browse/JCR-1457
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-webapp
>    Affects Versions: 1.4
>         Environment: Tomcat 5.5
>            Reporter: Guido Jäkel
>            Assignee: Jukka Zitting
>            Priority: Critical
>             Fix For: 2.2.0
>
>
> I just moved setup model for the Jackrabbit repository from a Tomcat-global JNDI-datasouce to a autonomous server connected via RMI to get rid off the problem of a total restart of the tomcat, if e.g. something is changed in the jackrabbit setup.
> But the restart of the RMI component of the jackrabbit server package will fail, because on shutdown the rmi binding isn't released. From that, at restart, the socket is still in use and the (just) RMI component fails to start. In the other hand, it isn't possible to connect to the server through the remaining rmi component; you'll get a EOF-exception in RMI communication. Of course, a complete restart of the Tomcat will help, but isn't appropriate. 
> It looks to me like just some release on shutdown is missing. May somebody provide a patch?
> (log exception at restart)
> 20080306-093849.086 INFO  [ajp-8009-2] [] [RepositoryStartupServlet] Cannot create Registry
> java.rmi.server.ExportException: Port already in use: 1099; nested exception is: 
>         java.net.BindException: Address already in use
>         at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:249)
>         at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:184)
>         at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
>         at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
>         at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
>         at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
>         at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:68)
>         at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:222)
>         at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.registerRMI(RepositoryStartupServlet.
>         at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.startup(RepositoryStartupServlet.java
>         at org.apache.jackrabbit.j2ee.RepositoryStartupServlet.init(RepositoryStartupServlet.java:21
>         at javax.servlet.GenericServlet.init(GenericServlet.java:212)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.