aspose file tools*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.rmi.ServerException: RemoteException
 
Similar Threads
unable to run server
ClassNotFoundException : FastNamingProperties
Problem while starting rmi server
AccessControlException
problem with rmi