Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 83736 invoked from network); 7 Dec 2007 22:37:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2007 22:37:10 -0000 Received: (qmail 4229 invoked by uid 500); 7 Dec 2007 22:36:54 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 3573 invoked by uid 99); 7 Dec 2007 22:36:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 14:36:52 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 22:36:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 453AC714258 for ; Fri, 7 Dec 2007 14:36:43 -0800 (PST) Message-ID: <15471367.1197067003278.JavaMail.jira@brutus> Date: Fri, 7 Dec 2007 14:36:43 -0800 (PST) From: "Michelle Caisse (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Resolved: (JDO-514) StateTransitionsReturnedObjects assumes Non Transactional Write enabled by default In-Reply-To: <28766504.1186667022735.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michelle Caisse resolved JDO-514. --------------------------------- Resolution: Fixed Fix Version/s: JDO 2 maintenance release 1 Assignee: Michelle Caisse Revision 583887 > StateTransitionsReturnedObjects assumes Non Transactional Write enabled by default > ---------------------------------------------------------------------------------- > > Key: JDO-514 > URL: https://issues.apache.org/jira/browse/JDO-514 > Project: JDO > Issue Type: Test > Reporter: Ilan Kirsh > Assignee: Michelle Caisse > Fix For: JDO 2 maintenance release 1 > > > StateTransitionsReturnedObjects fails with: > Assertions A5.9-1 through A5.5.8 (serialization, detachment, attachment) failed: > StateTransitionsReturnedObjects: no transaction; current state persistent-nontransactional-dirty > serialize outside tx; unexpected exception caught: com.objectdb.jdo._JDOUserException: Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: org.apache.jdo.tck.pc.lifecycle.StateTransitionObj#3 > FailedObject:org.apache.jdo.tck.pc.lifecycle.StateTransitionObj@701a27 > It seems that StateTransitionsReturnedObjects assumes non transactional write enabled by default. Checking if the implementation supports non transactional write is insufficient (when it is not the default setting). > An explicit: > pm.currentTransaction().setNontransactionalWrite(true); > is needed in getPersistentNontransactionalDirtyInstance, before: > obj.writeField(10000); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.