aspose file tools*
The moose likes Distributed Java and the fly likes help me to solve java.rmi.UnmarshalException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "help me to solve java.rmi.UnmarshalException" Watch "help me to solve java.rmi.UnmarshalException" New topic
Author

help me to solve java.rmi.UnmarshalException

galib gaurav
Greenhorn

Joined: Jan 02, 2009
Posts: 1
i was trying to create distributed application using
RMI on the single system with having two command prompt open.my operating system is window xp.....every thing went ok..
i created these thing in the same folder where we have set the path....
1.remote interface
2.implemented the remote interface
3.RMI server
4.RMI Client
after this i compiled these codes and did not get any error.
then i created a policy file named .java.policy. by using Policy Tool utility under my home directory , it correct and i got a success message.
....
then i generated stub and skelton using rmic compiler,
i did not use any option ,directly used rmic <ClassFile> syntax.
then for starting RMI registry i used command start rmiregistry at the default port number 1099.
****now to run RMIserver i used command
java <RMIserver>
i got the following exception please help
java.rmi.ServerException:Remote Exception;nestedexception is:
java.rmi.UnmarshalException;error unmarshalling arguments;
nested exception is ;
java.lang.ClassNotFoundException:calculatorImpl_stub
........here CalculatorImpl is implementation of remote interface
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Is the stub class in the classpath when you run the server?


apigee, a better way to API!
chandana nannapaneni
Ranch Hand

Joined: Dec 18, 2008
Posts: 39
What version of java are you using? if you are using java edition 5.0 and above, use javac for compilation.there is no need to use rmic.


Chandana.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help me to solve java.rmi.UnmarshalException