This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi I get the following exception while binding the object to the RMIREGISTRY. I checked using javap that obs.system.db.synchronization.DataSynchronizerImpl_Stub is in the classpath. Can any one tell me what could cause this problem. the exception is listed below:
Hmmm... you shouldn't have to run rmiregistry in the same directory - you should be specifying the "java.rmi.server.codebase" property on the command line when you run your server. This page talks all about the codebase property. In the troubleshooting section the first troubleshooting tip states -
"The first problem you might encounter is the receipt of a ClassNotFoundException when attempting to bind or rebind a remote object to a name in the registry. This exception is usually due to a malformed codebase property, resulting in the registry not being able to locate the remote object's stubs or other classes needed by the stub.
It is important to note that the remote object's stub implements all the same interfaces as the remote object itself, so those interfaces, as well as any other custom classes declared as method parameters or return values, must also be available for download from the specified codebase.
Most frequently, this exception is thrown as a result of omitting the trailing slash from the URL value of the property. Other reasons would include: the value of the property is not a URL; the path to the classes specified in the URL is incorrect or misspelled; the stub class or any other necessary classes are not all available from the specified URL."