aspose file tools
The moose likes Distributed Java and the fly likes RMI (SCJD Exam) Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "RMI (SCJD Exam) Problem" Watch "RMI (SCJD Exam) Problem" New topic
Author

RMI (SCJD Exam) Problem

Tom Greisinger
Greenhorn

Joined: Oct 18, 2000
Posts: 13
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

Joined: Apr 03, 2001
Posts: 178
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

Joined: May 01, 2001
Posts: 8
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

Joined: May 02, 2001
Posts: 7
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

Joined: Jul 17, 2000
Posts: 124
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

Joined: Oct 18, 2000
Posts: 13
Thank you guys,
i solved the problem.
Thanks a lot,
Thomas
 
 
subject: RMI (SCJD Exam) Problem
 
Threads others viewed
RemoteException
Exception!!!
AccessControlException
problem with rmi
Bingo application...
MyEclipse, The Clear Choice