• 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

java.lang.ClassNotFoundException: HelloServer_Stub

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for SS.jpg]
ExceptionScreenshot
 
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no
 
siddharth das
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic