Menu

#29 Exceptions and Error when connected to a Server

open
nobody
5
2015-02-08
2004-05-27
Anonymous
No

The Exceptions and Errors after a few min of successful
connection. I知 running the MC4J and connect to a
Server from MX4J simple example.
Could anyone tell me how to fix this problem? Thanks in
advance, Alex.

I have the following:
MC4J: v. 1.2 beta 4
Mx4J: v. 2.0.
JAVA: java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2_01-b06) Java HotSpot(TM) Client VM (build
1.4.2_01-b06, mixed mode)

Exceptions&Errors:
java.lang.reflect.UndeclaredThrowableException
at $Proxy10.queryNames(Unknown Source)
at
org.mc4j.console.connection.ConnectionNode.loadConnec
tionNodeChildren(ConnectionNode.java:172)
at
org.mc4j.console.connection.ConnectionNode.refresh
(ConnectionNode.java:369)
at
org.mc4j.console.connection.ConnectionNode$1.run
(ConnectionNode.java:342)
at java.util.TimerThread.mainLoop
(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
Caused by:
javax.management.remote.JMXServerErrorException:
Error thrown during invocation
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain
(RMIConnectionSubjectInvoker.java:103)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$00
0(RMIConnectionSubjectInvoker.java:32)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run
(RMIConnectionSubjectInvoker.java:89)
at java.security.AccessController.doPrivileged
(Native Method)
at mx4j.remote.MX4JRemoteUtils.subjectInvoke
(MX4JRemoteUtils.java:135)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInv
oke(RMIConnectionSubjectInvoker.java:85)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke
(RMIConnectionSubjectInvoker.java:79)
at $Proxy0.queryNames(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl.queryN
ames(RMIConnectionImpl.java:170)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
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.r
un(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFr
omServer(StreamRemoteCall.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke
(UnicastRef.java:133)
at com.sun.jmx.remote.internal.PRef.invoke
(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl_Stub.q
ueryNames(Unknown Source)
at
javax.management.remote.rmi.RMIConnector$RemoteMBe
anServerConnection.queryNames
(RMIConnector.java:798)
at
org.mc4j.console.connection.proxy.JMXRemotingMBeanSe
rverProxy.invoke
(JMXRemotingMBeanServerProxy.java:68)
... 6 more
Caused by: java.lang.NoClassDefFoundError:
sun/reflect/MethodAccessorImpl
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass
(ClassDefiner.java:45)
at sun.reflect.MethodAccessorGenerator$1.run
(MethodAccessorGenerator.java:381)
at java.security.AccessController.doPrivileged
(Native Method)
at
sun.reflect.MethodAccessorGenerator.generate
(MethodAccessorGenerator.java:377)
at
sun.reflect.MethodAccessorGenerator.generateMethod
(MethodAccessorGenerator.java:59)
at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:28)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at mx4j.remote.rmi.RMIMarshaller.unmarshal
(RMIMarshaller.java:169)
at mx4j.remote.rmi.RMIMarshaller.unmarshal
(RMIMarshaller.java:148)
at mx4j.remote.rmi.RMIMarshaller.unmarshal
(RMIMarshaller.java:128)
at
mx4j.remote.rmi.RMIConnectionInvoker.queryNames
(RMIConnectionInvoker.java:164)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at mx4j.remote.rmi.RMIConnectionProxy.invoke
(RMIConnectionProxy.java:36)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain
(RMIConnectionSubjectInvoker.java:98)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$00
0(RMIConnectionSubjectInvoker.java:32)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run
(RMIConnectionSubjectInvoker.java:89)
at java.security.AccessController.doPrivileged
(Native Method)
at mx4j.remote.MX4JRemoteUtils.subjectInvoke
(MX4JRemoteUtils.java:135)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInv
oke(RMIConnectionSubjectInvoker.java:85)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke
(RMIConnectionSubjectInvoker.java:79)
at $Proxy0.queryNames(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl.queryN
ames(RMIConnectionImpl.java:170)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
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.r
un(TCPTransport.java:701)
[catch] at java.lang.Thread.run(Thread.java:534)
==>
javax.management.remote.JMXServerErrorException:
Error thrown during invocation
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain
(RMIConnectionSubjectInvoker.java:103)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$00
0(RMIConnectionSubjectInvoker.java:32)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run
(RMIConnectionSubjectInvoker.java:89)
at java.security.AccessController.doPrivileged
(Native Method)
at mx4j.remote.MX4JRemoteUtils.subjectInvoke
(MX4JRemoteUtils.java:135)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInv
oke(RMIConnectionSubjectInvoker.java:85)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke
(RMIConnectionSubjectInvoker.java:79)
at $Proxy0.queryNames(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl.queryN
ames(RMIConnectionImpl.java:170)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
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.r
un(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFr
omServer(StreamRemoteCall.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke
(UnicastRef.java:133)
at com.sun.jmx.remote.internal.PRef.invoke
(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl_Stub.q
ueryNames(Unknown Source)
at
javax.management.remote.rmi.RMIConnector$RemoteMBe
anServerConnection.queryNames
(RMIConnector.java:798)
at
org.mc4j.console.connection.proxy.JMXRemotingMBeanSe
rverProxy.invoke
(JMXRemotingMBeanServerProxy.java:68)
at $Proxy10.queryNames(Unknown Source)
at
org.mc4j.console.connection.ConnectionNode.loadConnec
tionNodeChildren(ConnectionNode.java:172)
at
org.mc4j.console.connection.ConnectionNode.refresh
(ConnectionNode.java:369)
at
org.mc4j.console.connection.ConnectionNode$1.run
(ConnectionNode.java:342)
at java.util.TimerThread.mainLoop
(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
Caused by: java.lang.NoClassDefFoundError:
sun/reflect/MethodAccessorImpl
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass
(ClassDefiner.java:45)
at sun.reflect.MethodAccessorGenerator$1.run
(MethodAccessorGenerator.java:381)
at java.security.AccessController.doPrivileged
(Native Method)
at
sun.reflect.MethodAccessorGenerator.generate
(MethodAccessorGenerator.java:377)
at
sun.reflect.MethodAccessorGenerator.generateMethod
(MethodAccessorGenerator.java:59)
at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:28)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at mx4j.remote.rmi.RMIMarshaller.unmarshal
(RMIMarshaller.java:169)
at mx4j.remote.rmi.RMIMarshaller.unmarshal
(RMIMarshaller.java:148)
at mx4j.remote.rmi.RMIMarshaller.unmarshal
(RMIMarshaller.java:128)
at
mx4j.remote.rmi.RMIConnectionInvoker.queryNames
(RMIConnectionInvoker.java:164)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at mx4j.remote.rmi.RMIConnectionProxy.invoke
(RMIConnectionProxy.java:36)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain
(RMIConnectionSubjectInvoker.java:98)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$00
0(RMIConnectionSubjectInvoker.java:32)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run
(RMIConnectionSubjectInvoker.java:89)
at java.security.AccessController.doPrivileged
(Native Method)
at mx4j.remote.MX4JRemoteUtils.subjectInvoke
(MX4JRemoteUtils.java:135)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInv
oke(RMIConnectionSubjectInvoker.java:85)
at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke
(RMIConnectionSubjectInvoker.java:79)
at $Proxy0.queryNames(Unknown Source)
at
javax.management.remote.rmi.RMIConnectionImpl.queryN
ames(RMIConnectionImpl.java:170)
at
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown
Source)
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.r
un(TCPTransport.java:701)
[catch] at java.lang.Thread.run(Thread.java:534)

Discussion


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.