Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86D8710AF4 for ; Mon, 3 Feb 2014 14:34:15 +0000 (UTC) Received: (qmail 63484 invoked by uid 500); 3 Feb 2014 14:34:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 63298 invoked by uid 500); 3 Feb 2014 14:34:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 63246 invoked by uid 99); 3 Feb 2014 14:34:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 14:34:11 +0000 Date: Mon, 3 Feb 2014 14:34:11 +0000 (UTC) From: "Mark Thomas (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DBCP-356) ManagedDataSource doesn't work with an active transaction in progress on IBM JDK 6+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DBCP-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Thomas resolved DBCP-356. ------------------------------ Resolution: Cannot Reproduce I've just tested this with the latest IBM JVM and can't reproduce it. Given an earlier comment indicated that the root cause was a JVM bug, it looks like the JVM bug has been fixed. > ManagedDataSource doesn't work with an active transaction in progress on IBM JDK 6+ > ----------------------------------------------------------------------------------- > > Key: DBCP-356 > URL: https://issues.apache.org/jira/browse/DBCP-356 > Project: Commons Dbcp > Issue Type: Bug > Affects Versions: 1.3, 1.4 > Environment: IBM JDK 6 > java version "1.6.0" > Java(TM) SE Runtime Environment (build pwa6460sr9fp1-20110208_03(SR9 FP1)) > IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20110203_74623 (JIT enabled, AOT enabled) > J9VM - 20110203_074623 > JIT - r9_20101028_17488ifx3 > GC - 20101027_AA) > JCL - 20110203_01 > commons-dbcp of version 1.3 / 1.4 > Reporter: an envy guest > Labels: ibm, xaresource > Fix For: 1.3.1, 1.4.1 > > Attachments: TransactionRegistry.java.patch, TransactionRegistry.java.patch, commons-dbcp-TransactionRegistry.diff > > > When using IBM JDK 6+ and trying to build commons-dbcp, these tests fail: > org.apache.commons.dbcp.managed.TestBasicManagedDataSource > org.apache.commons.dbcp.managed.TestManagedDataSourceInTx > with error: > java.sql.SQLException: Connection does not have a registered XAResource null, UserName=null, null > at org.apache.commons.dbcp.managed.TransactionRegistry.getXAResource(TransactionRegistry.java:81) > at org.apache.commons.dbcp.managed.TransactionContext.setSharedConnection(TransactionContext.java:88) > at org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:131) > at org.apache.commons.dbcp.managed.ManagedConnection.(ManagedConnection.java:55) > at org.apache.commons.dbcp.managed.ManagedDataSource.getConnection(ManagedDataSource.java:76) > at org.apache.commons.dbcp.managed.TestManagedDataSource.getConnection(TestManagedDataSource.java:53) > at org.apache.commons.dbcp.TestConnectionPool.newConnection(TestConnectionPool.java:81) > at org.apache.commons.dbcp.managed.TestManagedDataSourceInTx.testMaxActive(TestManagedDataSourceInTx.java:102) > When used in conjunction with OpenEJB 3.1.4 examples, the error is the same. > The problem disappears when switched to Oracle JDK 1.6.24 (so, all tests are passed and OpenEJB examples are working). > I beleive this has something to do with differences in java.lang.ref.WeakReference implementations between IBM and Oracle JDKs, which was already discussed here: > http://www.mail-archive.com/dev@commons.apache.org/msg13107.html -- This message was sent by Atlassian JIRA (v6.1.5#6160)