Menu

#33 Can't connect to JSR160

v1.2b7
open-invalid
nobody
5
2004-11-17
2004-11-17
No

I'm having the following exception:
java.rmi.ServerError: Error occurred in server thread;
nested exception is:
java.lang.NoSuchMethodError:
javax.management.MBeanServer.getClassLoaderRepository()Ljavax/management/loading/ClassLoaderRepository;
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:289)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at
javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown
Source)
at
javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2203)
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:271)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
at
org.mc4j.console.connection.JSR160ConnectionNode.connect(JSR160ConnectionNode.java:106)
at
org.mc4j.console.ConnectAction.performAction(ConnectAction.java:76)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Caused by: java.lang.NoSuchMethodError:
javax.management.MBeanServer.getClassLoaderRepository()Ljavax/management/loading/ClassLoaderRepository;
at
javax.management.remote.rmi.RMIConnectionImpl$2.run(RMIConnectionImpl.java:1282)
at java.security.AccessController.doPrivileged(Native
Method)
at
javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderRepository(RMIConnectionImpl.java:1279)
at
javax.management.remote.rmi.RMIConnectionImpl.access$000(RMIConnectionImpl.java:82)
at
javax.management.remote.rmi.RMIConnectionImpl$1.run(RMIConnectionImpl.java:135)
at java.security.AccessController.doPrivileged(Native
Method)
at
javax.management.remote.rmi.RMIConnectionImpl.<init>(RMIConnectionImpl.java:132)
at
javax.management.remote.rmi.RMIJRMPServerImpl.makeClient(RMIJRMPServerImpl.java:137)
at
javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
[catch] at java.lang.Thread.run(Thread.java:534)

I'm using JRE 1.4.2_05

The latest Sun's implementation of JMX
JMX remote API (jmxremote.jar) 1.0.1_03
JMX (jmxri.jar and jmxtools.jar) 1.2.1

Adding these jars to the MC4J classPathEntry does not
change anything.

Thanks for the support
Gilles DEVAUX

Discussion

  • Gilles DEVAUX

    Gilles DEVAUX - 2004-11-17

    Logged In: YES
    user_id=1160404

    I found the solution.
    My application is running on Tomcat 5.0.x and the library
    used was jmx.jar in tomcat\bin directory. Replacing this lib
    by the latest version (1.2.1) solved the problem.

     
  • Gilles DEVAUX

    Gilles DEVAUX - 2004-11-17
    • status: open --> open-invalid
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.