1 Reply Latest reply on Jun 16, 2003 5:38 PM by yufu

    Entity Bean Client Runtime Error

    yufu Newbie

      Getting Initial Context
      Caught an unexpected exception while getting home interfaces!
      javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalException: error unmarshal
      ling return; nested exception is:
      java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair (no security manage
      r: RMI class loader disabled)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:169)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at test_ejbs.get_home_interfaces(test_ejbs.java:43)
      at test_ejbs.(test_ejbs.java:27)
      at test_ejbs.main(test_ejbs.java:74)
      Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair (no security man
      ager: RMI class loader disabled)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
      at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629)
      at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
      at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
      ... 7 more
      -----------------------------------------------------------
      Create contract with id = c1, & start = May 31
      Caught an unexpected exception while making contract!
      java.lang.NullPointerException
      at test_ejbs.make_contract(test_ejbs.java:57)
      at test_ejbs.(test_ejbs.java:28)
      at test_ejbs.main(test_ejbs.java:74)
      Press any key to continue . . .

      I have set the path of jnp-client.jar. What was wrong?

      Thanks.