• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

java.lang.ClassNotFoundException: HelloServer_Stub

 
Ranch Hand
Posts: 135
  • 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
[Thumbnail for SS.jpg]
ExceptionScreenshot
 
Ranch Hand
Posts: 291
Java
  • 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: 135
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no
 
siddharth das
Ranch Hand
Posts: 135
  • 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: 135
  • 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
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic