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
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.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
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