Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 32153200B96 for ; Thu, 22 Sep 2016 08:02:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 30AA9160ADE; Thu, 22 Sep 2016 06:02:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4D419160ADB for ; Thu, 22 Sep 2016 08:02:19 +0200 (CEST) Received: (qmail 83284 invoked by uid 500); 22 Sep 2016 06:02:18 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 83272 invoked by uid 99); 22 Sep 2016 06:02:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 06:02:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8F4C5C03BC for ; Thu, 22 Sep 2016 06:02:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.387 X-Spam-Level: ** X-Spam-Status: No, score=2.387 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, MISSING_HEADERS=1.207, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.de Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id s0dEq8N5Ff8h for ; Thu, 22 Sep 2016 06:02:14 +0000 (UTC) Received: from nm8-vm5.bullet.mail.ne1.yahoo.com (nm8-vm5.bullet.mail.ne1.yahoo.com [98.138.91.230]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 51B9C5FBB7 for ; Thu, 22 Sep 2016 06:02:14 +0000 (UTC) Received: from [98.138.100.103] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 22 Sep 2016 06:02:08 -0000 Received: from [98.138.226.60] by tm102.bullet.mail.ne1.yahoo.com with NNFMP; 22 Sep 2016 06:02:08 -0000 Received: from [127.0.0.1] by smtp211.mail.ne1.yahoo.com with NNFMP; 22 Sep 2016 06:02:07 -0000 X-Yahoo-Newman-Id: 986216.75690.bm@smtp211.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: c6T41i0VM1mBVlygyEUosu_PQ4ECVmTTH1MIQ1MU4NZLn28 7vzzPaZddI_CVWKG70X4Db2nma.Vv8FHcVlVSWdrlXsMsn2jALBshwJq9Aia GmTTBZTc.ZIpuYc5TAZy.QPTJ49gbVYab3B_lX1Bsv34_LGDyUTNhPB5z4Rj BZeuejLxINOHxZrLgeR5F0Yn3xbp8hpGrOMkjlB2GShopkmugrR3Ds4VoTUC hOcH0HefpjgsN.z_7nuz6vbklXnTXxnpQqfbZ7Hv.BBuajRRIT7qJFQePgc3 wfFaaVHtJRs62zlyhoVz25e9zeNema9lpROrCVgWRXVOMOThJnhT6y3GCLH3 YBIqJA1jrDBcGvhyyPy7I6U5bVcSkAtQvZEw5DPujJIM7yvtMJFhhlMPR3TG LzCqRjhjMNAs8Q95McEbO6JblOji4Fc8.MAjlBgsIQCLBp2luEeC.a3FjVbY RUYbWxuT4v7eA_mQ3vE_8NLWuzamRBh4JZaGKwc3NsPgm3EYrIDum3PdgfJD 7213JEZK2kVSyLIgZqZi7gfhFkA_cJWMKvUUlYoPVK2Pom6mKVYg0_2m3ReY NrVmx X-Yahoo-SMTP: 81dhI.iswBBq7boyzRoOX6xuRIe8 From: Mark Struberg Content-Type: multipart/alternative; boundary=Apple-Mail-F00C7653-BA67-44F5-9B72-00178F621BC3 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Subject: Re: trying to run JPA Console inside Intellij IDEA results in this.... Message-Id: <8CF00949-DCF6-4F8A-87F9-B3BF985FBAB9@yahoo.de> Date: Thu, 22 Sep 2016 08:02:05 +0200 References: <68514961.2438355.1474481711795@mail.yahoo.com> <780172991.2494596.1474488055117@mail.yahoo.com> Cc: users@openjpa.apache.org In-Reply-To: X-Mailer: iPad Mail (13G36) archived-at: Thu, 22 Sep 2016 06:02:20 -0000 --Apple-Mail-F00C7653-BA67-44F5-9B72-00178F621BC3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Yes, it contains the number of the field it has problems with as int. Counting of fields start with the uppermost entity class. The fild numbers g= et generated during enhancement. LieGrue, Strub > Am 21.09.2016 um 23:25 schrieb Marc Logemann : >=20 > And when u look at the stacktrace on this line: >=20 > at de.netversys.domain.Distribution.pcProvideField(Distribution.java) >=20 > you see a method which wouldnt be there if the class is not enhanced right= ? >=20 > 2016-09-21 22:00 GMT+02:00 Mark Struberg : >> MappedSuperclasses should not be any problem. At least if it got enhanced= as well. Are you missing this probably? >>=20 >> LieGrue, >> strub >>=20 >>=20 >>=20 >> On Wednesday, 21 September 2016, 21:57, Marc Logemann wrote> >> >Hi, >> > >> > >> >yeah. Every entity extends AbstractEntity which is a MappedSuperclass. >> > >> > >> >2016-09-21 20:15 GMT+02:00 Mark Struberg : >> > >> >Hi Marc! >> >> >> >>Is the entity Distribution part of a supertype/subtype constellation ak= a inheritance? >> >>Does this class 'extends' something? And where do these classes reside?= >> >> >> >> >> >>LieGrue, >> >>strub >> >> >> >> >> >> >> >> >> >> >> >> >> >>> On Wednesday, 21 September 2016, 18:27, Marc Logemann wrote: >> >>> > can somebody hint me where i need to look out for? Quite weird mess= age.... >> >>> >> >>> >> >>> [2016-09-21 18:24:13] >> >>> org.apache.openjpa. persistence.ArgumentException: Errors encountered= while >> >>> resolving metadata. See nested exceptions for details. >> >>> [2016-09-21 18:24:13] java.lang.RuntimeException: >> >>> >> >>> org.apache.openjpa. persistence. PersistenceException: Unexpected att= ribute >> >>> type "int" for persistence-capable class >> >>> "de.netversys.domain. Distribution" >> >>> is detected. If the entity is packaged in a jar file, this may be cau= sed by >> >>> one or more inherited class of the entity not being packaged in the s= ame >> >>> jar file. Please check all inherited class(es) are packaged in the sa= me jar >> >>> file. >> >>> at >> >>> org.apache.openjpa.meta. ProxySetupStateManager. providedIntField( Pr= oxySetupStateManager.java: 230) >> >>> at de.netversys.domain. Distribution.pcProvideField( Distribution.jav= a) >> >>> at >> >>> org.apache.openjpa.meta. ProxySetupStateManager. setProxyData( ProxyS= etupStateManager.java: 62) >> >>> at >> >>> org.apache.openjpa.meta. ClassMetaData.resolveMeta( ClassMetaData.jav= a:1927) >> >>> at org.apache.openjpa.meta. ClassMetaData.resolve( ClassMetaData.java= :1808) >> >>> at >> >>> org.apache.openjpa.meta. MetaDataRepository. processBuffer( MetaDataR= epository.java:829) >> >>> at >> >>> org.apache.openjpa.meta. MetaDataRepository. resolveMeta( MetaDataRep= ository.java:726) >> >>> at >> >>> org.apache.openjpa.meta. MetaDataRepository.resolve( MetaDataReposito= ry.java:650) >> >>> at >> >>> org.apache.openjpa.meta. MetaDataRepository. getMetaDataInternal( Met= aDataRepository.java:418) >> >>> at >> >>> org.apache.openjpa.meta. MetaDataRepository. getMetaData( MetaDataRep= ository.java:389) >> >>> at >> >>> org.apache.openjpa.meta. MetaDataRepository. getMetaData( MetaDataRep= ository.java:472) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder. getClassMetaDa= ta( JPQLExpressionBuilder.java: 175) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder. resolveClassMe= taData( JPQLExpressionBuilder.java: 151) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder. getCandidateMe= taData( JPQLExpressionBuilder.java: 241) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder. getCandidateMe= taData( JPQLExpressionBuilder.java: 211) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder. getCandidateTy= pe( JPQLExpressionBuilder.java: 204) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder. access$200( JP= QLExpressionBuilder.java:79) >> >>> at >> >>> org.apache.openjpa.kernel. jpql.JPQLExpressionBuilder$ ParsedJPQL.pop= ulate( JPQLExpressionBuilder.java: 2426) >> >>> at org.apache.openjpa.kernel. jpql.JPQLParser.populate( JPQLParser.ja= va:60) >> >>> at >> >>> org.apache.openjpa.kernel. ExpressionStoreQuery. populateFromCompilat= ion( ExpressionStoreQuery.java:162) >> >>> at org.apache.openjpa.kernel. QueryImpl.newCompilation( QueryImpl.jav= a:672) >> >>> at >> >>> org.apache.openjpa.kernel. QueryImpl. compilationFromCache( QueryImpl= .java:653) >> >>> at >> >>> org.apache.openjpa.kernel. QueryImpl. compileForCompilation( QueryImp= l.java:619) >> >>> at >> >>> org.apache.openjpa.kernel. QueryImpl.compileForExecutor( QueryImpl.ja= va:681) >> >>> at org.apache.openjpa.kernel. QueryImpl.compile(QueryImpl. java:588) >> >>> at >> >>> org.apache.openjpa. persistence.EntityManagerImpl. createQuery(Entity= ManagerImpl. java:996) >> >>> at >> >>> org.apache.openjpa. persistence.EntityManagerImpl. createQuery(Entity= ManagerImpl. java:978) >> >>> at >> >>> org.apache.openjpa. persistence.EntityManagerImpl. createQuery(Entity= ManagerImpl. java:101) >> >>> at >> >>> com.intellij.jpa.remote.impl. RemoteEntityManagerImpl. createQuery( R= emoteEntityManagerImpl.java: 39) >> >>> >> >> >> > >> > >> > >=20 --Apple-Mail-F00C7653-BA67-44F5-9B72-00178F621BC3--