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 08D70D9EC for ; Mon, 1 Oct 2012 19:29:08 +0000 (UTC) Received: (qmail 50800 invoked by uid 500); 1 Oct 2012 19:29:07 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 50765 invoked by uid 500); 1 Oct 2012 19:29:07 -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 50757 invoked by uid 99); 1 Oct 2012 19:29:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 19:29:07 +0000 Date: Tue, 2 Oct 2012 06:29:07 +1100 (NCT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <358182763.149963.1349119747753.JavaMail.jiratomcat@arcas> In-Reply-To: <1307085224.148809.1349112668306.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (AMQ-4086) Cannot connect to broker running on server with name ending with a dash 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-4086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467124#comment-13467124 ] Timothy Bish commented on AMQ-4086: ----------------------------------- The reason it doesn't work is that the URI cannot have a host-name that ends in a hyphen or a dot as specified in RFC-952. http://tools.ietf.org/html/rfc952 > Cannot connect to broker running on server with name ending with a dash > ----------------------------------------------------------------------- > > Key: AMQ-4086 > URL: https://issues.apache.org/jira/browse/AMQ-4086 > Project: ActiveMQ > Issue Type: Bug > Components: JMS client > Affects Versions: 5.5.1 > Environment: Windows Server 2008 > Reporter: Hoi Lam > > When our QA was testing our system that employs ActiveMQ, he has the broker running on a server with name ending with a dash: "WinSvr1-". With this server name, the JMS receiver encounters the following JMS exception when connecting to the Broker: > javax.jms.JMSException: Could not connect to broker URL: tcp://WinSvr1-:61616?soTimeout=1000&connectionTimeout=1000. Reason: java.lang.IllegalArgumentException: port out of range:-1 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira