From dev-return-21465-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Mon Aug 09 09:42:17 2010 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 85478 invoked from network); 9 Aug 2010 09:42:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 09:42:17 -0000 Received: (qmail 86195 invoked by uid 500); 9 Aug 2010 09:42:17 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 85709 invoked by uid 500); 9 Aug 2010 09:42:16 -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 85577 invoked by uid 99); 9 Aug 2010 09:42:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 09:42:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 09:42:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o799fmJH008839 for ; Mon, 9 Aug 2010 09:41:48 GMT Message-ID: <510046.1771281346908669.JavaMail.jira@thor> Date: Mon, 9 Aug 2010 05:41:48 -0400 (EDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-2776) Connection refused when using shortname in activemqurl In-Reply-To: <27275482.13881276427092346.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-2776. ----------------------------- Resolution: Fixed variant of patch applied that makes localhost resolution conditional on useLocalHost which now defaults to false. > Connection refused when using shortname in activemqurl > ------------------------------------------------------ > > Key: AMQ-2776 > URL: https://issues.apache.org/activemq/browse/AMQ-2776 > Project: ActiveMQ > Issue Type: Bug > Components: Connector > Affects Versions: 5.3.2, 5.4.0 > Environment: Suse 10 Sp2 > Reporter: vioa lu > Assignee: Gary Tully > Fix For: 5.4.0 > > Attachments: activemq-2776.patch > > > 1. On server suse10sp268, start activemq , then run activemq-admin.bat browse --amqurl tcp://suse10sp268:61616 TEST.FOO , got excecption Caused by: javax.jms.JMSException: Could not connect to broker URL: tcp://suse10sp268:61616. Reason: java.net.ConnectException: Connection refused: connect > at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) > at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286) > at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185) > at org.apache.activemq.ra.ActiveMQConnectionSupport.makeConnection(ActiveMQConnectionSupport.java:79) > at org.apache.activemq.ra.ActiveMQConnectionSupport.makeConnection(ActiveMQConnectionSupport.java:61) > at org.apache.activemq.ra.ActiveMQManagedConnectionFactory.createManagedConnection(ActiveMQManagedConnectionFactory.java:169) > ... 42 more > Caused by: java.net.ConnectException: Connection refused: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > at java.net.Socket.connect(Socket.java:519) > at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:483) > at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:446) > at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266) > This happened also when got error starting activemq-ra module in geronimo > https://issues.apache.org/jira/browse/GERONIMO-5371 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.