Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

RMI and Java-Archives!

Thread view: 
nullstring - 15 Nov 2006 15:57 GMT
I wrote a RMI-App and want to convert it into jar-files.
The app runs well, but when I make the client to a jar-file, and run it
(with java -jar myRemoteClient.jar) I get a giant Exception:

java.rmi.UnmarshalException: error unmarshalling return; nested
exception is:
       java.lang.ClassNotFoundException: MyRemoteImpl_Stub (no
security manager
: RMI class loader disabled)
       at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
       at java.rmi.Naming.lookup(Unknown Source)
       at myRemoteClient.go(myRemoteClient.java:29)
       at myRemoteClient.main(myRemoteClient.java:19)
Caused by: java.lang.ClassNotFoundException: MyRemoteImpl_Stub (no
security mana
ger: RMI class loader disabled)
       at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
       at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
       at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
       at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
       at sun.rmi.server.MarshalInputStream.resolveClass(Unknown
Source)
       at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
       at java.io.ObjectInputStream.readClassDesc(Unknown Source)
       at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
       at java.io.ObjectInputStream.readObject0(Unknown Source)
       at java.io.ObjectInputStream.readObject(Unknown Source)
       ... 4 more

Where is the error???
(using eclipse for making the jar)

thanks in advance
Nullstring
Thomas Fritsch - 15 Nov 2006 16:12 GMT
> I wrote a RMI-App and want to convert it into jar-files.
> The app runs well, but when I make the client to a jar-file, and run it
[quoted text clipped - 6 lines]
>     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
>     at java.rmi.Naming.lookup(Unknown Source)
[...]

> Where is the error???
> (using eclipse for making the jar)

Look at <http://java.sun.com/j2se/1.5.0/docs/guide/rmi/codebase.html> ,
especially its "Troubleshooting tips" chapter, which deals with your
problem.
Signature

Thomas



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.