2 Replies Latest reply on Oct 14, 2005 3:35 PM by viky4u

    javax.jms.IllegalStateException: Session is closed.

    viky4u

      Hi,
      Iam using JBoss 4.0.2 and reading from a queue.
      the "onMessage()" seems to work, once that is done, the client is trying to acknowledge the server.
      Thats where i get this error.

      2005-10-14 11:27:18,227|MessageListenerThread - TPTP_IN_QUEUE|WARN|org.jboss.mq.SpyMessageConsumer|Message consumer closing due to error in listening thread.
      javax.jms.IllegalStateException: Session is closed.
      at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:319)
      at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:728)
      at java.lang.Thread.run(Thread.java:595)

      Your help is appreciated.

      Thanks
      Vignesh

        • 1. Re: javax.jms.IllegalStateException: Session is closed.
          viky4u

          I forgot to tell that i have included

          log4j.appender.Default=org.apache.log4j.FileAppender
          log4j.appender.Default.File=jbossmq.log
          log4j.appender.Default.layout=org.apache.log4j.PatternLayout
          log4j.appender.Default.layout.ConversionPattern=%d %-5p [%c(1)] {%t} %m%n
          log4j.appender.Default.Append=false

          # TRACE level logging
          log4j.category.org.jboss.mq=TRACE#org.jboss.logging.XLevel

          # Uncomment to filter invocation layer (transport) logging
          #log4j.category.org.jboss.mq.il=INFO


          And that didnt help me out.

          Thanks
          Vignesh

          • 2. Re: javax.jms.IllegalStateException: Session is closed.
            viky4u

            Iam sorry, It was a undesired effect on software programming called "bug" . I was trying close of the connection at some places.

            Thanks
            Vignesh