java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable {java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, java.naming.factory.url.pkgs=org.apache.naming:org.jboss.naming:org.jnp.interfaces, jmx.remote.protocol.provider.class.loader=org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@7ead7ead, jmx.remote.credentials=[Ljava.lang.String;@76c176c1} [Root exception is java.lang.NullPointerException]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via ibm.com by Unknown author, 1 year ago
Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable {java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, java.naming.factory.url.pkgs
via Oracle Community by 843793, 1 year ago
Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory] [exec]
via Stack Overflow by Steve
, 2 years ago
Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: jmxrmi
via Stack Overflow by Voulzy
, 2 years ago
Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: rmi://localhost:1099/jmx-rmi -- service jboss.naming.context.j ava.rmi:.localhost:1099.jmx-rmi
via coderanch.com by Unknown author, 1 year ago
Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
via coderanch.com by Unknown author, 1 year ago
Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable {java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, java.naming.factory.url.pkgs=org.apache.naming:org.jboss.naming:org.jnp.interfaces, jmx.remote.protocol.provider.class.loader=org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@7ead7ead, jmx.remote.credentials=[Ljava.lang.String;@76c176c1} [Root exception is java.lang.NullPointerException]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:235)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:243)
at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:327)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:357)
at javax.naming.InitialContext.internalInit(InitialContext.java:295)
at javax.naming.InitialContext.(InitialContext.java:212)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1896)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1868)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:269)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:350)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:260)
at com.approuter.logging.JMXLogPublisher.getMBeanServerConnection(JMXLogPublisher.java:66)
at com.approuter.logging.JMXLogPublisher.invokeRMImethod(JMXLogPublisher.java:91)
at com.approuter.logging.JMXLogPublisher.publish(JMXLogPublisher.java:109)
at java.util.logging.Logger.log(Logger.java:1127)
at java.util.logging.Logger.log(Logger.java:1023)
at com.approuter.module.database.util.DataSourceFactory.createNewDataSourceInstance(DataSourceFactory.java:32)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.