Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI error issue

 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guru,
would you be able to show me what I wrong and check it for this error.
This error came out when I run server program after start rmiregistry and set dir=<current directory>.
------------------------------
C:\server>start rmiregistry
C:\server>rs
C:\server>start rmiregistry
C:\server>set dir=c:\server
C:\server>java -cp server.jar -Djava.rmi.server.codebase=file:///c:\server/serve
r.jar suncertify.dataserver.Server
java.rmi.ServerException: Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: suncertify.dataserver.RemoteMethods_St
ub
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 suncertify.dataserver.Server.main(Server.java:26)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex
ception is:
java.lang.ClassNotFoundException: suncertify.dataserver.RemoteMethods_St
ub
Caused by: java.lang.ClassNotFoundException: suncertify.dataserver.RemoteMethods
_Stub
thanks,
paul
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to comply with the JavaRanch Naming Policy. You can change it here. Thank you for your cooperation.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul
Some things you could look at.
Is the stub file really in the jar file? Try:
Is it there?
I am unsure what effect (if any) combining backslashes and forwardslashes in your codebase path will have.
Have you tried turning RMI debugging on in the RMI Registry to check that it is getting the codebase correctly and not mangling it or ignoring it?
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic