Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 1271 invoked from network); 20 May 2009 16:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 May 2009 16:50:56 -0000 Received: (qmail 76842 invoked by uid 500); 20 May 2009 16:51:08 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 76788 invoked by uid 500); 20 May 2009 16:51:08 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 76747 invoked by uid 99); 20 May 2009 16:51:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2009 16:51:08 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2009 16:51:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 18CE929A001D for ; Wed, 20 May 2009 09:50:46 -0700 (PDT) Message-ID: <632319877.1242838246100.JavaMail.jira@brutus> Date: Wed, 20 May 2009 09:50:46 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1633) When node is created and locked in same transaction, exception is thrown In-Reply-To: <1262400537.1212161805981.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1633?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127112= 21#action_12711221 ]=20 Jukka Zitting commented on JCR-1633: ------------------------------------ Merged to the 1.x branch in revision 776761. > When node is created and locked in same transaction, exception is thrown > ------------------------------------------------------------------------ > > Key: JCR-1633 > URL: https://issues.apache.org/jira/browse/JCR-1633 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: core 1.4.3 > Environment: Jackrabbit Core 1.4.4, Jencks 2.0, Springmodules 0.8= a, Jackrabbit JCA 1.4 > Reporter: Roman Puchkovskiy > Assignee: Claus K=C3=B6ll > Fix For: 1.6.0 > > Attachments: patch.txt, test-create-and-lock-in-same-tx.zip, XALo= ckTest.java > > > Following code fails when executed inside an XA transaction: > Node n =3D session.getRootNode().addNode("n"); > n.addMixin("mix:lockable"); > session.save(); > Lock lock =3D n.lock(false, false); > Stacktrace is > Caused by: javax.transaction.xa.XAException > =09at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionCo= ntext.java:155) > =09at org.apache.jackrabbit.core.XASessionImpl.commit(XASessionImpl.java:= 337) > =09at org.apache.jackrabbit.jca.TransactionBoundXAResource.commit(Transac= tionBoundXAResource.java:39) > =09at org.apache.geronimo.transaction.manager.WrapperNamedXAResource.comm= it(WrapperNamedXAResource.java:47) > =09at org.apache.geronimo.transaction.manager.TransactionImpl.commit(Tran= sactionImpl.java:301) > =09... 32 more > Caused by: org.apache.jackrabbit.core.TransactionException: Unable to upd= ate. > =09at org.apache.jackrabbit.core.lock.XAEnvironment.prepare(XAEnvironment= .java:275) > =09at org.apache.jackrabbit.core.lock.XALockManager.prepare(XALockManager= .java:245) > =09at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionCo= ntext.java:138) > =09... 36 more > Caused by: javax.jcr.ItemNotFoundException: failed to build path of 48fb5= 9d8-ac77-4b9f-8b53-9f2492dca5e5: 48fb59d8-ac77-4b9f-8b53-9f2492dca5e5: 48fb= 59d8-ac77-4b9f-8b53-9f2492dca5e5 > =09at org.apache.jackrabbit.core.HierarchyManagerImpl.getPath(HierarchyMa= nagerImpl.java:407) > =09at org.apache.jackrabbit.core.CachingHierarchyManager.getPath(CachingH= ierarchyManager.java:272) > =09at org.apache.jackrabbit.core.lock.LockManagerImpl.getPath(LockManager= Impl.java:651) > =09at org.apache.jackrabbit.core.lock.LockManagerImpl.internalLock(LockMa= nagerImpl.java:276) > =09at org.apache.jackrabbit.core.lock.XAEnvironment$LockInfo.update(XAEnv= ironment.java:409) > =09at org.apache.jackrabbit.core.lock.XAEnvironment.prepare(XAEnvironment= .java:273) > =09... 38 more > Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: 48f= b59d8-ac77-4b9f-8b53-9f2492dca5e5 > =09at org.apache.jackrabbit.core.state.SessionItemStateManager.getItemSta= te(SessionItemStateManager.java:189) > =09at org.apache.jackrabbit.core.HierarchyManagerImpl.getItemState(Hierar= chyManagerImpl.java:188) > =09at org.apache.jackrabbit.core.HierarchyManagerImpl.getPath(HierarchyMa= nagerImpl.java:402) > =09... 43 more --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.