This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes java.rmi.ServerException: RemoteException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java.rmi.ServerException: RemoteException " Watch "java.rmi.ServerException: RemoteException " New topic
Author

java.rmi.ServerException: RemoteException

Roshini Sridharan
Ranch Hand

Joined: Jan 16, 2001
Posts: 143
Hi All,
How do i get rid of this error, I am trying to run a simple RMI Program and got stuck up with this error in Windows Platform. I use JDK1.4. Also i would like to know the steps if the RMI Client and RMI Server runs in different machines.
Also if i set the default in the implementation program
System.setSecurityManager(new RMISecurityManager())
i get an error stating AccessControlException
-------------------------------------------------------------------------
Exception in thread "main" java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MsgImpl_Stub
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at MsgImpl.main(MsgImpl.java:19)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MsgImpl_Stub
... 6 more
Caused by: java.lang.ClassNotFoundException: MsgImpl_Stub
... 6 more
-------------------------------------------------------------------------
Regards
Roshini
Mark Webb
Greenhorn

Joined: Aug 31, 2002
Posts: 10
did you run rmic against the RMI class ?
Roshini Sridharan
Ranch Hand

Joined: Jan 16, 2001
Posts: 143
yes i did.
 
jQuery in Action, 2nd edition
 
subject: java.rmi.ServerException: RemoteException