• 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

RMI (SCJD Exam) Problem

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i am developing the pgm for the scjd exam. while creating the network connection i alway get the follwing error message (i`m working with vaj 3.5.2)
Exception in FMSServer (main): RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
void sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(java.lang.Exception)
void sun.rmi.transport.StreamRemoteCall.executeCall()
void sun.rmi.server.UnicastRef.invoke(java.rmi.server.RemoteCall)
void sun.rmi.registry.RegistryImpl_Stub.rebind(java.lang.String, java.rmi.Remote)
void java.rmi.Naming.rebind(java.lang.String, java.rmi.Remote)
void suncertify.rmi.FMSServer.main(java.lang.String [])
Please help me.
Thanks,
Thomas GReisinger
------------------
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IN VAJ you need to export the server and the stub to a jar file and make it avaible in VAJ classpath (Windows/Options/Resources menu). Then restart the registry
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi tom
The possibilies of errors :
1) The argument that u r passing to a remote method from client side does not match the function declaration in remote interface(or server implementation file).
2) Make sure u compile server implementation file using rmic.
3) Make sure u are instaniating server implementaion file properly in server file.
4) Make sure u recompile server implementaion file & restart server after making any changes to these files.
that's it.

Originally posted by Tom Greisinger:
Hi all,
i am developing the pgm for the scjd exam. while creating the network connection i alway get the follwing error message (i`m working with vaj 3.5.2)
Exception in FMSServer (main): RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
void sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(java.lang.Exception)
void sun.rmi.transport.StreamRemoteCall.executeCall()
void sun.rmi.server.UnicastRef.invoke(java.rmi.server.RemoteCall)
void sun.rmi.registry.RegistryImpl_Stub.rebind(java.lang.String, java.rmi.Remote)
void java.rmi.Naming.rebind(java.lang.String, java.rmi.Remote)
void suncertify.rmi.FMSServer.main(java.lang.String [])
Please help me.
Thanks,
Thomas GReisinger


 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hope you fixed the problem already if not try this
I would look
1. if the Stub/skel files are actually exist ( I would rmic instead of IDEs to control where I want the skel/stub files in Filesystem
2. The path where Stub/skel files exits is part of the classpath
3. Make sure that rmiregistry used the classpath we got in step 2
goodLuck()
Senthil

Originally posted by Tom Greisinger:
Hi all,
i am developing the pgm for the scjd exam. while creating the network connection i alway get the follwing error message (i`m working with vaj 3.5.2)
Exception in FMSServer (main): RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
java.lang.ClassNotFoundException: suncertify.rmi.FMSImplementation_Stub
void sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(java.lang.Exception)
void sun.rmi.transport.StreamRemoteCall.executeCall()
void sun.rmi.server.UnicastRef.invoke(java.rmi.server.RemoteCall)
void sun.rmi.registry.RegistryImpl_Stub.rebind(java.lang.String, java.rmi.Remote)
void java.rmi.Naming.rebind(java.lang.String, java.rmi.Remote)
void suncertify.rmi.FMSServer.main(java.lang.String [])
Please help me.
Thanks,
Thomas GReisinger


 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You might have a problem with your codebase. If the codebase is incorrect or malformed, then the registry is not able to lookup the stubs.
Refer to the following article
http://java.sun.com/products/jdk/1.2/docs/guide/rmi/codebase.html Section 6.1
Ashwin.

[This message has been edited by Ashwin Desai (edited May 02, 2001).]
 
Tom Greisinger
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you guys,
i solved the problem.
Thanks a lot,
Thomas
 
reply
    Bookmark Topic Watch Topic
  • New Topic