Bharat Savanur [
http://community.jboss.org/people/bharat.savanur] created the discussion
"JBoss HornetQ jms exception"
To view the discussion, visit:
http://community.jboss.org/message/630220#630220
--------------------------------------------------------------
Hi All,
I am facing a problem in HornetQ jms. The queues and the topics are configured using
spring jndi template.
When i start the server the queues are binded and everything works fine.
But the requirement is when the server starts up, we send a message to an MDB configured
on the same server
with the server information specific to our application. When i try to do this, it
gives me an error saying
jms exception occured while processing the message. The complete stack trace is given
below :
ERROR [*MessageListenerAdapter*] (Thread-20 (group:HornetQ-client-global-threads-1688591))
Error happened when processing message: javax.jms.JMSException: *ServerInfo* from [Module
"org.hornetq:main" from local module loader @4aeb52 (roots: D:\Servers_New\new
7.2 server\jboss-as-7.0.2.Final\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
at java.lang.Class.forName0(Native Method) [:1.6.0_18]
at java.lang.Class.forName(Class.java:247) [:1.6.0_18]
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
[:1.6.0_18]
at
org.hornetq.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:71)
[hornetq-core-2.2.7.Final.jar:]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
[:1.6.0_18]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
[:1.6.0_18]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
[:1.6.0_18]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
[:1.6.0_18]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_18]
at
org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:158)
[hornetq-jms-2.2.7.Final.jar:]
at *ControlMessageUtil*.process(ControlMessageUtil.java:24)
at *MessageListenerAdapter*.onMessage(MessageListenerAdapter.java:53)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:510)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:445)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:386)
at
org.springframework.jms.listener.SimpleMessageListenerContainer$2.onMessage(SimpleMessageListenerContainer.java:205)
at
org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:91)
[hornetq-jms-2.2.7.Final.jar:]
at
org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:866)
[hornetq-core-2.2.7.Final.jar:]
at
org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:44)
[hornetq-core-2.2.7.Final.jar:]
at
org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:983)
[hornetq-core-2.2.7.Final.jar:]
at
org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
[hornetq-core-2.2.7.Final.jar:]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_18]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_18]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_18]
It would be great if to know if this a class loading issue or something else. An answer
would be lot of helpful.
Thanks and Regards,
Bharat Savanur
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/630220#630220]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]