Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 5628 invoked from network); 3 Oct 2004 18:32:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Oct 2004 18:32:58 -0000 Received: (qmail 74707 invoked by uid 500); 3 Oct 2004 18:32:43 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 74640 invoked by uid 500); 3 Oct 2004 18:32:42 -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 Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 74589 invoked by uid 99); 3 Oct 2004 18:32:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 03 Oct 2004 11:32:38 -0700 Received: (qmail 13428 invoked from network); 3 Oct 2004 18:34:32 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 3 Oct 2004 18:34:32 -0000 Message-ID: <8725513.1096828471999.JavaMail.apache@nagoya> Date: Sun, 3 Oct 2004 11:34:31 -0700 (PDT) From: dev@geronimo.apache.org To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-349) Connector impl assumes ResourceAdapter.getXAResources != null In-Reply-To: <1274414347.1096765771969.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The following issue has been updated: Updater: Aaron Mulder (mailto:ammulder@alumni.princeton.edu) Date: Sun, 3 Oct 2004 11:32 AM Changes: Version changed to 1.0-M2 Version changed from 1.0-M3 --------------------------------------------------------------------- For a full history of the issue, see: http://issues.apache.org/jira/browse/GERONIMO-349?page=history --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/GERONIMO-349 Here is an overview of the issue: --------------------------------------------------------------------- Key: GERONIMO-349 Summary: Connector impl assumes ResourceAdapter.getXAResources != null Type: Bug Status: Reopened Priority: Major Project: Apache Geronimo Components: connector Fix Fors: 1.0-M3 Versions: 1.0-M2 Assignee: Aaron Mulder Reporter: Aaron Mulder Created: Sat, 2 Oct 2004 6:09 PM Updated: Sun, 3 Oct 2004 11:32 AM Description: Deploy a resource adapter that does not support XA and where the ResourceAdapter implemntation of getXAResources returns null. This is allowed by the spec: http://java.sun.com/j2ee/1.4/docs/api/javax/resource/spi/ResourceAdapter.html#getXAResources(javax.resource.spi.ActivationSpec[]) During Geronimo startup, I get: 20:44:09,098 ERROR [CollectionProxy] Listener threw exception java.lang.reflect.InvocationTargetException at org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.getValue(GBeanMBeanAttribute.java:316) at org.apache.geronimo.gbean.jmx.GBeanMBean.getAttribute(GBeanMBean.java:630) at org.apache.geronimo.gbean.jmx.RawInvoker.getAttribute(RawInvoker.java:53) ... Caused by: java.lang.NullPointerException at org.apache.geronimo.connector.ActivationSpecWrapper.getRecoveryXAResources(ActivationSpecWrapper.java:159) at org.apache.geronimo.connector.ActivationSpecWrapper$$FastClassByCGLIB$$aaa078c1.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87) at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.jmx.GBeanMBeanAttribute.getValue(GBeanMBeanAttribute.java:313) ... 52 more It appears that the ActivationSpecWrapper is assuming that the method would return an empty array and it blows up if the method returns null. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira