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 ADED4FA80 for ; Tue, 13 Aug 2013 13:20:34 +0000 (UTC) Received: (qmail 70789 invoked by uid 500); 13 Aug 2013 13:20:34 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 70713 invoked by uid 500); 13 Aug 2013 13:20:33 -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 Delivered-To: moderator for dev@activemq.apache.org Received: (qmail 97765 invoked by uid 99); 13 Aug 2013 08:24:43 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of tushar.itengineer@gmail.com does not designate 216.139.250.139 as permitted sender) Date: Tue, 13 Aug 2013 01:23:38 -0700 (PDT) From: tushky_smarty To: dev@activemq.apache.org Message-ID: <1376382218369-4670303.post@n4.nabble.com> Subject: Channel was inactive for too long: localhost/127.0.0.1:7676 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am trying to connect jms server using ActiveMQ from a stand alone java code but I am struggling with following exception. I tried various options but not able to figure out root cause. It is failing at following line of code, jmsConnection.start(); my broker url is, tcp://localhost:7676?wireFormat.maxInactivityDuration=0 Stack Trace is as follows, javax.jms.JMSException: Channel was inactive for too long: localhost/127.0.0.1:7676 at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1206) at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1289) at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:456) at com.bt.ccdr.dbtoqueue.DBToQueueHelperImpl.getJMSConnection(DBToQueueHelperImpl.java:172) at com.bt.ccdr.dbtoqueue.DBToQueueHelperImpl.main(DBToQueueHelperImpl.java:42) Caused by: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long: localhost/127.0.0.1:7676 at org.apache.activemq.transport.InactivityMonitor.oneway(InactivityMonitor.java:225) at org.apache.activemq.transport.TransportFilter.oneway(TransportFilter.java:83) at org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:100) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40) at org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:74) at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:79) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1195) ... 4 more -- View this message in context: http://activemq.2283324.n4.nabble.com/Channel-was-inactive-for-too-long-localhost-127-0-0-1-7676-tp4670303.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.