[ 
https://issues.apache.org/jira/browse/TOMEE-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557860#comment-17557860
 ] 

Richard Zowalla edited comment on TOMEE-3800 at 6/23/22 8:11 AM:
-----------------------------------------------------------------

Did some bisect on dbcp2:


{code:java}
zowallar@node-147:~/IdeaProjects/commons-dbcp$ git bisect good
377dd0a46189c53b9af1f89c7e4e9e1bc7698646 is the first bad commit
commit 377dd0a46189c53b9af1f89c7e4e9e1bc7698646
Author: Gary Gregory <[email protected]>
Date:   Tue May 29 15:04:45 2018 -0600

    [DBCP-491] Ensure DBCP ConnectionListener can deal with transaction
    managers which invoke rollback in a separate thread. Applied modified
    patch from Zheng Feng.
{code}

Looks like the change in TransactionRegistry is causing the issue (does not 
honour own JavaDoc, which says it should return NULL in case the transaction 
isn't active anymore)




was (Author: rzo1):
Did some bisect on dbcp2:


{code:java}
zowallar@node-147:~/IdeaProjects/commons-dbcp$ git bisect good
377dd0a46189c53b9af1f89c7e4e9e1bc7698646 is the first bad commit
commit 377dd0a46189c53b9af1f89c7e4e9e1bc7698646
Author: Gary Gregory <[email protected]>
Date:   Tue May 29 15:04:45 2018 -0600

    [DBCP-491] Ensure DBCP ConnectionListener can deal with transaction
    managers which invoke rollback in a separate thread. Applied modified
    patch from Zheng Feng.
{code}



> DBCP 2.9.0
> ----------
>
>                 Key: TOMEE-3800
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3800
>             Project: TomEE
>          Issue Type: Dependency upgrade
>            Reporter: Jean-Louis Monteiro
>            Priority: Major
>             Fix For: 8.0.13
>
>
> This can't be a blind Maven pom update.
> From 2.4.0+ it seems we have a couple of tests failing.
>  
> QuartzPersistenceForEJBTimersTest and XAPoolTest at least need some tweaking.
>  
> *XAPoolTest*
> Line 97 fails with an AssertionError. *UserName* is not contained in the 
> *toString()* of the connection anymore.
> *QuartzPersistenceForEJBTimersTest*
>  Is not able to obtain a JDBC connection. Stacktrace shows:
> {{Caused by: java.sql.SQLException: Could not retrieve datasource via JNDI 
> url 'openejb:Resource/QuartzPersistenceForEJBTimersDB' java.sql.SQLException: 
> Unable to enlist connection in the transaction}}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to