The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


"Not a trusted class"

Posted by lucas on February 06, 2002 at 5:35 AM

Hello, everybody

I've just started an HelloWorldlike aplication on a RMI servee-client model.

Using appletviewer works just fine (looking up on "http://mydomain/myobject"). but when i use IExplorer for example it raises a sec exception:("Not a trusted class")
And I know why it raises it because when i try to Namin.lookup(...) the RMI sistem tries the following thing on the ObjectInputStream:
"protected final boolean enableResolveObject( boolean enable )"
wich raises the exception if the class (to deserialize) doesn't have a NULL class loader !!??
Why should a class that implements the UnicastRemoteObject have a null Classloader, on my knowledge in the same place where the RMIclient code resides? That means that the RMI needs afterall the implementation code on the server when the entire thesis of RMI is based on the fact that u don't need the implementation class to use(instantiate) an remote object!?
Thank u in advance for any enlightings on this subject or solution to my problem :))


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us