From users-return-11373-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Sat Nov 10 14:07:31 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 99727 invoked from network); 10 Nov 2007 14:07:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2007 14:07:31 -0000 Received: (qmail 63771 invoked by uid 500); 10 Nov 2007 14:07:18 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 63744 invoked by uid 500); 10 Nov 2007 14:07:18 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 63735 invoked by uid 99); 10 Nov 2007 14:07:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2007 06:07:18 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2007 14:07:21 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IqqzE-0002KO-1T for users@activemq.apache.org; Sat, 10 Nov 2007 06:07:00 -0800 Message-ID: <13682284.post@talk.nabble.com> Date: Sat, 10 Nov 2007 06:07:00 -0800 (PST) From: TOPPER_HARLEY To: users@activemq.apache.org Subject: Unable to create MessageProducer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: TREVOR.HIGGINS@ERICSSON.COM X-Virus-Checked: Checked by ClamAV on apache.org Hi, Using AMQ4.1, non persistent, non transactional, I am running an embedded broker with Spring and am often getting an exception when trying to send a message: java.io.IOException: The transport is not running. at org.apache.activemq.transport.TransportSupport.checkStarted(TransportSupport.java:103) at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:117) at org.apache.activemq.transport.InactivityMonitor.oneway(InactivityMonitor.java:141) at org.apache.activemq.transport.TransportFilter.oneway(TransportFilter.java:80) at org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:93) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:43) at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1151) I create one connection on startup and reuse that to create a session and message produer when trying to send a message. Is usually happens when I try to create a session or message producer. Sometimes even restarting the entire JVM does not fix the issue! Why would the transport be stopped....is there some background thread keeping it alive that maybe cannot get processor time to ping it if there is load? My XML defines one transport connector of the form tcp://localhost:61616?wireFormat.maxInactivityDuration=0 What can I do to workaround this issue? Can I catch the exception and try to restart the tranport somehow, although that feels like a bad solution? If I switched to a "vm:" style URI would it make it easier to keep transport alive? Any help is much appreciated as this has us stumped... /Tom -- View this message in context: http://www.nabble.com/Unable-to-create-MessageProducer-tf4782623s2354.html#a13682284 Sent from the ActiveMQ - User mailing list archive at Nabble.com.