B
B
bychok3002018-06-18 12:39:11
Java
bychok300, 2018-06-18 12:39:11

What links are missing org.apache.openjpa.persistence.ArgumentException?

Caused by: <openjpa-2.2.3-SNAPSHOT-r422266:1677238 fatal user error> org.apache.openjpa.persistence.ArgumentException: В "main.java.jpa.OepRole.oepUsers" объявлено, что отображается на "OepRole", однако не является полем связанного типа.

                at org.apache.openjpa.meta.FieldMetaData.getMappedByMetaData(FieldMetaData.java:867)

                at org.apache.openjpa.jdbc.meta.FieldMapping.getMappedByMapping(FieldMapping.java:447)

                at org.apache.openjpa.jdbc.meta.MappingRepository.useInverseKeyMapping(MappingRepository.java:1047)

                at org.apache.openjpa.jdbc.meta.MappingRepository.defaultTypeStrategy(MappingRepository.java:960)

                at org.apache.openjpa.jdbc.meta.MappingRepository.defaultStrategy(MappingRepository.java:887)

                at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:66)

                at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:498)

                at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:463)

                at org.apache.openjpa.jdbc.meta.ClassMapping.resolveMapping(ClassMapping.java:854)

                at org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1813)

                at org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:828)

                at org.apache.openjpa.meta.MetaDataRepository.resolveMapping(MetaDataRepository.java:783)

                at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:663)

                at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:417)

                at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:388)

                at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:471)

                at org.apache.openjpa.kernel.QueryImpl.classForName(QueryImpl.java:1641)

                at org.apache.openjpa.kernel.ExpressionStoreQuery$1.classForName(ExpressionStoreQuery.java:113)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:185)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:152)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:242)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:212)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:205)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$200(JPQLExpressionBuilder.java:80)

                at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:2428)

                at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:61)

                at org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:162)

                at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:673)

                at org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:654)

                at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:620)

                at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:682)

                at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:589)

                at org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:997)

                at com.ibm.ws.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:160)

                at com.ibm.ws.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:139)

                at com.ibm.ws.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:50)

                at ru.soa.service.itdi.smallsystem_generic_webservice_connector._1_0.GenericAccountManagementSoapBindingImpl.getAccountList(GenericAccountManagementSoapBindingImpl.java:684)

                ... 35 more


what could be the problem?
complaining line
Query query = entityManager.createQuery("selct r from OepUser r where r.userOnOff = 0")

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question