[Mc4j-development] Error: java.rmi.NoSuchObjectException
Brought to you by:
ghinkl
From: <Ma...@gm...> - 2004-09-23 09:23:41
|
Hey all, I use MC4J 2.0.1 over JSR160 with MX4J 1.2 beta 5 and almost every second time when I want to connect to the JMXConnectorServer I get a Rmi.NoSuchObjectException. After shutting down MC4J and restarting MX4J one or two times I get the connection again. The only thing I change in MC4J is the Server URL which is always a different JMXServiceURL each time i restart the MX4J server. In the code: JMXServiceURL address = new JMXServiceURL("service:jmx:rmi://"); I get from the server which changes each time restarting the server: RMIConnectorServer started at: service:jmx:rmi://kstblb60/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHc5AAtVbmljYXN0UmVmMgAADjE0MS43My4xMzAuMTE5AAAG+gAAAAAAAAAAAPyZRAAAAP8qi0vsgAAAeA== Where's the problem of this confusing behaviour? Why doesn't work, for instance: JMXServiceURL address = new JMXServiceURL ("service:jmx:rmi://kstblb60/stub/xyz"); The exception in detail: java.rmi.NoSuchObjectException: no such object in table 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:69) at org.mc4j.console.connection.ReconnectAction.performAction(ReconnectAction.java:37) 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:71) 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) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686) Thanx for any help! -- GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail +++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++ |