[
https://issues.jboss.org/browse/AS7-1271?page=com.atlassian.jira.plugin.s...
]
Rasto Cesnek edited comment on AS7-1271 at 7/26/12 6:58 AM:
------------------------------------------------------------
I created a minimal example illustrating this issue. The servlet under context root /war
calls and EJB from EJB module which which sends a JMS message to MDB in the same module.
The message contains org.w3c.dom.Document instance. As can be seen in the example, just
before retrieving the object content of the message, Document instance of the same
implementation class can be created but not deserialized by the MDB. The example needs a
JMS queue:
<jms-queue name="MyQueue">
<entry name="java:jboss/jms/MyQueue"/>
</jms-queue>
Running 7.1.1.Final
The output log (javax.jms.MessageListener is output from the MyMDB - a typo in the example
source log declaration):
12:48:15,786 INFO [test.MyBean] (http--0.0.0.0-8080-1) Going to enqueue a message
12:48:15,786 INFO [test.MyBean] (http--0.0.0.0-8080-1) Document: [#document: null],
class: class org.apache.xerces.dom.DeferredDocumentImpl
12:48:15,786 INFO [test.MyBean] (http--0.0.0.0-8080-1) Sending a message:
MyMessage(aString=Current time: 1343299695786, aDocument=[#document: null])
12:48:15,817 INFO [test.MyBean] (http--0.0.0.0-8080-1) Sent: MyMessage(aString=Current
time: 1343299695786, aDocument=[#document: null])
12:48:15,832 INFO [javax.jms.MessageListener] (Thread-25
(HornetQ-client-global-threads-1542661472)) Receiving a message...
12:48:15,832 INFO [test.MyBean] (http--0.0.0.0-8080-1) Enqueued a message:
MyMessage(aString=Current time: 1343299695786, aDocument=[#document: null])
12:48:15,832 INFO [javax.jms.MessageListener] (Thread-25
(HornetQ-client-global-threads-1542661472)) Document: [#document: null], class: class
org.apache.xerces.dom.DeferredDocumentImpl
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472))
javax.jms.JMSException: org.apache.xerces.dom.DeferredDocumentImpl from [Module
"org.hornetq:main" from local module loader @630f41e9 (roots:
C:\jboss-as-7.1.1.Final\modules)]
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.Class.forName0(Native Method)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.Class.forName(Class.java:247)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:71)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:158)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
test.MyMDB.onMessage(MyMDB.java:44)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.reflect.Method.invoke(Method.java:597)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:43)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:184)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
javax.jms.MessageListener$$$view28.onMessage(Unknown Source)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.reflect.Method.invoke(Method.java:597)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:140)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
$Proxy28.onMessage(Unknown Source)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:278)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:983)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:48)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1113)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.Thread.run(Thread.java:662)
was (Author: erce):
I created a minimal example illustrating this issue. The servlet under context root
/war calls and EJB from EJB module which which sends a JMS message to MDB in the same
module. The message contains org.w3c.dom.Document instance. As can be seen in the example,
just before retrieving the object content of the message, Document instance of the same
implementation class can be created but not deserialized by the MDB. The example needs a
JMS queue:
<jms-queue name="MyQueue">
<entry name="java:jboss/jms/MyQueue"/>
</jms-queue>
Running 7.1.1.Final
The output log:
12:48:15,786 INFO [test.MyBean] (http--0.0.0.0-8080-1) Going to enqueue a message
12:48:15,786 INFO [test.MyBean] (http--0.0.0.0-8080-1) Document: [#document: null],
class: class org.apache.xerces.dom.DeferredDocumentImpl
12:48:15,786 INFO [test.MyBean] (http--0.0.0.0-8080-1) Sending a message:
MyMessage(aString=Current time: 1343299695786, aDocument=[#document: null])
12:48:15,817 INFO [test.MyBean] (http--0.0.0.0-8080-1) Sent: MyMessage(aString=Current
time: 1343299695786, aDocument=[#document: null])
12:48:15,832 INFO [javax.jms.MessageListener] (Thread-25
(HornetQ-client-global-threads-1542661472)) Receiving a message...
12:48:15,832 INFO [test.MyBean] (http--0.0.0.0-8080-1) Enqueued a message:
MyMessage(aString=Current time: 1343299695786, aDocument=[#document: null])
12:48:15,832 INFO [javax.jms.MessageListener] (Thread-25
(HornetQ-client-global-threads-1542661472)) Document: [#document: null], class: class
org.apache.xerces.dom.DeferredDocumentImpl
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472))
javax.jms.JMSException: org.apache.xerces.dom.DeferredDocumentImpl from [Module
"org.hornetq:main" from local module loader @630f41e9 (roots:
C:\jboss-as-7.1.1.Final\modules)]
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.Class.forName0(Native Method)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.Class.forName(Class.java:247)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:71)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:158)
12:48:15,848 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
test.MyMDB.onMessage(MyMDB.java:44)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.reflect.Method.invoke(Method.java:597)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
12:48:15,864 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:43)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:184)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
12:48:15,879 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
javax.jms.MessageListener$$$view28.onMessage(Unknown Source)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.reflect.Method.invoke(Method.java:597)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:140)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
$Proxy28.onMessage(Unknown Source)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:278)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:983)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:48)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1113)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
12:48:15,895 ERROR [stderr] (Thread-25 (HornetQ-client-global-threads-1542661472)) at
java.lang.Thread.run(Thread.java:662)
Fired object messages violate classloaders
------------------------------------------
Key: AS7-1271
URL:
https://issues.jboss.org/browse/AS7-1271
Project: Application Server 7
Issue Type: Bug
Components: JMS
Reporter: John Ament
Assignee: Jeff Mesnil
Fix For: 7.2.0.Alpha1
JMS allows you to fire an object message. In this case, I have a object of type in my
deployment. It fires fine. I bind a message consumer to a queue in AS7. the object
message coming in results in a classloader violation:
22:13:35,116 ERROR
[org.jboss.seam.jms.example.statuswatcher.messagedriven.DistributorMDB] (Thread-2
(group:HornetQ-client-global-threads-767046602))
org.jboss.seam.jms.example.statuswatcher.model.Status from [Module
"org.hornetq:main" from local module loader @19d009b4 (roots:
/apps/jboss-as-7.0.0.Final/modules)]: javax.jms.JMSException:
org.jboss.seam.jms.example.statuswatcher.model.Status from [Module
"org.hornetq:main" from local module loader @19d009b4 (roots:
/apps/jboss-as-7.0.0.Final/modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at java.lang.Class.forName0(Native Method) [:1.6.0_22]
at java.lang.Class.forName(Class.java:247) [:1.6.0_22]
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603) [:1.6.0_22]
at
org.hornetq.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:69)
[hornetq-core-2.2.6.Final.jar:]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574) [:1.6.0_22]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495) [:1.6.0_22]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
[:1.6.0_22]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [:1.6.0_22]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [:1.6.0_22]
at org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:158)
[hornetq-jms-2.2.6.Final.jar:]
at
org.jboss.seam.jms.example.statuswatcher.messagedriven.DistributorMDB.onMessage(DistributorMDB.java:46)
at
org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:91)
[hornetq-jms-2.2.6.Final.jar:]
at
org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:866)
[hornetq-core-2.2.6.Final.jar:]
at
org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:44)
[hornetq-core-2.2.6.Final.jar:]
at
org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:983)
[hornetq-core-2.2.6.Final.jar:]
at
org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
[hornetq-core-2.2.6.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira