[ https://issues.apache.org/jira/browse/ARTEMIS-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426171#comment-16426171 ]
ASF GitHub Bot commented on ARTEMIS-1770: ----------------------------------------- Github user clebertsuconic commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/1990#discussion_r179284174 --- Diff: artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientSessionImpl.java --- @@ -1539,6 +1540,8 @@ public void end(final Xid xid, final int flags) throws XAException { startCall(); try { sessionContext.xaEnd(xid, flags); + } catch (ActiveMQNotConnectedException ex) { + ActiveMQClientLogger.LOGGER.connectionClosedWarn(ex.getType(), ex.getMessage()); --- End diff -- can you at least keep a logger.debug(ex.getMessage(), ex) here? This way if a developer ever needs to debug on why.. it would give the developer more information? > Warnings/Errors during clean shutdown of server with JMS Bridge > --------------------------------------------------------------- > > Key: ARTEMIS-1770 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1770 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 1.5.6, 2.5.0 > Reporter: Radovan Stancel > Priority: Major > > If server with JMS bridge is cleanly shutdown then following errors appears > in the server log: > {code} > 16:03:06,458 ERROR [org.apache.activemq.artemis.core.client] (ServerService > Thread Pool -- 76) AMQ214004: XA end operation failed : > ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119010: > Connection is destroyed] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:338) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:318) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.xaEnd(ActiveMQSessionContext.java:383) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.end(ClientSessionImpl.java:1173) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.doEnd(TransactionImple.java:1069) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.endAssociation(TransactionImple.java:1040) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.endAssociation(XAResourceRecord.java:1287) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:313) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3023) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3002) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1674) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:124) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at com.arjuna.ats.arjuna.AtomicAction.cancel(AtomicAction.java:215) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.rollback(TransactionImple.java:284) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider$Entry.rollbackLocal(JBossLocalTransactionProvider.java:317) > at > org.wildfly.transaction.client.provider.jboss.JBossJTALocalTransactionProvider.rollbackLocal(JBossJTALocalTransactionProvider.java:116) > at > org.wildfly.transaction.client.LocalTransaction.rollback(LocalTransaction.java:87) > at > org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.stop(JMSBridgeImpl.java:501) > [artemis-jms-server-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.wildfly.extension.messaging.activemq.jms.bridge.JMSBridgeService$2.run(JMSBridgeService.java:127) > > [wildfly-messaging-activemq-7.1.0.Alpha1-redhat-15.jar:7.1.0.Alpha1-redhat-15] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [rt.jar:1.8.0_71] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [rt.jar:1.8.0_71] > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71] > at org.jboss.threads.JBossThread.run(JBossThread.java:320) > [jboss-threads-2.2.1.Final-redhat-1.jar:2.2.1.Final-redhat-1] > 16:03:06,464 WARN [com.arjuna.ats.jta] (ServerService Thread Pool -- 76) > ARJUNA016129: Could not end XA resource ClientSessionImpl > [name=9969f262-0f10-11e7-a802-3ca9f4349bfc, username=johnOut, closed=true, > factory = > org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl@56098172, > metaData=(jms-session=,)]@79454a5: javax.transaction.xa.XAException > at > org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.end(ClientSessionImpl.java:1182) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.doEnd(TransactionImple.java:1069) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.endAssociation(TransactionImple.java:1040) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.endAssociation(XAResourceRecord.java:1287) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:313) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3023) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3002) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1674) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:124) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at com.arjuna.ats.arjuna.AtomicAction.cancel(AtomicAction.java:215) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.rollback(TransactionImple.java:284) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider$Entry.rollbackLocal(JBossLocalTransactionProvider.java:317) > at > org.wildfly.transaction.client.provider.jboss.JBossJTALocalTransactionProvider.rollbackLocal(JBossJTALocalTransactionProvider.java:116) > at > org.wildfly.transaction.client.LocalTransaction.rollback(LocalTransaction.java:87) > at > org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.stop(JMSBridgeImpl.java:501) > [artemis-jms-server-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.wildfly.extension.messaging.activemq.jms.bridge.JMSBridgeService$2.run(JMSBridgeService.java:127) > > [wildfly-messaging-activemq-7.1.0.Alpha1-redhat-15.jar:7.1.0.Alpha1-redhat-15] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [rt.jar:1.8.0_71] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [rt.jar:1.8.0_71] > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71] > at org.jboss.threads.JBossThread.run(JBossThread.java:320) > [jboss-threads-2.2.1.Final-redhat-1.jar:2.2.1.Final-redhat-1] > Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED > message=AMQ119010: Connection is destroyed] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:338) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:318) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.xaEnd(ActiveMQSessionContext.java:383) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.end(ClientSessionImpl.java:1173) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > ... 19 more > 16:03:06,473 WARN [com.arjuna.ats.jta] (ServerService Thread Pool -- 76) > ARJUNA016045: attempted rollback of < formatId=131077, gtrid_length=37, > bqual_length=36, tx_uid=0:ffff0a280566:-695bf5da:58d2920b:19, > node_name=170082908, branch_uid=0:ffff0a280566:-695bf5da:58d2920b:1f, > subordinatenodename=null, eis_name=unknown eis name > (ClientSessionImpl > [name=9969f262-0f10-11e7-a802-3ca9f4349bfc, username=johnOut, closed=true, > factory = > org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl@56098172, > metaData=(jms-session=,)]@79454a5) failed with exception code > XAException.XAER_RMFAIL: javax.transaction.xa.XAException > at > org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.rollback(ClientSessionImpl.java:1394) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:330) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3023) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3002) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1674) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:124) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at com.arjuna.ats.arjuna.AtomicAction.cancel(AtomicAction.java:215) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.rollback(TransactionImple.java:284) > [narayana-jts-idlj-5.5.5.Final-redhat-1.jar:5.5.5.Final-redhat-1 (revision: > c79e6)] > at > org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider$Entry.rollbackLocal(JBossLocalTransactionProvider.java:317) > at > org.wildfly.transaction.client.provider.jboss.JBossJTALocalTransactionProvider.rollbackLocal(JBossJTALocalTransactionProvider.java:116) > at > org.wildfly.transaction.client.LocalTransaction.rollback(LocalTransaction.java:87) > at > org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.stop(JMSBridgeImpl.java:501) > [artemis-jms-server-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.wildfly.extension.messaging.activemq.jms.bridge.JMSBridgeService$2.run(JMSBridgeService.java:127) > > [wildfly-messaging-activemq-7.1.0.Alpha1-redhat-15.jar:7.1.0.Alpha1-redhat-15] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [rt.jar:1.8.0_71] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [rt.jar:1.8.0_71] > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71] > at org.jboss.threads.JBossThread.run(JBossThread.java:320) > [jboss-threads-2.2.1.Final-redhat-1.jar:2.2.1.Final-redhat-1] > Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED > message=AMQ119010: Connection is destroyed] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:338) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:318) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.xaRollback(ActiveMQSessionContext.java:542) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > at > org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.rollback(ClientSessionImpl.java:1377) > [artemis-core-client-1.5.3.003-redhat-1.jar:1.5.3.003-redhat-1] > ... 16 more > {code} > This happens in case when target for JMS bridge is shutdown before server > with JMS bridge. Note that there is no traffic on JMS bridge in the moment. -- This message was sent by Atlassian JIRA (v7.6.3#76005)