Hide Forgot
Commit on close connection throws JMSException but IllegalStateException is expected. The same issue is with com.sun.ts.tests.jms.ee.all.closedTopicConnection.ClosedTopicConnectionTests.closedTopicConnectionCommitTest
Tracking from upstream: https://issues.apache.org/jira/browse/QPID-3700
Just a bit of research for clarity. The relevant portion of the JMS spec to which this issues applies is Section 4.3.5 'Once a connection has been closed, an attempt to use it or its sessions or their message consumers and producers must throw an IllegalStateException (calls to the close method of these objects must be ignored). It is valid to continue to use message objects created or received via the connection, with the exception of a received message’s acknowledge method.' I am also attaching the patch that I provided upstream just as a backup.
Created attachment 548955 [details] Patch for incorrect exception being thrown for call to commit() on a closed connection
For clarification the required exception is a javax.jms.IllegalStateException, not a java.lang.IllegalStateException.
The issue is still present in 0.14-4
Can you provide the logs from the TCK? We don't throw anything but a javax.jms.IllegalStatException now so I need to see what the TCK actually thinks we are throwing.
Looking at the code, this has already been fixed in the JMS client. However we will require patch https://issues.apache.org/jira/browse/QPID-3716