Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 98470 invoked from network); 28 May 2009 14:05:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 May 2009 14:05:04 -0000 Received: (qmail 54841 invoked by uid 500); 28 May 2009 14:05:16 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 54768 invoked by uid 500); 28 May 2009 14:05:16 -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 54758 invoked by uid 99); 28 May 2009 14:05:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2009 14:05:16 +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; Thu, 28 May 2009 14:05:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 99DBA234C045 for ; Thu, 28 May 2009 07:04:45 -0700 (PDT) Message-ID: <138359157.1243519485629.JavaMail.jira@brutus> Date: Thu, 28 May 2009 07:04:45 -0700 (PDT) From: "Michael Dick (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=12713984#action_12713984 ] Michael Dick commented on OPENJPA-453: -------------------------------------- Per comments on the users mailing list this issue can be reproduced with 'vanilla' OpenJPA (no JDO / Kodo). Ravi Palacherla provided this information on the list : Hi Mike, I am able to replicate the nullpointer exception with openJPA Exception in thread "Thread-1" java.lang.NullPointerException at org.apache.openjpa.kernel.StateManagerImpl.replaceObjectField(StateManagerImpl.java:2090) at Book.pcReplaceField(Book.java) at org.apache.openjpa.kernel.StateManagerImpl.replaceField(StateManagerImpl.java:3056) at org.apache.openjpa.kernel.StateManagerImpl.clearFields(StateManagerImpl.java:2665) at org.apache.openjpa.kernel.PNonTransState.beforeWrite(PNonTransState.java:107) at org.apache.openjpa.kernel.PNonTransState.beforeWrite(PNonTransState.java:77) at org.apache.openjpa.kernel.StateManagerImpl.dirty(StateManagerImpl.java:1608) at org.apache.openjpa.kernel.StateManagerImpl.settingStringField(StateManagerImpl.java:1976) at Book.pcSettitle(Book.java) at Book.setTitle(Book.java:23) at Main$2.run(Main.java:60) at java.lang.Thread.run(Thread.java:595) You can download the test case from: http://n2.nabble.com/file/n2982705/embeddopenJPA.zip embeddopenJPA.zip If you verify I set the property "" even though I am spawning threads in my sample. When I correct this configuration by changing MultiThreaded property to "true" then my test case hangs. Please let me know if you need more information. Udi, Please validate my test case to see if it is in sync with your application. - 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 > Attachments: 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.