[
https://jira.jboss.org/browse/EJBTHREE-439?page=com.atlassian.jira.plugin...
]
Carlo de Wolf resolved EJBTHREE-439.
------------------------------------
Resolution: Out of Date
This issue is reported against a version which is no longer maintained,
which means that it will not receive a fix. As a result we are closing
this bug.
If you can reproduce this bug against a currently maintained version of
JBoss EJB 3 please feel free to reopen this bug against that version.
Thank you for reporting this bug and we are sorry it could not be fixed.
CCE when same entity name in different PUs/apps
-----------------------------------------------
Key: EJBTHREE-439
URL:
https://jira.jboss.org/browse/EJBTHREE-439
Project: EJB 3.0
Issue Type: Bug
Components: EJB3 Extensions
Affects Versions: EJB 3.0 RC5 - PFD
Environment: 4.0.4RC1
Reporter: Jens Elkner
Priority: Critical
If one has two applications, which have an entity with the same name (yes, the PUs have a
different name, too) one gets a ClassCastException since the the proxy tries to assign the
class from the other application on the client side, which is not available.
E.g. app one (foolaberkram) has an entity foo.laber.kram.CatTest and
app two (foobar) has an entity foo.bar.CatTest
one gets the following CCE:
0 DEBUG [ main ] org.jboss.security.SecurityAssociation - Using ThreadLocal: false
53 DEBUG [ main ] org.jboss.remoting.Client - invoke called, but our invoker is
disconnected, discarding and fetching another fresh invoker for: InvokerLocator
[socket://192.168.21.1:3873/]
53 DEBUG [ main ] org.jboss.remoting.transport.socket.SocketClientInvoker - connect
called for: org.jboss.remoting.transport.socket.SocketClientInvoker@1df073d
176 ERROR [ main ] org.jboss.remoting.transport.socket.SocketClientInvoker - Got
marshalling exception, exiting
java.lang.ClassNotFoundException: foo.laber.kram.CatTest
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
...
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
at
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:120)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
...
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at
org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:107)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
...
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:265)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:136)
at org.jboss.remoting.Client.invoke(Client.java:444)
at org.jboss.remoting.Client.invoke(Client.java:407)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
at $Proxy0.getRoots(Unknown Source)
at foo.bar.gui.Start.doSomething(Start.java:34)
at foo.bar.gui.Start.main(Start.java:48)
179 ERROR [ main ] org.jboss.remoting.transport.socket.SocketClientInvoker - Error
loading classes from remote call result.
java.lang.ClassNotFoundException: foo.laber.kram.CatTest
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
at
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:120)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.util.ArrayList.readObject(ArrayList.java:591)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at
org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:107)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:265)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:136)
at org.jboss.remoting.Client.invoke(Client.java:444)
at org.jboss.remoting.Client.invoke(Client.java:407)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
at $Proxy0.getRoots(Unknown Source)
at foo.bar.gui.Start.doSomething(Start.java:34)
at foo.bar.gui.Start.main(Start.java:48)
190 WARN [ main ] foo.bar.gui.Start -
Exception in thread "main" java.lang.NullPointerException
at foo.bar.gui.Start.doSomething(Start.java:41)
at foo.bar.gui.Start.main(Start.java:48)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira