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/07/12 23:47:08 UTC
[jira] Created: (GERONIMO-265) NPE while deploying resource adapter
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-265
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-265
Summary: NPE while deploying resource adapter
Type: Bug
Status: Unassigned
Priority: Major
Project: Apache Geronimo
Components:
connector
Versions:
1.0-M2
Assignee:
Reporter: toby cabot
Created: Mon, 12 Jul 2004 2:45 PM
Updated: Mon, 12 Jul 2004 2:45 PM
Environment: fedora core 2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Description:
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
<transaction-support>NoTransaction</transaction-support>
in ra.xml and
<no-transaction/>
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(ConnectionManagerFactory.java:59) 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>(ConnectionManagerFactory.java:50)
at org.apache.geronimo.connector.outbound.AbstractConnectionManager.getRecoveryXAResource(AbstractConnectionManager.java:102)
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.
---------------------------------------------------------------------
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
Re: [jira] Closed: (GERONIMO-265) NPE while deploying resource adapter
Posted by toby cabot <to...@caboteria.org>.
David,
Thank you!
Toby
[jira] Closed: (GERONIMO-265) NPE while deploying resource adapter
Posted by de...@geronimo.apache.org.
Message:
The following issue has been closed.
Resolver: David Jencks
Date: Wed, 6 Oct 2004 7:10 PM
This is actually not a dup of 365, but a parallel issue for outbound adapters. Anyway, a similar fix was needed, don't return a NamedXAResource if the ManagedConnection doesn't supply an XAResource.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-265
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-265
Summary: NPE while deploying resource adapter
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Apache Geronimo
Components:
connector
Fix Fors:
1.0-M3
Versions:
1.0-M2
Assignee: David Jencks
Reporter: toby cabot
Created: Mon, 12 Jul 2004 2:45 PM
Updated: Wed, 6 Oct 2004 7:10 PM
Environment: fedora core 2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Description:
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
<transaction-support>NoTransaction</transaction-support>
in ra.xml and
<no-transaction/>
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(ConnectionManagerFactory.java:59) 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>(ConnectionManagerFactory.java:50)
at org.apache.geronimo.connector.outbound.AbstractConnectionManager.getRecoveryXAResource(AbstractConnectionManager.java:102)
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.
---------------------------------------------------------------------
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
[jira] Commented: (GERONIMO-265) NPE while deploying resource adapter
Posted by de...@geronimo.apache.org.
The following comment has been added to this issue:
Author: toby cabot
Created: Thu, 15 Jul 2004 2:53 PM
Body:
looks as if the issue is that i've used the <no-transaction/> element. I changed my geronimo-ra.xml to use
<xa-transaction>
<transaction-caching/>
</xa-transaction>
and return a mock XAResource and it (at least) starts up cleanly.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/GERONIMO-265?page=comments#action_36704
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-265
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-265
Summary: NPE while deploying resource adapter
Type: Bug
Status: Unassigned
Priority: Major
Project: Apache Geronimo
Components:
connector
Versions:
1.0-M2
Assignee:
Reporter: toby cabot
Created: Mon, 12 Jul 2004 2:45 PM
Updated: Thu, 15 Jul 2004 2:53 PM
Environment: fedora core 2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Description:
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
<transaction-support>NoTransaction</transaction-support>
in ra.xml and
<no-transaction/>
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(ConnectionManagerFactory.java:59) 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>(ConnectionManagerFactory.java:50)
at org.apache.geronimo.connector.outbound.AbstractConnectionManager.getRecoveryXAResource(AbstractConnectionManager.java:102)
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.
---------------------------------------------------------------------
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
[jira] Assigned: (GERONIMO-265) NPE while deploying resource adapter
Posted by de...@geronimo.apache.org.
Message:
The following issue has been re-assigned.
Assignee: David Jencks (mailto:david@coredevelopers.net)
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-265
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
Components:
connector
Versions:
1.0-M2
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)
Description:
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
<transaction-support>NoTransaction</transaction-support>
in ra.xml and
<no-transaction/>
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(ConnectionManagerFactory.java:59) 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>(ConnectionManagerFactory.java:50)
at org.apache.geronimo.connector.outbound.AbstractConnectionManager.getRecoveryXAResource(AbstractConnectionManager.java:102)
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.
---------------------------------------------------------------------
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