• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me to solve java.rmi.UnmarshalException

 
galib gaurav
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the stub class in the classpath when you run the server?
 
chandana nannapaneni
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic