[jboss-user] [EJB 3.0] - stateful session bean class not found exception

arrojusrikanth do-not-reply at jboss.com
Sat Mar 8 10:05:41 EST 2008


when i run stateful session bean it generating this exception

  |      [java] ERROR 08-03 20:08:33,875 
  | 
  | (SocketClientInvoker.java:transport:293)  -
  | Got marshalling exception, exiting
  |      [java] java.lang.ClassNotFoundException: 
  | 
  | [Lorg.jboss.aop.advice.Interceptor
  | ;
  |      [java]     at 
  | 
  | java.net.URLClassLoader$1.run(URLClassLoader.java:2
  | 
  | 00)
  |      [java]     at 
  | 
  | java.security.AccessController.doPrivileged(Native 
  | 
  | Method)
  |      [java]     at 
  | 
  | java.net.URLClassLoader.findClass(URLClassLoader.ja
  | 
  | va:188)
  |      [java]     at 
  | 
  | java.lang.ClassLoader.loadClass(ClassLoader.java:30
  | 
  | 6)
  |      [java]     at 
  | 
  | sun.misc.Launcher$AppClassLoader.loadClass(Launcher
  | 
  | .java:276)
  | 
  |      [java]     at 
  | 
  | java.lang.ClassLoader.loadClass(ClassLoader.java:25
  | 
  | 1)
  |      [java]     at 
  | 
  | org.jboss.remoting.loading.RemotingClassLoader.load
  | 
  | Class(Remo
  | tingClassLoader.java:50)
  |      [java]     at 
  | 
  | org.jboss.remoting.loading.ObjectInputStreamWithCla
  | 
  | ssLoader.r
  | esolveClass(ObjectInputStreamWithClassLoader.java:1
  | 
  | 39)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readNonProxyDesc(ObjectIn
  | 
  | putStream.
  | java:1575)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readClassDesc(ObjectInput
  | 
  | Stream.jav
  | a:1496)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readArray(ObjectInputStre
  | 
  | am.java:16
  | 24)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1323)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject(ObjectInputStr
  | 
  | eam.java:3
  | 51)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.InvocationResponse.readExte
  | 
  | rnal(Invoc
  | ationResponse.java:122)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readExternalData(ObjectIn
  | 
  | putStream.
  | java:1792)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1751)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject(ObjectInputStr
  | 
  | eam.java:3
  | 51)
  |      [java]     at 
  | 
  | org.jboss.remoting.serialization.impl.java.JavaSeri
  | 
  | alizationM
  | anager.receiveObject(JavaSerializationManager.java:
  | 
  | 128)
  |      [java]     at 
  | 
  | org.jboss.remoting.marshal.serializable.Serializabl
  | 
  | eUnMarshal
  | ler.read(SerializableUnMarshaller.java:66)
  |      [java]     at 
  | 
  | org.jboss.remoting.transport.socket.SocketClientInv
  | 
  | oker.trans
  | port(SocketClientInvoker.java:279)
  |      [java]     at 
  | 
  | org.jboss.remoting.RemoteClientInvoker.invoke(Remot
  | 
  | eClientInv
  | oker.java:143)
  |      [java]     at 
  | 
  | org.jboss.remoting.Client.invoke(Client.java:525)
  |      [java]     at 
  | 
  | org.jboss.remoting.Client.invoke(Client.java:488)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.InvokeRemoteInterceptor.
  | 
  | invoke(Inv
  | okeRemoteInterceptor.java:55)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.MethodInvocation.invokeNext
  | 
  | (MethodInv
  | ocation.java:101)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.IsLocalInterceptor.invok
  | 
  | e(IsLocalI
  | nterceptor.java:48)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.MethodInvocation.invokeNext
  | 
  | (MethodInv
  | ocation.java:101)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.PojiProxy.invoke(PojiPro
  | 
  | xy.java:61
  | )
  |      [java]     at $Proxy0.createProxy(Unknown 
  | 
  | Source)
  |      [java]     at 
  | 
  | org.jboss.ejb3.JndiProxyFactory.getObjectInstance(J
  | 
  | ndiProxyFa
  | ctory.java:52)
  |      [java]     at 
  | 
  | javax.naming.spi.NamingManager.getObjectInstance(Na
  | 
  | mingManage
  | r.java:304)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstance(
  | 
  | NamingCont
  | ext.java:1125)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstanceW
  | 
  | rapFailure
  | (NamingContext.java:1142)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.lookup(NamingConte
  | 
  | xt.java:70
  | 5)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.lookup(NamingConte
  | 
  | xt.java:58
  | 7)
  |      [java]     at 
  | 
  | javax.naming.InitialContext.lookup(InitialContext.j
  | 
  | ava:392)
  |      [java]     at 
  | 
  | example2.Client.main(Client.java:30)
  |      [java] Exception in thread "main" 
  | 
  | javax.naming.NamingException: Could not d
  | ereference object [Root exception is 
  | 
  | java.lang.reflect.UndeclaredThrowableExcept
  | ion]
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstanceW
  | 
  | rapFailure
  | (NamingContext.java:1150)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.lookup(NamingConte
  | 
  | xt.java:70
  | 5)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.lookup(NamingConte
  | 
  | xt.java:58
  | 7)
  |      [java]     at 
  | 
  | javax.naming.InitialContext.lookup(InitialContext.j
  | 
  | ava:392)
  |      [java]     at 
  | 
  | example2.Client.main(Client.java:30)
  |      [java] Caused by: 
  | 
  | java.lang.reflect.UndeclaredThrowableException
  |      [java] ERROR 08-03 20:08:33,984 
  | 
  | (SocketClientInvoker.java:transport:297)  -
  | Error loading classes from remote call result.
  |      [java] java.lang.ClassNotFoundException: 
  | 
  | [Lorg.jboss.aop.advice.Interceptor
  | ;
  |      [java]     at 
  | 
  | java.net.URLClassLoader$1.run(URLClassLoader.java:2
  | 
  | 00)
  |      [java]     at 
  | 
  | java.security.AccessController.doPrivileged(Native 
  | 
  | Method)
  |      [java]     at 
  | 
  | java.net.URLClassLoader.findClass(URLClassLoader.ja
  | 
  | va:188)
  |      [java]     at 
  | 
  | java.lang.ClassLoader.loadClass(ClassLoader.java:30
  | 
  | 6)
  |      [java]     at 
  | 
  | sun.misc.Launcher$AppClassLoader.loadClass(Launcher
  | 
  | .java:276)
  | 
  |      [java]     at $Proxy0.createProxy(Unknown 
  | 
  | Source)
  |      [java]     at 
  | 
  | org.jboss.ejb3.JndiProxyFactory.getObjectInstance(J
  | 
  | ndiProxyFa
  | ctory.java:52)
  |      [java]     at 
  | 
  | javax.naming.spi.NamingManager.getObjectInstance(Na
  | 
  | mingManage
  | r.java:304)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstance(
  | 
  | NamingCont
  | ext.java:1125)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstanceW
  | 
  | rapFailure
  | (NamingContext.java:1142)
  |      [java]     ... 4 more
  |      [java] Caused by: 
  | 
  | java.lang.ClassNotFoundException: 
  | 
  | [Lorg.jboss.aop.advice.
  | Interceptor;
  |      [java]     at 
  | 
  | java.lang.ClassLoader.loadClass(ClassLoader.java:25
  | 
  | 1)
  |      [java]     at 
  | 
  | org.jboss.remoting.loading.RemotingClassLoader.load
  | 
  | Class(Remo
  | tingClassLoader.java:50)
  |      [java]     at 
  | 
  | org.jboss.remoting.loading.ObjectInputStreamWithCla
  | 
  | ssLoader.r
  | esolveClass(ObjectInputStreamWithClassLoader.java:1
  | 
  | 39)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readNonProxyDesc(ObjectIn
  | 
  | putStream.
  | java:1575)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readClassDesc(ObjectInput
  | 
  | Stream.jav
  | a:1496)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readArray(ObjectInputStre
  | 
  | am.java:16
  | 24)
  |      [java]     at 
  | 
  | java.net.URLClassLoader$1.run(URLClassLoader.java:2
  | 
  | 00)
  |      [java]     at 
  | 
  | java.security.AccessController.doPrivileged(Native 
  | 
  | Method)
  |      [java]     at 
  | 
  | java.net.URLClassLoader.findClass(URLClassLoader.ja
  | 
  | va:188)
  |      [java]     at 
  | 
  | java.lang.ClassLoader.loadClass(ClassLoader.java:30
  | 
  | 6)
  |      [java]     at 
  | 
  | sun.misc.Launcher$AppClassLoader.loadClass(Launcher
  | 
  | .java:276)
  | 
  |      [java]     at 
  | 
  | java.lang.ClassLoader.loadClass(ClassLoader.java:25
  | 
  | 1)
  |      [java]     at 
  | 
  | org.jboss.remoting.loading.RemotingClassLoader.load
  | 
  | Class(Remo
  | tingClassLoader.java:50)
  |      [java]     at 
  | 
  | org.jboss.remoting.loading.ObjectInputStreamWithCla
  | 
  | ssLoader.r
  | esolveClass(ObjectInputStreamWithClassLoader.java:1
  | 
  | 39)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1323)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readNonProxyDesc(ObjectIn
  | 
  | putStream.
  | java:1575)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readClassDesc(ObjectInput
  | 
  | Stream.jav
  | a:1496)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readArray(ObjectInputStre
  | 
  | am.java:16
  | 24)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1323)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject(ObjectInputStr
  | 
  | eam.java:3
  | 51)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.InvocationResponse.readExte
  | 
  | rnal(Invoc
  | ationResponse.java:122)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readExternalData(ObjectIn
  | 
  | putStream.
  | java:1792)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1751)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject(ObjectInputStr
  | 
  | eam.java:3
  | 51)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.InvocationResponse.readExte
  | 
  | rnal(Invoc
  | ationResponse.java:122)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readExternalData(ObjectIn
  | 
  | putStream.
  | java:1792)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject(ObjectInputStr
  | 
  | eam.java:3
  | 51)
  |      [java]     at 
  | 
  | org.jboss.remoting.serialization.impl.java.JavaSeri
  | 
  | alizationM
  | anager.receiveObject(JavaSerializationManager.java:
  | 
  | 128)
  |      [java]     at 
  | 
  | org.jboss.remoting.marshal.serializable.Serializabl
  | 
  | eUnMarshal
  | ler.read(SerializableUnMarshaller.java:66)
  |      [java]     at 
  | 
  | org.jboss.remoting.transport.socket.SocketClientInv
  | 
  | oker.trans
  | port(SocketClientInvoker.java:279)
  |      [java]     at 
  | 
  | org.jboss.remoting.RemoteClientInvoker.invoke(Remot
  | 
  | eClientInv
  | oker.java:143)
  |      [java]     at 
  | 
  | org.jboss.remoting.Client.invoke(Client.java:525)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1751)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.defaultReadFields(ObjectI
  | 
  | nputStream
  | .java:1945)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readSerialData(ObjectInpu
  | 
  | tStream.ja
  | va:1869)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readOrdinaryObject(Object
  | 
  | InputStrea
  | m.java:1753)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject0(ObjectInputSt
  | 
  | ream.java:
  | 1329)
  |      [java]     at 
  | 
  | java.io.ObjectInputStream.readObject(ObjectInputStr
  | 
  | eam.java:3
  | 51)
  |      [java]     at 
  | 
  | org.jboss.remoting.serialization.impl.java.JavaSeri
  | 
  | alizationM
  | anager.receiveObject(JavaSerializationManager.java:
  | 
  | 128)
  |      [java]     at 
  | 
  | org.jboss.remoting.Client.invoke(Client.java:488)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.InvokeRemoteInterceptor.
  | 
  | invoke(Inv
  | okeRemoteInterceptor.java:55)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.MethodInvocation.invokeNext
  | 
  | (MethodInv
  | ocation.java:101)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.IsLocalInterceptor.invok
  | 
  | e(IsLocalI
  | nterceptor.java:48)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.MethodInvocation.invokeNext
  | 
  | (MethodInv
  | ocation.java:101)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.PojiProxy.invoke(PojiPro
  | 
  | xy.java:61
  | )
  |      [java]     at $Proxy0.createProxy(Unknown 
  | 
  | Source)
  |      [java]     at 
  | 
  | org.jboss.ejb3.JndiProxyFactory.getObjectInstance(J
  | 
  | ndiProxyFa
  | ctory.java:52)
  |      [java]     at 
  | 
  | javax.naming.spi.NamingManager.getObjectInstance(Na
  | 
  | mingManage
  | r.java:304)
  |      [java]     at 
  | 
  | org.jboss.remoting.marshal.serializable.Serializabl
  | 
  | eUnMarshal
  | ler.read(SerializableUnMarshaller.java:66)
  |      [java]     at 
  | 
  | org.jboss.remoting.transport.socket.SocketClientInv
  | 
  | oker.trans
  | port(SocketClientInvoker.java:279)
  |      [java]     at 
  | 
  | org.jboss.remoting.RemoteClientInvoker.invoke(Remot
  | 
  | eClientInv
  | oker.java:143)
  |      [java]     at 
  | 
  | org.jboss.remoting.Client.invoke(Client.java:525)
  |      [java]     at 
  | 
  | org.jboss.remoting.Client.invoke(Client.java:488)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.InvokeRemoteInterceptor.
  | 
  | invoke(Inv
  | okeRemoteInterceptor.java:55)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.MethodInvocation.invokeNext
  | 
  | (MethodInv
  | ocation.java:101)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.IsLocalInterceptor.invok
  | 
  | e(IsLocalI
  | nterceptor.java:48)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstance(
  | 
  | NamingCont
  | ext.java:1125)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.getObjectInstanceW
  | 
  | rapFailure
  | (NamingContext.java:1142)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.lookup(NamingConte
  | 
  | xt.java:70
  | 5)
  |      [java]     at 
  | 
  | org.jnp.interfaces.NamingContext.lookup(NamingConte
  | 
  | xt.java:58
  | 7)
  |      [java]     at 
  | 
  | javax.naming.InitialContext.lookup(InitialContext.j
  | 
  | ava:392)
  |      [java]     at 
  | 
  | example2.Client.main(Client.java:30)
  |      [java]     at 
  | 
  | org.jboss.aop.joinpoint.MethodInvocation.invokeNext
  | 
  | (MethodInv
  | ocation.java:101)
  |      [java]     at 
  | 
  | org.jboss.aspects.remoting.PojiProxy.invoke(PojiPro
  | 
  | xy.java:61
  | )
  |      [java]     ... 9 more
  |      [java] Java Result: 1
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135081#4135081

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135081



More information about the jboss-user mailing list