Strange exception using topics
vettori Apr 1, 2004 6:03 PMHi,
I'm using a Topic to send events from an e-commerce site to the processing back-end.
I'm getting this error on JBoss 3.2.3/embedded tomcat 5 on java 1.4.1:
org.jboss.mq.SpyXAException: - nested throwable: (org.jboss.mq.SpyJMSException: Cannot process a transaction; - nested throwable: (java.lang.NullPointerException))
at org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:105)
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:307)
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:633)
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:433)
at org.jboss.mq.SpySession.run(SpySession.java:298)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.jboss.mq.SpyJMSException: Cannot process a transaction; - nested throwable: (java.lang.NullPointerException)
at org.jboss.mq.Connection.send(Connection.java:932)
at org.jboss.mq.SpyXAResourceManager.commit(SpyXAResourceManager.java:127)
at org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:103)
... 7 more
Caused by: java.lang.NullPointerException
at org.jboss.mq.pm.TxManager.releaseList(TxManager.java:234)
at org.jboss.mq.pm.TxManager.rollbackTx(TxManager.java:150)
at org.jboss.mq.server.JMSDestinationManager.transact(JMSDestinationManager.java:451)
at org.jboss.mq.server.JMSServerInterceptorSupport.transact(JMSServerInterceptorSupport.java:186)
at org.jboss.mq.server.TracingInterceptor.transact(TracingInterceptor.java:438)
at org.jboss.mq.server.JMSServerInvoker.transact(JMSServerInvoker.java:186)
at org.jboss.mq.il.jvm.JVMServerIL.transact(JVMServerIL.java:328)
at org.jboss.mq.Connection.send(Connection.java:928)
... 9 more
The error occours between the message is sent and the first MDB subcribed to the topic is called. Also the first bean completes its onMessage method anyway (it sends an email) but other MDB subcribed to the same Topic don't receive the message. Note that I find the above stack trace two times so I think it happens in the call of the subcribed MDBs.
Since there is no line of my code in the stack trace, I don't know where can I find the problem that's causing this.
Anyone can suggest something ?
Thank you