Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 85715 invoked from network); 1 Apr 2011 10:28:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2011 10:28:46 -0000 Received: (qmail 14630 invoked by uid 500); 1 Apr 2011 10:28:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 14556 invoked by uid 500); 1 Apr 2011 10:28:46 -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 14538 invoked by uid 99); 1 Apr 2011 10:28:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 10:28:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 10:28:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F351D8D543 for ; Fri, 1 Apr 2011 10:28:05 +0000 (UTC) Date: Fri, 1 Apr 2011 10:28:05 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <239555087.27319.1301653685993.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1114073409.27195.1301649185685.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (AMQNET-324) Add inner exceptions to the NMSException called "Error creating transport" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQNET-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish reassigned AMQNET-324: ----------------------------------- Assignee: Timothy Bish (was: Jim Gomes) > Add inner exceptions to the NMSException called "Error creating transport" > -------------------------------------------------------------------------- > > Key: AMQNET-324 > URL: https://issues.apache.org/jira/browse/AMQNET-324 > Project: ActiveMQ .Net > Issue Type: Improvement > Components: NMS > Affects Versions: 1.5.0 > Reporter: Frank Gynnild > Assignee: Timothy Bish > Fix For: 1.5.1, 1.6.0 > > > The latest 1.5.0 version of Apache.NMS.ActiveMQ uses reflection to find connection factories. > However, when there are System.Reflection.ReflectionTypeLoadException (Unable to load one or more of the requested types.) > being thrown, these exceptions and InnerExceptions are not being encaspulated and rethrown, so they are kind of difficult to spot. > This can happen if the dll get ILMerged into another assembly, and there are some issues with this exception. > In TransportFactory.cs: > {code} > try > { > factory = NewInstance(scheme.ToLower()); > } > catch(NMSConnectionException) > { > throw; > } > catch > { > throw new NMSConnectionException("Error creating transport."); > } > {code} > The NMSConnectionException("Error creating transport.") doesn't tell you the glory details. > In FactoryFinder.cs, inside the method called private Type SearchAssembly(Assembly assembly, string factoryId) you have this: > {code} > Type[] types = assembly.GetTypes(); > {code} > This code can throw ReflectionTypeLoadException and it can have multiple InnerException that will tell you why it is unable to get > the types. It would be awesome if this exception can be propagated up to the NMSConnectionException as an InnerException. > That way we can trace the real problem much easier. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira