javax.resource.spi.ResourceAdapterInternalException

Failed to stop connection on cleanup

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web73

  • via Spring JIRA by Jan-Kees van Andel, 11 months ago
    Failed to stop connection on cleanup
  • via Spring JIRA by Jan-Kees van Andel, 1 year ago
    Failed to stop connection on cleanup
  • via Oracle Community by Torques, 11 months ago
    Failed to create managed connection: java.lang.NoClassDefFoundError: Could not initialize class org.apache.activemq.ActiveMQPrefetchPolicy
  • Stack trace

    • javax.resource.spi.ResourceAdapterInternalException: Failed to stop connection on cleanup at com.ibm.ejs.jms.JMSCMUtils.mapToResourceException(JMSCMUtils.java:176) at com.ibm.ejs.jms.JMSManagedConnection.cleanup(JMSManagedConnection.java:1122) at com.ibm.ejs.j2c.MCWrapper.cleanup(MCWrapper.java:1549) at com.ibm.ejs.j2c.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:732) at com.ibm.ejs.j2c.FreePool.returnToFreePool(FreePool.java:502) at com.ibm.ejs.j2c.PoolManager.release(PoolManager.java:1915) at com.ibm.ejs.j2c.MCWrapper.releaseToPoolManager(MCWrapper.java:2404) at com.ibm.ejs.j2c.MCWrapper.connectionErrorOccurred(MCWrapper.java:2543) at com.ibm.ejs.j2c.ConnectionEventListener.connectionErrorOccurred(ConnectionEventListener.java:511) at com.ibm.ejs.jms.JMSManagedConnection.connectionErrorOccurred(JMSManagedConnection.java:1493) at com.ibm.ejs.jms.JMSConnectionHandle.markManagedConnectionAsStale(JMSConnectionHandle.java:922) at com.ibm.ejs.jms.JMSSessionHandle.markManagedObjectsAsStale(JMSSessionHandle.java:1540) at com.ibm.ejs.jms.JMSMessageConsumerHandle.markManagedObjectsAsStale(JMSMessageConsumerHandle.java:915) at com.ibm.ejs.jms.JMSMessageConsumerHandle.receive(JMSMessageConsumerHandle.java:570) at com.ibm.ejs.jms.JMSMessageConsumerHandle.receive(JMSMessageConsumerHandle.java:500) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveMessage(AbstractPollingMessageListenerContainer.java:429) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:310) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947) at java.lang.Thread.run(Thread.java:738) Caused by: com.ibm.msg.client.jms.DetailedIllegalStateException: JMSCC0008: This connection is closed. An application called a method that must not be used after the connection is closed. Ensure that the connection is not closed before calling the method. at sun.reflect.GeneratedConstructorAccessor319.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39) at java.lang.reflect.Constructor.newInstance(Constructor.java:527) at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:411) at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:390) at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:104) at com.ibm.msg.client.jms.internal.State.checkNotClosed(State.java:145) at com.ibm.msg.client.jms.internal.JmsConnectionImpl.getExceptionListener(JmsConnectionImpl.java:590) at com.ibm.mq.jms.MQConnection.getExceptionListener(MQConnection.java:373) at com.ibm.ejs.jms.JMSManagedConnection.cleanup(JMSManagedConnection.java:1100) ... 20 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago