This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes stub class not found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "stub class not found error" Watch "stub class not found error" New topic
Author

stub class not found error

R Dom
Greenhorn

Joined: Sep 08, 2010
Posts: 19
We have implemented a linkagebroker (server) and a programmer(client) in two different machines with the help of java RMI over SSL.
We have generated all the certficates and keystores needed and placed in the specified location which the program can access. When we run the Linakge borker code on one machine it wrks fine. However, when we run the programmer code in the other machine we get the following error (see below). Do wee need to generate a codebase policy file ?


ava.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: LinkageBroker_Stub (no security manager: RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at Programmer.initializeRMI(Programmer.java:43)
at Programmer.main(Programmer.java:67)
Caused by: java.lang.ClassNotFoundException: LinkageBroker_Stub (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:375)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
... 3 more

Cheers,
RD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: stub class not found error
 
Similar Threads
Security Issues with Dynamic Loading
JMS with Jboss Errors
RMI issue
RMI issue
no security manager: RMI class loader disabled