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:
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.
Attachments
Issue Links
- duplicates
-
GERONIMO-265 NPE while deploying resource adapter
- Closed