commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DBCP-383) NPE during XA commit (possibly doing startup recovery)
Date Mon, 03 Feb 2014 21:59:08 GMT

     [ https://issues.apache.org/jira/browse/DBCP-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Thomas resolved DBCP-383.
------------------------------

    Resolution: Fixed

I've changed this to throw XAException. There didn't seem much point swapping one unchecked
exception (NPE) for another (ISE).

This changed has been made in 2.x and 1.5.x.

> NPE during XA commit (possibly doing startup recovery)
> ------------------------------------------------------
>
>                 Key: DBCP-383
>                 URL: https://issues.apache.org/jira/browse/DBCP-383
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Martin Lichtin
>
> Encountering nullpointer exception at 
> java.lang.NullPointerException
> 	at org.apache.commons.dbcp.managed.LocalXAConnectionFactory$LocalXAResource.commit(LocalXAConnectionFactory.java:201)
> 	at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTransaction.java:784)
> 	at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:73)
> 	at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage.java:111)
> 	at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.java:87)
> 	at com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagator.java:66)
> 	at com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardStateHandler.java:120)
> 	at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105)
> 	at com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer.java:112)
> 	at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message