geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Assigned: (GERONIMO-265) NPE while deploying resource adapter
Date Sun, 18 Jul 2004 23:03:40 GMT

   The following issue has been re-assigned.

   Assignee: David Jencks (
View the issue:

Here is an overview of the issue:
        Key: GERONIMO-265
    Summary: NPE while deploying resource adapter
       Type: Bug

     Status: Open
   Priority: Major

    Project: Apache Geronimo

   Assignee: David Jencks
   Reporter: toby cabot

    Created: Mon, 12 Jul 2004 2:45 PM
    Updated: Sun, 18 Jul 2004 4:01 PM
Environment: fedora core 2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)

i'm trying to deploy a resource adapter with an outbound connector and get a null pointer
exception.  My connector doesn't support transactions so i've got


in ra.xml and


in the connectionmanager element of geronimo-ra.xml.  The rar deploys fine but when I try
to start it I get a NPE at org.apache.geronimo.connector.outbound.ConnectionManagerFactory$ReturnableXAResource.getName(
because XAResource is null.

I hacked ConnectionManagerFactory to throw if given a null XAResource in its constructor (since
it will throw later anyway) and got 

Caused by: java.lang.NullPointerException: can't supply null XAResource.
	at org.apache.geronimo.connector.outbound.ConnectionManagerFactory$ReturnableXAResource.<init>(
	at org.apache.geronimo.connector.outbound.AbstractConnectionManager.getRecoveryXAResource(
	at org.apache.geronimo.connector.outbound.AbstractConnectionManager$$FastClassByCGLIB$$80012030.invoke(<generated>)

The code in AbstractConnectionManager.getRecoveryXAResource() seems suspect since it's instantiating
ManagedConnectionInfo() and a few lines later calling its getXAResource() method, but setXAResource()
has never been set and ManagedConnectionInfo doesn't set it in the constructor.

On the other hand, I'm not sure why we're trying to get an XAResource when the deployment
descriptors specify no transactions.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message