[Mc4j-development] [ mc4j-Bugs-960784 ] Connection to JSR160 fails with java.io.IOException: Failed
Brought to you by:
ghinkl
From: SourceForge.net <no...@so...> - 2004-05-26 12:53:30
|
Bugs item #960784, was opened at 2004-05-26 07:42 Message generated for change (Comment added) made by ghinkl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=493495&aid=960784&group_id=60228 Category: Connections Group: MC4J 1.2b5 >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Philippe Mouawad (pmouawad) >Assigned to: Greg Hinkle (ghinkl) Summary: Connection to JSR160 fails with java.io.IOException: Failed Initial Comment: I have set the following parameters: Initial Context Factory : com.sun.jndi.rmi.registry.RegistryContextFactory JNDI name : DKT Principle: test Password: test ServerURL : service:jmx:rmi://localhost:5000/jndi/DKT This connection works with the Patches I had submitted on MC4J 1.2b4 but you didn't take them into account :-( java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.management.remote.rmi.RMIConnector.connect (RMIConnector.java:317) at javax.management.remote.JMXConnectorFactory.connect (JMXConnectorFactory.java:247) at org.mc4j.console.connection.JSR160ConnectionNode.con nect(JSR160ConnectionNode.java:69) at org.mc4j.console.connection.ReconnectAction.performAct ion(ReconnectAction.java:37) at org.openide.util.actions.NodeAction$3.run (NodeAction.java:440) at org.openide.util.actions.CallableSystemAction$ActionRunn able.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.invokeActio n(CallableSystemAction.java:179) at org.openide.util.actions.CallableSystemAction.access$000 (CallableSystemAction.java:31) at org.openide.util.actions.CallableSystemAction$ActionRunn able.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: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:640) at javax.naming.InitialContext.getDefaultInitCtx (InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx (InitialContext.java:280) at javax.naming.InitialContext.lookup (InitialContext.java:347) at javax.management.remote.rmi.RMIConnector.findRMIServ erJNDI(RMIConnector.java:1785) at javax.management.remote.rmi.RMIConnector.findRMIServ er(RMIConnector.java:1751) at javax.management.remote.rmi.RMIConnector.connect (RMIConnector.java:259) [catch] ... 17 more ---------------------------------------------------------------------- >Comment By: Greg Hinkle (ghinkl) Date: 2004-05-26 07:53 Message: Logged In: YES user_id=773314 Duplicate of #908162 (These fixes will be in the next release) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=493495&aid=960784&group_id=60228 |