Skip to main content

Error while connecting jain slee through jmxri

3 replies [Last post]
tallapanenijyothi
Offline
Joined: 2008-07-18
Points: 0

Hi,

Can any body please help me

Iam getting the following error while connecting jain slee through JMXRI (I downloaded Open Cloud Rhino SLEE SDK 1.4.5 (release 03),and started the server and while connecting through JMXRI using the following URL service:jmx:rmi:///jndi/rmi://localhost:1199/opencloud/rhino
the following error is coming)

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.opencloud.util.RMISSLFactory (no security manager: RMI class loader disabled)]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.opencloud.util.RMISSLFactory (no security manager: RMI class loader disabled)]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 4 more
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: com.opencloud.util.RMISSLFactory (no security manager: RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
... 9 more
Caused by: java.lang.ClassNotFoundException: com.opencloud.util.RMISSLFactory (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at sun.rmi.transport.tcp.TCPEndpoint.read(TCPEndpoint.java:511)
at sun.rmi.transport.LiveRef.read(LiveRef.java:257)
at sun.rmi.server.UnicastRef2.readExternal(UnicastRef2.java:54)
at java.rmi.server.RemoteObject.readObject(RemoteObject.java:438)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccjava.io.IOException: Failed to retrieve RMIServer stub:

Even if we keep the jars(rhino-client.jar,slee.jar) in classpath also we are getting te same error while conecting.

Thanks in advance for your support,
Jyothi .Tallapaneni

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vickyk
Offline
Joined: 2006-06-27
Points: 0

>>connecting through JMXRI using the following URL >>service:jmx:rmi:///jndi/rmi://localhost:1199/opencloud/rhino

How are you trying this ?
If you can explain this in details I can give it a try , looks to me that the java policy files needs to be changed .

BTW this should have been in opencloud forums and not here , I don't see this related to mobicents server .

tallapanenijyothi
Offline
Joined: 2008-07-18
Points: 0

Hi,

Thanks for your reply.
As we included the jars,that problem was solved.
Can you please tell what the following error is

java.rmi.ConnectIOException: Exception creating connection to: 192.168.117.78; nested exception is:
java.io.IOException: RMISSL requires SSL for key 'jmxr-adaptor' but it is not configured
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:587)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2239)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:271)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.adventnet.adaptors.snmp.ui.SnmpAdaptorConfigurator.getMBeanServerConnection(SnmpAdaptorConfigurator.java:534)
at com.adventnet.adaptors.snmp.ui.SnmpAdaptorConfigurator.access$600(SnmpAdaptorConfigurator.java:48)
at com.adventnet.adaptors.snmp.ui.SnmpAdaptorConfigurator$ClientConnectThread.run(SnmpAdaptorConfigurator.java:1471)
Caused by: java.io.IOException: RMISSL requires SSL for key 'jmxr-adaptor' but it is not configured
at com.opencloud.util.RMISSLFactory.loadClientContext(RMISSLFactory.java:142)
at com.opencloud.util.RMISSLFactory.createSocket(RMISSLFactory.java:152)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 10 more

Thanks in advance for your support,
Jyothi.

david_ferry
Offline
Joined: 2006-05-07
Points: 0

Hi

If you are using the RI, or a version of Rhino please go to

http://developer.opencloud.com

and discuss the issue there.

Mobicents, the RI, and Rhino are all different implementations of the JSLEE standards.