Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7ED19BB3 for ; Sat, 4 Feb 2012 22:14:22 +0000 (UTC) Received: (qmail 15439 invoked by uid 500); 4 Feb 2012 22:14:22 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 15261 invoked by uid 500); 4 Feb 2012 22:14:21 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 15252 invoked by uid 99); 4 Feb 2012 22:14:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 22:14:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 22:14:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9463B1A30ED for ; Sat, 4 Feb 2012 22:13:57 +0000 (UTC) Date: Sat, 4 Feb 2012 22:13:57 +0000 (UTC) From: "Timothy Bish (Resolved) (JIRA)" To: dev@activemq.apache.org Message-ID: <1977094537.12026.1328393637609.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-3008) Queue destination bridge does not stay up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-3008. ------------------------------- Resolution: Fixed Fix Version/s: 5.6.0 Fixed by latest changes made for AMQ-2455 > Queue destination bridge does not stay up > ----------------------------------------- > > Key: AMQ-3008 > URL: https://issues.apache.org/jira/browse/AMQ-3008 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.2, 5.4.1 > Reporter: Trey Hyde > Fix For: 5.6.0 > > > I'm not sure of cause of any of these exceptions. The IllegalStateException seems be be due to the direct interaction between the OpenMQ and ActiveMQ jms code. I haven't the faintest why the reconnect code can't connect again in the normal circumstance. The agents that talk directly to OpenMQ do no have issues during these times and nothing is logged in the OpenMQ log. > 2010-10-29 10:54:44,170 | ERROR | failed to forward message on attempt: 1 reason: javax.jms.IllegalStateException: [C4064]: Cannot perform operation, producer is closed. message: ActiveMQMapMessage {commandId = 3, responseRequired = false, messageId = ID:mq1.cdlocal-27338-12 > 88370972745-6:24434:-1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:mq1.cdlocal-27338-1288370972745-6:24434:-1:1, destination = queue://CD.live.search.needsretrieve, transactionId = null, expiration = 0, timestamp = 1288374884167, arrival = > 0, brokerInTime = 1288374884167, brokerOutTime = 1288374884167, correlationId = null, replyTo = null, persistent = true, type = null, priority = 0, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = false, userID = null, content = org.apache.activemq.ut > il.ByteSequence@224f68dc, marshalledProperties = org.apache.activemq.util.ByteSequence@b6d551d, dataStructure = null, redeliveryCounter = 0, size = 1797, properties = {transformation=jms-map-json}, readOnlyProperties = true, readOnlyBody = true, droppable = false} ActiveMQMa > pMessage{ theTable = {} } | org.apache.activemq.network.jms.DestinationBridge | ActiveMQ Session: ID:mq1.cdlocal-27338-1288370972745-4:0:2 > javax.jms.IllegalStateException: [C4064]: Cannot perform operation, producer is closed. > at com.sun.messaging.jmq.jmsclient.MessageProducerImpl.checkState(MessageProducerImpl.java:175) > at com.sun.messaging.jmq.jmsclient.MessageProducerImpl.send(MessageProducerImpl.java:719) > at com.sun.messaging.jmq.jmsclient.QueueSenderImpl.send(QueueSenderImpl.java:145) > at org.apache.activemq.network.jms.QueueBridge.sendMessage(QueueBridge.java:80) > at org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:129) > at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1229) > at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:134) > at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:205) > at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > 2010-10-29 10:54:45,179 | ERROR | failed to forward message on attempt: 2 reason: com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [search2.cdlocal:6076]. - cause: java.net.ConnectException: Connection refused message: ActiveMQMapMessage {co > mmandId = 3, responseRequired = false, messageId = ID:mq1.cdlocal-27338-1288370972745-6:24434:-1:1:1, originalDestination = null, originalTransactionId = null, producerId = ID:mq1.cdlocal-27338-1288370972745-6:24434:-1:1, destination = queue://CD.live.search.needsretrieve, t > ransactionId = null, expiration = 0, timestamp = 1288374884167, arrival = 0, brokerInTime = 1288374884167, brokerOutTime = 1288374884167, correlationId = null, replyTo = null, persistent = true, type = null, priority = 0, groupID = null, groupSequence = 0, targetConsumerId = > null, compressed = false, userID = null, content = org.apache.activemq.util.ByteSequence@224f68dc, marshalledProperties = org.apache.activemq.util.ByteSequence@b6d551d, dataStructure = null, redeliveryCounter = 0, size = 1797, properties = {transformation=jms-map-json}, rea > dOnlyProperties = true, readOnlyBody = true, droppable = false} ActiveMQMapMessage{ theTable = {} } | org.apache.activemq.network.jms.DestinationBridge | ActiveMQ Session: ID:mq1.cdlocal-27338-1288370972745-4:0:2 > com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [search2.cdlocal:6076]. - cause: java.net.ConnectException: Connection refused > at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionException(ExceptionHandler.java:274) > at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:220) > at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:241) > at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:150) > at com.sun.messaging.jmq.jmsclient.PortMapperClient.(PortMapperClient.java:92) > at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.(TCPConnectionHandler.java:164) > at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:135) > at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:778) > at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew(ConnectionInitiator.java:254) > at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:208) > at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:158) > at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:816) > at com.sun.messaging.jmq.jmsclient.ProtocolHandler.(ProtocolHandler.java:1529) > at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:2327) > at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:1024) > at com.sun.messaging.jmq.jmsclient.ConnectionImpl.(ConnectionImpl.java:418) > at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.(UnifiedConnectionImpl.java:60) > at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.(QueueConnectionImpl.java:59) > at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:98) > at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:83) > at com.centraldesktop.mq.openmq.QueueConnectionFactory.createQueueConnection(QueueConnectionFactory.java:33) > at org.apache.activemq.network.jms.JmsQueueConnector.initializeForeignQueueConnection(JmsQueueConnector.java:223) > at org.apache.activemq.network.jms.JmsQueueConnector.restartProducerConnection(JmsQueueConnector.java:184) > at org.apache.activemq.network.jms.DestinationBridge.restartProducer(DestinationBridge.java:177) > at org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:115) > at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1229) > at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:134) > at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:205) > at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > Caused by: java.net.ConnectException: Connection refused > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) > at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176) > at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:381) > at java.net.Socket.connect(Socket.java:537) > at java.net.Socket.connect(Socket.java:487) > at java.net.Socket.(Socket.java:384) > at java.net.Socket.(Socket.java:198) > at com.sun.messaging.jmq.jmsclient.PortMapperClient.makeSocketWithTimeout(PortMapperClient.java:268) > at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:220) > ... 27 more > this exception repeats 10 times IMMEDIATELY and no further attempts are made at reconnecting. A restart of ActiveMQ reestablishes the bridge. > Code and configuration for the AMQ->IMQ bridge is available here: http://github.com/centraldesktop/openmq-spring-bean > This has to be somewhat related to AMQ-2455 which I was told may resolve this issue (it didn't). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira