Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 23879 invoked from network); 12 Apr 2011 11:43:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Apr 2011 11:43:46 -0000 Received: (qmail 52660 invoked by uid 500); 12 Apr 2011 11:43:45 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52638 invoked by uid 500); 12 Apr 2011 11:43:45 -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 52630 invoked by uid 99); 12 Apr 2011 11:43:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 11:43:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2011 11:43:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A6E029EFE2 for ; Tue, 12 Apr 2011 11:43:05 +0000 (UTC) Date: Tue, 12 Apr 2011 11:43:05 +0000 (UTC) From: "Sascha Just (JIRA)" To: dev@openjpa.apache.org Message-ID: <428876548.52091.1302608585665.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1512256417.52086.1302608345780.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (OPENJPA-1978) Using a MappedSuperclass with IdClass causes NullPointerException in OpenJPA when having classes with persistent fields of the superclass type. 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-1978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Just updated OPENJPA-1978: --------------------------------- Attachment: openjpa-nullpointerexception.tar.gz Maven project containing the 4 annotated test classes and a JUnit test to reproduce the error. The unit test creates a temporary file using File.createTempFile(...) which will be deleted in the @AfterClass method. The test is using a derby file database at the location of the temporary file. > Using a MappedSuperclass with IdClass causes NullPointerException in OpenJPA when having classes with persistent fields of the superclass type. > ------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: OPENJPA-1978 > URL: https://issues.apache.org/jira/browse/OPENJPA-1978 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.1.0 > Environment: independent, tested on Mac OS X (10.5/10.6) and Linux 2.6.32 > Reporter: Sascha Just > Attachments: openjpa-nullpointerexception.tar.gz, stacktrace.txt > > > We got a MappedSuperclass A with IdClass APK. The class B extends A using inheritance type 'TAPE_PER_CLASS'. > The class C holds a field of type A. OpenJPA crashes with a NullPointerException in org.apache.openjpa.jdbc.meta.MappingInfo#mergeColumn. > We tried different annotation strategies to tackle this problem but didn't find a way to get rid of the NullPointerException. While looking at the bug database we found a lot of issues that might be related to this problem but weren't able to track down the cause of the error. > I will attach a stacktrace and a maven project containing a testcase for the above scenario reproducing the error. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira