1 Reply Latest reply on Sep 14, 2003 3:40 PM by Aaron

    strange exception

    - - Newbie

      hi

      I use Jboss4.0 and got this exception. What is Lorg.

      java.lang.NoClassDefFoundError: Lorg/jboss/remoting/ClientInterceptor;
      at java.lang.Class.getDeclaredFields0(Native Method)
      at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
      at java.lang.Class.getField0(Class.java:1727)
      at java.lang.Class.getDeclaredField(Class.java:1189)
      at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1430)
      at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:45)
      at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:331)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.ObjectStreamClass.(ObjectStreamClass.java:329)
      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:249)
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:449)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1810)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1772)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:113)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:479)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at com.mpg.template.client.ClientTestCase.testBMPSetup(ClientTestCase.java:89)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)


        • 1. Re: strange exception
          Aaron Newbie

          Strangely enough its not Lorg, take away the L.. ;) its just straight forward org.jboss...... Im not certain if theres any underlieing reason it is displayed, i haven't looked at the source. But the L is appended in 3.2.1 as well.

          I'd suggest you are getting the error because you need to include in the classpath the jboss client jars with the junit tests you are running. Make sure they are the jboss client jars for 4.0 and not any other versions

          --Aaron