dcsimg
Dynamic Downloading of Stub to the Client.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Criag_Viswa
Posted On:   Wednesday, August 6, 2003 10:22 PM

i used the dynamic downloading of stub to the client.i cud able to register in the rmi registry for the server program the program is all abt "getting message" thru RMI. when i run the client i got the following error. java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: ImplHello_Stub (no security manager: MI class loader disabled) java.lang.ClassNotFoundException: ImplHello_Stub (no security manager: RMI clas loader disabled) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132) at sun.rmi.server.MarshalInputStream.r   More>>

i used the dynamic downloading of stub to the client.i cud able to register in the rmi registry for the server program
the program is all abt "getting message" thru RMI.
when i run the client
i got the following error.

java.rmi.UnmarshalException: error unmarshalling return; nested exception is:


java.lang.ClassNotFoundException: ImplHello_Stub (no security manager:
MI class loader disabled)
java.lang.ClassNotFoundException: ImplHello_Stub (no security manager: RMI clas
loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.ja
a:143)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.jav
:918)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at RmiClient.process(RmiClient.java:16)
at RmiClient.main(RmiClient.java:7)

   <<Less

Re: Dynamic Downloading of Stub to the Client.

Posted By:   Zac_Jacobson  
Posted On:   Monday, August 18, 2003 04:21 PM

First of all, we are not your text messaging pals, please use entire words and sentences with grammatical structure and punctuation. Secondly, please use HTML tags to format your posts to make them more readable.

Finally, java.lang.ClassNotFoundException: ImplHello_Stub (no security manager: RMI class loader disabled) means that your client is not using a security manager which allows RMI to use its class loader. RMI's class loader will not download any classes from remote locations if no security manager has been set. Check out java.rmi.RMISecurityManager.

About | Sitemap | Contact