• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Learning

 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic