Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stub class not found error

 
R Dom
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic