2 Replies Latest reply on Jul 12, 2002 12:59 PM by Georg Schmid

    UnmarshalException accessing federated JNDI

    Georg Schmid Newbie


      Hi,

      (JBoss3.0.0 final release, Solaris, problem occurs with
      both JDK1.3 and 1.4)

      in an application that used to work at least up to
      JBoss3.0.0rc2 I am now running into a problem with
      my federated LDAP server.

      I keep getting an UnmarshallException, that results from
      a ClassNotFoundException. The class that cannot be found
      is org.jboss.naming.ExternalContext$SerializableInitialContext.

      This class is in jboss.jar and as such usually not accessible for a client. To give it a try I put jboss.jar
      in the client classpath, but this did not change anything.

      Any hints would be greatyl appreciated.

      Thanks in advance.

      Cheers
      Georg

      And here's the stack trace:

      [junit] null
      [junit] javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
      [junit] java.lang.ClassNotFoundException: org.jboss.naming.ExternalContext$SerializableInitialContext (no security manager: RMI class loader disabled)
      [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:169)
      [junit] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
      [junit] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [junit] at com.ti.sc.ffab.j2ee.support.EJBHomeFactory.getResourceFactory(EJBHomeFactory.java:163)
      [junit] at com.ti.sc.ffab.pmsystem.entities.TestUserInfo.testLDAPSearch(TestUserInfo.java:126)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:324)
      [junit] at junit.framework.TestCase.runTest(TestCase.java:166)
      [junit] at junit.framework.TestCase.runBare(TestCase.java:140)
      [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
      [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
      [junit] at junit.framework.TestResult.run(TestResult.java:109)
      [junit] at junit.framework.TestCase.run(TestCase.java:131)
      [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
      [junit] at junit.framework.TestSuite.run(TestSuite.java:168)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
      [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)
      [junit] Caused by: java.lang.ClassNotFoundException: org.jboss.naming.ExternalContext$SerializableInitialContext (no security manager: RMI class loader disabled)
      [junit] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
      [junit] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
      [junit] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629)
      [junit] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
      [junit] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
      [junit] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1503)
      [junit] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      [junit] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1593)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1261)
      [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      [junit] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      [junit] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      [junit] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      [junit] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      [junit] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
      [junit] at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
      [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
      [junit] ... 20 more
      [junit]