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 7201711FF2 for ; Sat, 30 Aug 2014 14:11:20 +0000 (UTC) Received: (qmail 66826 invoked by uid 500); 30 Aug 2014 14:11:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 66765 invoked by uid 500); 30 Aug 2014 14:11:20 -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 13831 invoked by uid 99); 29 Aug 2014 20:53:29 -0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_HELO_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of ping.li@firemon.com) Date: Fri, 29 Aug 2014 13:53:01 -0700 (PDT) From: opks To: dev@activemq.apache.org Message-ID: <1409345581171-4685161.post@n4.nabble.com> Subject: question related to "org/apache/activemq/transport/TransportFactory.java" 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 got the following error message: "Invalid connect parameters: {wireFormat.host=localhost}" After tracing the source code, I find this function in org/apache/activemq/transport/TransportFactory.java: The options is always not empty and this always triggers exception for "Invalid connect parameters: ". Am I reading the code correctly? public Transport doConnect(URI location) throws Exception { try { Map options = new HashMap(URISupport.parseParameters(location)); if( !options.containsKey("wireFormat.host") ) { options.put("wireFormat.host", location.getHost()); } WireFormat wf = createWireFormat(options); Transport transport = createTransport(location, wf); Transport rc = configure(transport, wf, options); if (!options.isEmpty()) { throw new IllegalArgumentException("Invalid connect parameters: " + options); } return rc; } catch (URISyntaxException e) { throw IOExceptionSupport.create(e); } } -- View this message in context: http://activemq.2283324.n4.nabble.com/question-related-to-org-apache-activemq-transport-TransportFactory-java-tp4685161.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.