Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-349

Connector impl assumes ResourceAdapter.getXAResources != null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M2
    • 1.0-M3
    • connector
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              ammulder Aaron Mulder
              ammulder Aaron Mulder
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: