Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.ServerException: RemoteException

 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you run rmic against the RMI class ?
 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i did.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic