Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47627 invoked from network); 2 Jul 2010 19:05:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 19:05:45 -0000 Received: (qmail 71979 invoked by uid 500); 2 Jul 2010 19:05:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 71918 invoked by uid 500); 2 Jul 2010 19:05:44 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 71911 invoked by uid 99); 2 Jul 2010 19:05:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 19:05:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 19:05:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o62IvnUe012636 for ; Fri, 2 Jul 2010 18:57:50 GMT Message-ID: <16926345.178921278097069966.JavaMail.jira@thor> Date: Fri, 2 Jul 2010 14:57:49 -0400 (EDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4731) XA two phase commit with active GLOBAL TEMPORARY TABLE causes An internal error identified by RawStore module In-Reply-To: <30894348.178901278096949598.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-4731: ---------------------------------- Attachment: ReproXATempTable.java utilXid.java > XA two phase commit with active GLOBAL TEMPORARY TABLE causes An internal error identified by RawStore module > --------------------------------------------------------------------------------------------------------------- > > Key: DERBY-4731 > URL: https://issues.apache.org/jira/browse/DERBY-4731 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.3.3.0, 10.4.2.0, 10.5.3.0, 10.6.1.0, 10.7.0.0 > Reporter: Kathey Marsden > Attachments: ReproXATempTable.java, utilXid.java > > > If an XA two phase commit is performed while an GLOBAL TEMPORARY TABLE is active, it will fail with: > XAER_RMERR > Exception in thread "main" javax.transaction.xa.XAException: An internal error w > as identified by RawStore module. > at org.apache.derby.jdbc.EmbedXAResource.wrapInXAException(EmbedXAResour > ce.java:820) > at org.apache.derby.jdbc.EmbedXAResource.commit(EmbedXAResource.java:143 > ) > at ReproXATempTable.tempTableInXA(ReproXATempTable.java:51) > at ReproXATempTable.main(ReproXATempTable.java:14) > Caused by: java.sql.SQLTransactionRollbackException: An internal error was ident > ified by RawStore module. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLE > xceptionFactory40.java:88) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:256) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException > (TransactionResourceImpl.java:391) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Tr > ansactionResourceImpl.java:346) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConne > ction.java:2269) > at org.apache.derby.impl.jdbc.EmbedConnection.xa_commit(EmbedConnection. > java:2924) > at org.apache.derby.jdbc.XATransactionState.xa_commit(XATransactionState > .java:339) > at org.apache.derby.jdbc.EmbedXAResource.commit(EmbedXAResource.java:141 > ) > ... 2 more > Caused by: java.sql.SQLException: An internal error was identified by RawStore m > odule. > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExc > eptionFactory.java:45) > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransport > AcrossDRDA(SQLExceptionFactory40.java:119) > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLE > xceptionFactory40.java:70) > ... 9 more > Caused by: ERROR 40XT0: An internal error was identified by RawStore module. > at org.apache.derby.iapi.error.StandardException.newException(StandardEx > ception.java:276) > at org.apache.derby.impl.store.raw.xact.Xact.setActiveState(Xact.java:18 > 09) > at org.apache.derby.impl.store.raw.xact.Xact.addContainer(Xact.java:1357 > ) > at org.apache.derby.impl.store.access.heap.Heap.create(Heap.java:274) > at org.apache.derby.impl.store.access.heap.HeapConglomerateFactory.creat > eConglomerate(HeapConglomerateFactory.java:195) > at org.apache.derby.impl.store.access.RAMTransaction.createConglomerate( > RAMTransaction.java:823) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.clean > upTempTableOnCommitOrRollback(GenericLanguageConnectionContext.java:1345) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.doCom > mit(GenericLanguageConnectionContext.java:1263) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.xaCom > mit(GenericLanguageConnectionContext.java:1160) > at org.apache.derby.impl.jdbc.EmbedConnection.xa_commit(EmbedConnection. > java:2921) > ... 4 more > See attached program for reproduction. > javac -g ReproXATempTable.java utilXid.java > java ReproXATempTable > To work around the issue, you can drop the temp table before ending the xa transaction. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.