• 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

why can not find the Stub Class???

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i run an rmi example:
my current directory is xx\jj.
and the remote interface file ,the implemation file of it are also at the directory(xx\jj)
in a console windows:
xx\jj>rmic -v1.2 aImp ,so get the Stub class file named aImp_Stub.class.
then,in another console windows to run the rmiregistry
xx\jj>rmiregistry
it is ok printing the bellow information :
security properties not found. using defaults.
then in another console window to run rumServer to try to bind the remote object
xx\jj>java aImpServer
but get the bellow information and fail to bind:

Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: aImpl_Stub
//////////////////////
why ?? who can help me?thank you!!
 
kenkin you
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is more:
if i load the aImp_stub in a classLoader,it can find it and load,no error occurs!
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic