Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14675

[IBM MQ 8/9 RA] TCK7 - JMSCC0111: IBM MQ classes for JMS attempted to set a pre-existing client ID on a Connection or JMSContext

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.2.0.CD14
    • WebSphereMQ RA
    • None

      There is intermittent failure when TCK 7 test closes connection and creates JMSContext with the same clientID in quick succession. Sometimes happens that following error is thrown:

      08:11:34,966 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /jmsServlet-1.0-SNAPSHOT/: com.ibm.msg.client.jms.DetailedJMSRuntimeException: MQJCA0002: An exception occurred in the IBM MQ layer. See the linked exception for details.
      A call to IBM MQ classes for Java(tm) caused an exception to be thrown.
      See the linked exception for details of the failure.
      	at com.ibm.msg.client.jms.DetailedJMSException.getUnchecked(DetailedJMSException.java:267)
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:201)
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:135)
      	at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createContext(ConnectionFactoryImpl.java:654)
      	at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createContext(ConnectionFactoryImpl.java:553)
      	at JmsServlet.processRequest(JmsServlet.java:77)
      	at JmsServlet.doGet(JmsServlet.java:41)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [jboss-servlet-api_3.1_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
      	at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:67) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) [undertow-servlet-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) [undertow-core-2.0.0.SP1-redhat-1.jar:2.0.0.SP1-redhat-1]
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1349)
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_131]
      Caused by: com.ibm.msg.client.jms.DetailedJMSException: MQJCA0002: An exception occurred in the IBM MQ layer. See the linked exception for details.
      A call to IBM MQ classes for Java(tm) caused an exception to be thrown.
      See the linked exception for details of the failure.
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:199)
      	... 48 more
      Caused by: com.ibm.msg.client.jms.DetailedJMSException: MQJCA0002: An exception occurred in the IBM MQ layer. See the linked exception for details.
      A call to IBM MQ classes for Java(tm) caused an exception to be thrown.
      See the linked exception for details of the failure.
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:184)
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:135)
      	at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSContext(ConnectionFactoryImpl.java:835)
      	at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createContext(ConnectionFactoryImpl.java:639)
      	... 46 more
      Caused by: com.ibm.mq.connector.DetailedResourceException: MQJCA1011: Failed to allocate a JMS connection., error code: MQJCA1011 An internal error caused an attempt to allocate a connection to fail. See the linked exception for details of the failure.
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:169)
      	at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:135)
      	at com.ibm.mq.connector.ConnectionBuilder.createContext(ConnectionBuilder.java:252)
      	at com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createContext(ManagedConnectionFactoryImpl.java:744)
      	at com.ibm.mq.connector.outbound.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:171)
      	at com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:236)
      	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1327)
      	at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:499)
      	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:632)
      	at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:604)
      	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:624)
      	at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:430)
      	at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:789)
      	at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSContext(ConnectionFactoryImpl.java:754)
      	... 47 more
      Caused by: com.ibm.msg.client.jms.DetailedInvalidClientIDRuntimeException: JMSCC0111: IBM MQ classes for JMS attempted to set a pre-existing client ID on a Connection or JMSContext.
      An application attempted to set the client ID property of a valid Connection or JMSContext to the value 'cts3' but this value was already in use.
      The clientId had already been set by Thread[default task-1,5,main]
      	Wed Apr 25 08:11:31 CEST 2018
      	: java.lang.Thread.getStackTrace(Thread.java:1559)
      	: com.ibm.msg.client.jms.internal.JmsConnectionImpl$ClientIDSetter.<init>(JmsConnectionImpl.java:128)
      	: com.ibm.msg.client.jms.internal.JmsConnectionImpl.checkDuplicateClientID(JmsConnectionImpl.java:317)
      	: com.ibm.msg.client.jms.internal.JmsConnectionImpl.<init>(JmsConnectionImpl.java:252)
      	: com.ibm.msg.client.jms.internal.JmsXAConnectionImpl.<init>(JmsXAConnectionImpl.java:93)
      	: com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:334)
      	: com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:131)
      	: com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:134)
      	: com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createConnection(ManagedConnectionFactoryImpl.java:571)
      	: com.ibm.mq.connector.outbound.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:174)
      	: com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:236)
      	: org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1327)
      	: org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:499)
      	: org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:632)
      	: org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:604)
      	: org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:624)
      	: org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:430)
      	: org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:789)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSConnection(ConnectionFactoryImpl.java:309)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnectionInternal(ConnectionFactoryImpl.java:252)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:225)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:201)
      	: JmsServlet.processRequest(JmsServlet.java:75)
      	: JmsServlet.doGet(JmsServlet.java:41)
      	: javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      	: javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	: io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      	: io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	: io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:67)
      	: io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	: org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      	: io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      	: io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      	: io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      	: io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      	: io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      	: io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
      	: io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
      	: io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
      	: io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
      	: io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
      	: io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
      	: io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      	: org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
      	: io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      	: io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
      	: io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
      	: io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
      	: org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	: org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      	: org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      	: org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1349)
      	: java.lang.Thread.run(Thread.java:748)
      .
      Ensure that the connection is valid and that the client ID is unique.
      	at com.ibm.msg.client.jms.DetailedInvalidClientIDException.getUnchecked(DetailedInvalidClientIDException.java:273)
      	at com.ibm.msg.client.jms.internal.JmsErrorUtils.convertJMSException(JmsErrorUtils.java:173)
      	at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAContextInternal(JmsConnectionFactoryImpl.java:659)
      	at com.ibm.mq.jms.MQXAConnectionFactory.createXAContext(MQXAConnectionFactory.java:243)
      	at com.ibm.mq.jms.MQXAConnectionFactory.createXAContext(MQXAConnectionFactory.java:212)
      	at com.ibm.mq.connector.ConnectionBuilder.createContext(ConnectionBuilder.java:226)
      	... 58 more
      Caused by: com.ibm.msg.client.jms.DetailedInvalidClientIDException: JMSCC0111: IBM MQ classes for JMS attempted to set a pre-existing client ID on a Connection or JMSContext. An application attempted to set the client ID property of a valid Connection or JMSContext to the value 'cts3' but this value was already in use.
      The clientId had already been set by Thread[default task-1,5,main]
      	Wed Apr 25 08:11:31 CEST 2018
      	: java.lang.Thread.getStackTrace(Thread.java:1559)
      	: com.ibm.msg.client.jms.internal.JmsConnectionImpl$ClientIDSetter.<init>(JmsConnectionImpl.java:128)
      	: com.ibm.msg.client.jms.internal.JmsConnectionImpl.checkDuplicateClientID(JmsConnectionImpl.java:317)
      	: com.ibm.msg.client.jms.internal.JmsConnectionImpl.<init>(JmsConnectionImpl.java:252)
      	: com.ibm.msg.client.jms.internal.JmsXAConnectionImpl.<init>(JmsXAConnectionImpl.java:93)
      	: com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:334)
      	: com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:131)
      	: com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:134)
      	: com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createConnection(ManagedConnectionFactoryImpl.java:571)
      	: com.ibm.mq.connector.outbound.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:174)
      	: com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:236)
      	: org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1327)
      	: org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:499)
      	: org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:632)
      	: org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:604)
      	: org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:624)
      	: org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:430)
      	: org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:789)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSConnection(ConnectionFactoryImpl.java:309)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnectionInternal(ConnectionFactoryImpl.java:252)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:225)
      	: com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnection(ConnectionFactoryImpl.java:201)
      	: JmsServlet.processRequest(JmsServlet.java:75)
      	: JmsServlet.doGet(JmsServlet.java:41)
      	: javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      	: javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      	: io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      	: io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	: io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:67)
      	: io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	: org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
      	: io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      	: io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      	: io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      	: io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      	: io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      	: io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	: io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)
      	: io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
      	: io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
      	: io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
      	: io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
      	: io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
      	: io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      	: org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
      	: io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
      	: io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      	: io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
      	: io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
      	: io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
      	: org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	: org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      	: org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      	: org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1349)
      	: java.lang.Thread.run(Thread.java:748)
      . Ensure that the connection is valid and that the client ID is unique.
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_131]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_131]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_131]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_131]
      	at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:319)
      	at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:226)
      	at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:126)
      	at com.ibm.msg.client.jms.internal.JmsConnectionImpl.checkDuplicateClientID(JmsConnectionImpl.java:308)
      	at com.ibm.msg.client.jms.internal.JmsConnectionImpl.<init>(JmsConnectionImpl.java:252)
      	at com.ibm.msg.client.jms.internal.JmsXAConnectionImpl.<init>(JmsXAConnectionImpl.java:93)
      	at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:334)
      	at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAContextInternal(JmsConnectionFactoryImpl.java:639)
      	... 61 more
      

      If there is delay between close and create then issue disappears.

      TCK7 tests which are failing because of this issue:

      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createConsumerTest_from_ejb
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createConsumerTest_from_jsp
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createConsumerTest_from_servlet
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createDurableConsumerTest1_from_ejb
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createDurableConsumerTest1_from_jsp
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createDurableConsumerTest1_from_servlet
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createDurableConsumerTest2_from_ejb
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createDurableConsumerTest2_from_jsp
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createDurableConsumerTest2_from_servlet
      [javatest.batch] FAILED........com/sun/ts/tests/jms/core20/jmscontexttopictests/Client.java#createSharedConsumerTest1_from_ejb
      

              jmesnil1@redhat.com Jeff Mesnil
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: