Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 50639 invoked from network); 30 Jun 2009 22:15:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 22:15:00 -0000 Received: (qmail 21105 invoked by uid 500); 30 Jun 2009 22:15:11 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 21022 invoked by uid 500); 30 Jun 2009 22:15:11 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 21012 invoked by uid 99); 30 Jun 2009 22:15:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 22:15:11 +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; Tue, 30 Jun 2009 22:15:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 303FB234C004 for ; Tue, 30 Jun 2009 15:14:47 -0700 (PDT) Message-ID: <183318435.1246400087182.JavaMail.jira@brutus> Date: Tue, 30 Jun 2009 15:14:47 -0700 (PDT) From: "Ravi P Palacherla (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-453) Evicting embedded object nullifies statemanager In-Reply-To: <31410390.1196085223035.JavaMail.jira@brutus> 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/OPENJPA-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725832#action_12725832 ] Ravi P Palacherla commented on OPENJPA-453: ------------------------------------------- Also the issue can be reproduced with a simple testcase. Let's say you have an entity Book and it has a String title. In your test code persist the entity book. Let a reader thread do book.getTitle() in a while loop and a writer thread that will do a transactional book.setTitle() in a while loop. Same Book obj is used throughout the sample. In the above setup the test code will hang because of the issue explained in my previous comment. Will try to create a JIRA test case for the above explanation and will attach it to this issue. Regards, Ravi. > Evicting embedded object nullifies statemanager > ----------------------------------------------- > > Key: OPENJPA-453 > URL: https://issues.apache.org/jira/browse/OPENJPA-453 > Project: OpenJPA > Issue Type: Bug > Environment: Kodo 4.1.4, Ms sql server 2005, jTDS 1.2, jdk 1.6 > Reporter: Christiaan > Assignee: Ravi P Palacherla > Attachments: OpenJPABug453Embedded.zip, openJPATestCase.zip, TestCaseEvictEmbedded.zip > > > I am noticing the following behaviour: If evict() is called on an embedded > object the statemanager is nullified which is in contrast to non-embedded > objects. Subsequently, calling JDOHelper.getPersistenceManager() on the > evicted embedded object returns null. Is this the correct behaviour? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.