Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 18412 invoked from network); 10 Apr 2007 21:15:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 21:15:59 -0000 Received: (qmail 34006 invoked by uid 500); 10 Apr 2007 21:16:00 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 33955 invoked by uid 500); 10 Apr 2007 21:16:00 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 33910 invoked by uid 99); 10 Apr 2007 21:16:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 14:16:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 14:15:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 912DB714079 for ; Tue, 10 Apr 2007 14:15:32 -0700 (PDT) Message-ID: <23077429.1176239732590.JavaMail.jira@brutus> Date: Tue, 10 Apr 2007 14:15:32 -0700 (PDT) From: "Kevan Miller (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Closed: (GERONIMO-3087) ConnectionTrackingCoordinator.invoke() does not properly convert Exceptions In-Reply-To: <4591162.1176239132220.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevan Miller closed GERONIMO-3087. ---------------------------------- Resolution: Fixed Fixed as described previously. > ConnectionTrackingCoordinator.invoke() does not properly convert Exceptions > --------------------------------------------------------------------------- > > Key: GERONIMO-3087 > URL: https://issues.apache.org/jira/browse/GERONIMO-3087 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Affects Versions: 1.2, 2.0-M4, 2.0-M5 > Reporter: Kevan Miller > Assigned To: Kevan Miller > Fix For: 2.0-M5 > > > ConnectionTrackingCoordinator.invoke() uses reflection to invoke the appropriate method on an object. If an exception occurs during the method invocation, the exception is converted into an InvocationTargetException. > ConnectionTrackingCoordinator.invoke() needs to turn the exception back into it's original form. Otherwise, you'll get incorrect exceptions returned to client code and exceptions of the form: > java.lang.reflect.UndeclaredThrowableException > at $Proxy33.start(Unknown Source) > at MyTestClass.closeAClosedConnection(MyTestClass.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:136) > at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:119) > at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:72) > at org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:420) > at org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:382) > at org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:257) > at org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:198) > at org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:113) > at org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:149) > at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:107) > at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:80) > at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:60) > at org.apache.openejb.server.ServiceLogger.service(ServiceLogger.java:75) > at org.apache.openejb.server.ServiceAccessController.service(ServiceAccessController.java:55) > at org.apache.openejb.server.ServiceDaemon$1.run(ServiceDaemon.java:117) > at java.lang.Thread.run(Thread.java:613) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator$ConnectionInvocationHandler.invoke(ConnectionTrackingCoordinator.java:329) > ... 29 more > Caused by: javax.jms.IllegalStateException: The Connection is closed > at org.apache.activemq.ra.ManagedConnectionProxy.getConnection(ManagedConnectionProxy.java:93) > at org.apache.activemq.ra.ManagedConnectionProxy.start(ManagedConnectionProxy.java:200) > ... 34 more > I have not reproduced this problem on 1.2, but sure looks like it would cause a problem there, also... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.