• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help me to solve java.rmi.UnmarshalException

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the stub class in the classpath when you run the server?
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic