"IllegalStateException: Connection closed" Message connecting to MQSeries from Seam application

Solution Verified - Updated -

Issue

  • When connecting to IBM MQSeries from a JBoss Seam application, the following exception occurs in the logs:

    Caused by: javax.jms.IllegalStateException: Connection closed
     at com.ibm.ejs.jms.JMSConnectionHandle.checkOpen(JMSConnectionHandle.java:806)
     at com.ibm.ejs.jms.JMSQueueConnectionHandle.createQueueSession(JMSQueueConnectionHandle.java:197)
     at org.jboss.seam.jms.QueueSession.create(QueueSession.java:38)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
    
  • The Seam application is calling an EJB3 which obtains a JMS connection from IBM MQSeries

Environment

  • JBoss Enterprise Application Platform [EAP] 4.3.0.GA
  • IBM MQSeries
  • Seam

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.