Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI (SCJD Exam) Problem

 
Tom Greisinger
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
------------------
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • 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
 
Ashwin Patil
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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

 
Senthil Paramasivam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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

 
Ashwin Desai
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thank you guys,
i solved the problem.
Thanks a lot,
Thomas
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!