Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 91358 invoked from network); 27 Oct 2008 15:40:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2008 15:40:14 -0000 Received: (qmail 30179 invoked by uid 500); 27 Oct 2008 15:40:17 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 30154 invoked by uid 500); 27 Oct 2008 15:40:17 -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 30142 invoked by uid 99); 27 Oct 2008 15:40:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 08:40:17 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 15:39:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B7BD1234C231 for ; Mon, 27 Oct 2008 08:39:52 -0700 (PDT) Message-ID: <418339169.1225121992745.JavaMail.jira@brutus> Date: Mon, 27 Oct 2008 08:39:52 -0700 (PDT) From: "Allan Schrum (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQNET-118) TransportFactory fails to connect to any service due to exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org TransportFactory fails to connect to any service due to exception ----------------------------------------------------------------- Key: AMQNET-118 URL: https://issues.apache.org/activemq/browse/AMQNET-118 Project: ActiveMQ .Net Issue Type: Bug Components: ActiveMQ Client Affects Versions: 1.1 Environment: Windows XP .NET 2.0 Reporter: Allan Schrum Assignee: James Strachan Priority: Blocker Fix For: 1.1 Attachments: Apache.NMS.ActiveMQ.707803.diff The TransportFactory delays instantiating the underlying TransportFactories until they are used. The current logic checks the dictionary factoryCache to see if the TransportFactory exists. Failing that it adds the TransportFactory and continues on. Unfortunately, the System.Collections.Generic.Dictionary class throws an exception when an item that does not exist is selected. This causes all connections to abort during the top-level CreateConnection() call. Attached is a patch to TransportFactory.cs that fixes this problem. I grant ASF license to this patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.