GeeCON Prague 2014*
The moose likes Distributed Java and the fly likes java.lang.ClassNotFoundException: HelloServer_Stub Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Bookmark "java.lang.ClassNotFoundException: HelloServer_Stub" Watch "java.lang.ClassNotFoundException: HelloServer_Stub" New topic
Author

java.lang.ClassNotFoundException: HelloServer_Stub

siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
Hi,

I need a help.I have developed a RMI prog.like
HelloClient.java
HelloInterface.java
HelloServer.java
RegisterIt.java

I compiled every file.
rmic HelloServer
Start rmiregistry
java RegisterIT

I got following Exception

Obj Instantiated.HelloServer[UnicastServerRef [liveRef: [endpoint:[192.168.1.2:5
0268](local),objID:[50f575b:13e94969dcc:-7fff, -7587787631591497735]]]]
Exception is : java.rmi.ServerException: RemoteException occurred in server thre
ad; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: HelloServer_Stub

Attached is the Exception Screenshot.

Please suggest.

Thanks



[Thumbnail for SS.jpg]

Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

My first suggestion is to search the forum for similar problems. You're about the millionth person to ask this question.

Next look into classpath.


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
Is it necessary to use codebase as i am using jdk 1.6
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

no
siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
i.e i can use rmic tool to generate stub and skeleton....
and in which case , the codebase property is used?

thanks..
siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
It would be better if you give some idea where to use codebase and rmic tool to generate stub and skeleton.
I am new to RMI. I want to implement a rmi program in my machine. So is there any good link to provide such information.

Thanks,
Siddharth
 
GeeCON Prague 2014
 
subject: java.lang.ClassNotFoundException: HelloServer_Stub