You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by de...@geronimo.apache.org on 2004/10/03 20:34:31 UTC
[jira] Updated: (GERONIMO-349) Connector impl assumes ResourceAdapter.getXAResources != null
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(<generated>)
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