3 Replies Latest reply on Aug 21, 2003 11:29 AM by Adrian Brock

    Invalid Transaction ID problem again

    Michael Remijan Newbie

      Hi Forum,

      I've searched through the forum and found a lot of posts about Invalid Transaction ID problems. I just got one too and even though I read a lot of those previous posts, I still can't see what the cause of this exception is.

      My setup is a little bit different because I am not using MDB. My message receiver is in a servlet. During the servlet's init() method I register listener on a Topic. My workflow looks like this:

      1) Servlet gets LOCAL Session bean.
      2) Session bean gets LOCAL entity bean
      3) Entity bean updated database data
      4) Session bean gets a Topic using java:/JmsXA
      5) Session bean publishes a message to the Topic
      6) Transaction appears to commit successfully
      7) Servlet forwards to the next page
      8) Error message saying:

      19:37:37,640 WARN [SpyMessageConsumer] Message consumer closing due to error in
      listening thread.javax.jms.JMSException: Invalid transaction id.
      at org.jboss.mq.SpyXAResourceManager.ackMessage(SpyXAResourceManager.java:75)
      at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:543)
      at java.lang.Thread.run(Thread.java:534)

      Like everyone else I'd like to know why this happens and how I can fix it.

      Thanks,
      Mike