openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Logemann <marc.logem...@gmail.com>
Subject Re: trying to run JPA Console inside Intellij IDEA results in this....
Date Wed, 21 Sep 2016 19:57:49 GMT
Hi,

yeah. Every entity extends AbstractEntity which is a MappedSuperclass.

2016-09-21 20:15 GMT+02:00 Mark Struberg <struberg@yahoo.de.invalid>:

> Hi Marc!
>
> Is the entity Distribution part of a supertype/subtype constellation aka
> inheritance?
> Does this class 'extends' something? And where do these classes reside?
>
>
> LieGrue,
> strub
>
>
>
>
>
> > On Wednesday, 21 September 2016, 18:27, Marc Logemann <
> marc.logemann@gmail.com> wrote:
> > > can somebody hint me where i need to look out for? Quite weird
> message....
> >
> >
> > [2016-09-21 18:24:13] <openjpa-2.4.0-r422266:1674604 fatal user error>
> > org.apache.openjpa.persistence.ArgumentException: Errors encountered
> while
> > resolving metadata.  See nested exceptions for details.
> > [2016-09-21 18:24:13] java.lang.RuntimeException:
> > <openjpa-2.4.0-r422266:1674604 fatal general error>
> > org.apache.openjpa.persistence.PersistenceException: Unexpected
> attribute
> > type "int" for persistence-capable class
> > "de.netversys.domain.Distribution"
> > is detected. If the entity is packaged in a jar file, this may be caused
> by
> > one or more inherited class of the entity not being packaged in the same
> > jar file. Please check all inherited class(es) are packaged in the same
> jar
> > file.
> > at
> > org.apache.openjpa.meta.ProxySetupStateManager.providedIntField(
> ProxySetupStateManager.java:230)
> > at de.netversys.domain.Distribution.pcProvideField(Distribution.java)
> > at
> > org.apache.openjpa.meta.ProxySetupStateManager.setProxyData(
> ProxySetupStateManager.java:62)
> > at
> > org.apache.openjpa.meta.ClassMetaData.resolveMeta(
> ClassMetaData.java:1927)
> > at org.apache.openjpa.meta.ClassMetaData.resolve(
> ClassMetaData.java:1808)
> > at
> > org.apache.openjpa.meta.MetaDataRepository.processBuffer(
> MetaDataRepository.java:829)
> > at
> > org.apache.openjpa.meta.MetaDataRepository.resolveMeta(
> MetaDataRepository.java:726)
> > at
> > org.apache.openjpa.meta.MetaDataRepository.resolve(
> MetaDataRepository.java:650)
> > at
> > org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(
> MetaDataRepository.java:418)
> > at
> > org.apache.openjpa.meta.MetaDataRepository.getMetaData(
> MetaDataRepository.java:389)
> > at
> > org.apache.openjpa.meta.MetaDataRepository.getMetaData(
> MetaDataRepository.java:472)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(
> JPQLExpressionBuilder.java:175)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.
> resolveClassMetaData(JPQLExpressionBuilder.java:151)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.
> getCandidateMetaData(JPQLExpressionBuilder.java:241)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.
> getCandidateMetaData(JPQLExpressionBuilder.java:211)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(
> JPQLExpressionBuilder.java:204)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$200(
> JPQLExpressionBuilder.java:79)
> > at
> > org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$
> ParsedJPQL.populate(JPQLExpressionBuilder.java:2426)
> > at org.apache.openjpa.kernel.jpql.JPQLParser.populate(
> JPQLParser.java:60)
> > at
> > org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(
> ExpressionStoreQuery.java:162)
> > at org.apache.openjpa.kernel.QueryImpl.newCompilation(
> QueryImpl.java:672)
> > at
> > org.apache.openjpa.kernel.QueryImpl.compilationFromCache(
> QueryImpl.java:653)
> > at
> > org.apache.openjpa.kernel.QueryImpl.compileForCompilation(
> QueryImpl.java:619)
> > at
> > org.apache.openjpa.kernel.QueryImpl.compileForExecutor(
> QueryImpl.java:681)
> > at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:588)
> > at
> > org.apache.openjpa.persistence.EntityManagerImpl.
> createQuery(EntityManagerImpl.java:996)
> > at
> > org.apache.openjpa.persistence.EntityManagerImpl.
> createQuery(EntityManagerImpl.java:978)
> > at
> > org.apache.openjpa.persistence.EntityManagerImpl.
> createQuery(EntityManagerImpl.java:101)
> > at
> > com.intellij.jpa.remote.impl.RemoteEntityManagerImpl.createQuery(
> RemoteEntityManagerImpl.java:39)
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message