| Author |
RMI exception
|
uday uday
Greenhorn
Joined: Feb 24, 2004
Posts: 1
|
|
i ran a program in windows 2000 it contains the following path PATH=C:\FORTE_JDK\J2SDK1.4.0\BIN;%PATH% start RMIRegistry java -Djava.security.policy=my.policy -classpath . RMIBinder the error server exception: Server RemoteException; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested excep tion is: java.lang.ClassNotFoundException: RMIDriver_Stub java.rmi.ServerException: Server RemoteException; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested excep tion is: java.lang.ClassNotFoundException: RMIDriver_Stub at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream RemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java: 223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java:159) at RMIBinder.main(RMIBinder.java:11) Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex ception is: java.lang.ClassNotFoundException: RMIDriver_Stub Caused by: java.lang.ClassNotFoundException: RMIDriver_Stub i have the classes in both correct plz any one send the solve spkarthi_mepco82@yahoo.co.in thanks in advance
|
 |
Andrew Monkhouse
author and jackaroo
Marshal Commander
Joined: Mar 28, 2003
Posts: 10816
|
|
Hi Uday Welcome to JavaRanch. We don't have many rules here, but one we do have is the JavaRanch Official Policy On Displayed Names, which requires your displayed name to be a real name. Could you please change your displayed name to meet this policy? You can change it here. Did you run the RMI Compiler (rmic) against your classes? Did you start the RMI Registry in the base path where your stubs can be found? If not you will need to set the java.rmi.server.codebase so that the registry can find your classes (I have not gone into details because this is unnecessary for this assignment - start the RMI Registry programatically and you wont have that problem). Regards, Andrew
|
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
|
 |
 |
|
|
subject: RMI exception
|
|
|