From dev-return-10298-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Wed Feb 04 04:42:22 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 42807 invoked from network); 4 Feb 2009 04:42:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2009 04:42:22 -0000 Received: (qmail 51034 invoked by uid 500); 4 Feb 2009 04:42:21 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 51004 invoked by uid 500); 4 Feb 2009 04:42:21 -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 50986 invoked by uid 99); 4 Feb 2009 04:42:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 20:42:21 -0800 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; Wed, 04 Feb 2009 04:42:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B511C234C4A7 for ; Tue, 3 Feb 2009 20:41:59 -0800 (PST) Message-ID: <490110518.1233722519740.JavaMail.jira@brutus> Date: Tue, 3 Feb 2009 20:41:59 -0800 (PST) From: "Dinkar Rao (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-895) InternalException when querying entity that participates in both inheritance and relationships In-Reply-To: <80975850.1233722519720.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/OPENJPA-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dinkar Rao updated OPENJPA-895: ------------------------------- Attachment: Entity_12.java > InternalException when querying entity that participates in both inheritance and relationships > ---------------------------------------------------------------------------------------------- > > Key: OPENJPA-895 > URL: https://issues.apache.org/jira/browse/OPENJPA-895 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.2.1 > Reporter: Dinkar Rao > Attachments: Entity_1.java, Entity_11.java, Entity_12.java, Test.java > > > Can someone please take a look at this ? This is with 1.2.x. > I have Entity_1 that is extended by Entity_11 and Entity_12. Entity_1 has a 1-m bidirectional relationship with itself. When I query Entity_1 I get the following exception. Entities and Test are attached. > Thanks > Dinkar > Trace: > 13349 inheritance-test TRACE [main] openjpa.Query - Executing query: select e from Entity_1 e > Exception in thread "main" org.apache.openjpa.persistence.PersistenceException: null > at org.apache.openjpa.jdbc.meta.strats.RelationToManyInverseKeyFieldStrategy.join(RelationToManyInverseKeyFieldStrategy.java:98) > at org.apache.openjpa.jdbc.meta.strats.RelationCollectionInverseKeyFieldStrategy.join(RelationCollectionInverseKeyFieldStrategy.java:80) > at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEager(StoreCollectionFieldStrategy.java:214) > at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.access$0(StoreCollectionFieldStrategy.java:194) > at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy$1.select(StoreCollectionFieldStrategy.java:167) > at org.apache.openjpa.jdbc.sql.LogicalUnion.select(LogicalUnion.java:297) > at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEagerParallel(StoreCollectionFieldStrategy.java:164) > at org.apache.openjpa.jdbc.meta.FieldMapping.selectEagerParallel(FieldMapping.java:725) > at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.selectBaseMappings(JDBCStoreManager.java:1273) > at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.select(JDBCStoreManager.java:1104) > at org.apache.openjpa.jdbc.sql.SelectImpl.select(SelectImpl.java:1018) > at org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.select(LogicalUnion.java:626) > at org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.selectIdentifier(LogicalUnion.java:648) > at org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.select(SelectConstructor.java:268) > at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateSelect(JDBCStoreQuery.java:279) > at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.access$0(JDBCStoreQuery.java:264) > at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery$1.select(JDBCStoreQuery.java:253) > at org.apache.openjpa.jdbc.sql.LogicalUnion.select(LogicalUnion.java:297) > at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateUnion(JDBCStoreQuery.java:249) > at org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeQuery(JDBCStoreQuery.java:197) > at org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeQuery(ExpressionStoreQuery.java:681) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:988) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:805) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:775) > at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:771) > at org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:517) > at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:254) > at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:293) > at Test.main(Test.java:39) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.