File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: HelloServer_Stub

 
siddharth das
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
SS.jpg
ExceptionScreenshot
[Thumbnail for SS.jpg]
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
siddharth das
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it necessary to use codebase as i am using jdk 1.6
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no
 
siddharth das
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic