1 Reply Latest reply on Oct 1, 2001 3:18 AM by Allison Westley

    javax.jms.JMSException: Invalid transaction id

    Allison Westley Newbie

      Hello all,

      I'm busy trying to publish to a Topic from a Message Driven Bean, but everytime I do, I get a javax.jms.JMSException.

      [Default] at org.jboss.mq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:76)
      [Default] at org.jboss.mq.SpySession.sendMessage(SpySession.java:396)
      [Default] at org.jboss.mq.SpyTopicPublisher.publish(SpyTopicPublisher.java:106)
      [Default] at org.jboss.mq.SpyTopicPublisher.publish(SpyTopicPublisher.java:64)
      [Default] at com.cc.quizwinner.message.EventDispatcherMDB.sendMessage(Unknown Source)
      [Default] at com.cc.quizwinner.message.EventDispatcherMDB.onMessage(Unknown Source)
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:400)
      [Default] at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:83)
      [Default] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:58)
      [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
      [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Default] at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:281)
      [Default] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:165)
      [Default] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:644)
      [Default] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:420)
      [Default] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:295)
      [Default] at org.jboss.mq.SpySession.run(SpySession.java:216)
      [Default] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
      [Default] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
      [Default] at java.lang.Thread.run(Unknown Source)
      

      I am closing the topicSession and requesting a new one for every onMessage.

      Anyone have any idea?