Naming.rebind() failing to connect to a running registry.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vishal_saxena
Posted On:   Wednesday, June 7, 2006 10:56 AM

My thanks to somebody who can shoot this; I am stuck. Note that the rmi registry has started successfully; still Naming.rebind() fails to connect. Is it because the rmiregistry 1099 starts at hostname and localhost doesn't resolve to it? INFO [main] (DepMgrRemoteIntStubExporter.java:57) - Exporting Remote Object Stub - DepMgrRemoteIntStub INFO [main] (DepMgrDiagnosticsHelper.java:248) - Loading File: DepMgrDiagnostics.properties INFO [main] (DepMgrRemoteIntStubExporter.java:98) - Starting the rmiregistry @port1099 INFO [main] (DepMgrRemoteIntStubExporter.java:107) - STarted the registry @port: 1099 INFO [main] (DepMgrRemoteIntStubExporter.java:80) - Binding the remote object://local   More>>


My thanks to somebody who can shoot this; I am stuck.


Note that the rmi registry has started successfully; still Naming.rebind() fails to connect. Is it because the rmiregistry 1099 starts at hostname and localhost doesn't resolve to it?

			
INFO [main] (DepMgrRemoteIntStubExporter.java:57) - Exporting Remote Object Stub - DepMgrRemoteIntStub
INFO [main] (DepMgrDiagnosticsHelper.java:248) - Loading File: DepMgrDiagnostics.properties
INFO [main] (DepMgrRemoteIntStubExporter.java:98) - Starting the rmiregistry @port1099
INFO [main] (DepMgrRemoteIntStubExporter.java:107) - STarted the registry @port: 1099
INFO [main] (DepMgrRemoteIntStubExporter.java:80) - Binding the remote object://localhost:1099/DepMgrRemote DepMgrRemoteIntStub job:ParentNode snapShot:2006:06:07:11:06:36
ERROR [main] (DepMgrRemoteIntStubExporter.java:84) - Failed to bind remote object://localhost:1099/DepMgrRemote DepMgrRemoteIntStub job:ParentNode snapShot:2006:06:07:11:06:36
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at com.gs.fw.depmgr.diagnostics.stub.DepMgrRemoteIntStubExporter.bind(DepMgrRemoteIntStubExporter.java:81)
at com.gs.fw.depmgr.diagnostics.stub.DepMgrRemoteIntStubExporter.exportRemoteServiceStub(DepMgrRemoteIntStubExporter.java:61)
at com.gs.fw.depmgr.diagnostics.TestDepMgrDiagnostics.setUp(TestDepMgrDiagnostics.java:51)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
   <<Less
About | Sitemap | Contact