• 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

RMI Learning

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Everybody:
This is first time I am learning RMI. I picked up JGuru Calculator problem. It looked like easy to learn. I got following compiles class files.
Calculator.class
CalculatorImplementation.class
CalculatorServer.class
CalculatorClient.class
CalculatorImplementation_Stub.class
CalculatorImplementation_Skel.class
Here is the problem. I typed rmiregistry on DOS prompt as their instruction. I got �security properties not found. using defaults� message and window is busy(blinking curser).
I opened second window typed
C:\WINDOWS>cd\
C:\>cd myjava\rmi\Jguru
C:\myJava\rmi\jGuru>start rmiregistry
C:\myJava\rmi\jGuru>
Another window blinks for a second and goes off. I typed and had following errors.
C:\myJava\rmi\jGuru>java CalculatorServer
Trouble: java.rmi.ServerException: Server RemoteException; nested exception is:java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: CalculatorImplementation_Stub
This is my just guess problem should be somewhere CalculatorServer.java in main Naming.rebind("rmi:\\localhost:1099\\CalculatorServer", c); OR CalculatorClient.java file in main Calculator c = Calculator) Naming.lookup("rmi:\\127.0.0.1\\CalculatorServer");
Where could be the problem? Does anyone need more code to be clear ? Please let me know. Any response will be highly appreciated. Thanks in advance - Bal
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic