From dev-return-16888-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Jul 19 21:24:15 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 16142 invoked from network); 19 Jul 2010 21:24:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 21:24:15 -0000 Received: (qmail 15433 invoked by uid 500); 19 Jul 2010 21:24:15 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 15394 invoked by uid 500); 19 Jul 2010 21:24:15 -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 15279 invoked by uid 99); 19 Jul 2010 21:24:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 21:24:14 +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; Mon, 19 Jul 2010 21:24:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6JLNoH0012276 for ; Mon, 19 Jul 2010 21:23:50 GMT Message-ID: <7886598.462801279574630842.JavaMail.jira@thor> Date: Mon, 19 Jul 2010 17:23:50 -0400 (EDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (OPENJPA-1704) PCEnhancer incorrectly generates readExternal In-Reply-To: <24989480.111271277134043977.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/OPENJPA-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick closed OPENJPA-1704. --------------------------------- Fix Version/s: 1.2.3 2.0.1 Resolution: Fixed > PCEnhancer incorrectly generates readExternal > ---------------------------------------------- > > Key: OPENJPA-1704 > URL: https://issues.apache.org/jira/browse/OPENJPA-1704 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 1.2.2, 2.0.0, 2.1.0 > Reporter: Rick Curtis > Assignee: Rick Curtis > Fix For: 1.2.3, 2.0.1, 2.1.0 > > > OPENJPA-1400 introduced a bug that can be encountered when reading a streamed object under the following circumstances: > - Using a serializable DetachedStateManager () > - The Entity needs to have a version field AND either: > - If no inheritance, a 'proxyable' (ie: java.sql.Date, java.util.List) field with a name that is lexicographically after the version field. > - If using inheritance, a 'proxyable' (ie: java.sql.Date, java.util.List) field in a child class. > The bug could manifest itself in a number of ways. Below is the one I was able to reproduce. > java.lang.IllegalArgumentException > at org.apache.openjpa.persistence.inheritance.serializable.A.pcProvideField(A.java) > at org.apache.openjpa.kernel.DetachedStateManager.proxyDetachedDeserialized(DetachedStateManager.java:438) > at org.apache.openjpa.persistence.inheritance.serializable.A.readExternal(A.java) > at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) > at org.apache.openjpa.persistence.inheritance.serializable.TestSerialization.serializeObject(TestSerialization.java:105) > at org.apache.openjpa.persistence.inheritance.serializable.TestSerialization.testRoundTrip(TestSerialization.java:48) > ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.