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

Jean-Baptiste Onofré commented on KARAF-6796:
---------------------------------------------

Just to be clear: the problem is about a race condition where jndi feature 
starts before the management feature. So having the management feature in stage 
1 (before jndi) fix the problem.

> Startup w/ jndi feature causes intermittent JMX bind failure
> ------------------------------------------------------------
>
>                 Key: KARAF-6796
>                 URL: https://issues.apache.org/jira/browse/KARAF-6796
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.9
>            Reporter: Matt Pavlovich
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> Clean startup of Karaf 4.2.9 w/ the jndi feature added to featuresBoot causes 
> JMX listener bind failure
> {noformat}
> Exception in thread "JMX Connector Thread 
> [service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]" 
> java.lang.RuntimeException: Could not start JMX connector server              
>                                                                               
>                                                     
>       at 
> org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:435)
>       at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: java.io.IOException: Cannot bind to URL 
> [rmi://0.0.0.0:1099/karaf-root]: javax.naming.NoInitialContextException
>       at 
> java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:854)
>       at 
> java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:501)
>       at 
> org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:418)
>       ... 1 more
> Caused by: javax.naming.NoInitialContextException
>       at 
> org.apache.aries.jndi.DelegateContext.getDefaultContext(DelegateContext.java:233)
>       at 
> org.apache.aries.jndi.DelegateContext.getURLContext(DelegateContext.java:256)
>       at 
> org.apache.aries.jndi.DelegateContext.findContext(DelegateContext.java:214)
>       at org.apache.aries.jndi.DelegateContext.bind(DelegateContext.java:82)
>       at java.naming/javax.naming.InitialContext.bind(InitialContext.java:417)
>       at 
> java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:713)
>       at 
> java.management.rmi/javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:496)
>       ... 2 more
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to