• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI exception

 
uday uday
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 11866
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic