jpa - Null Pointer Exception in executeObjectLevelReadQuery of EclipseLink -
i'm using eclipselink 2.5.2 in project , following exception:
java.lang.nullpointerexception @ org.eclipse.persistence.queries.readallquery.executeobjectlevelreadquery(readallquery.java:431) @ org.eclipse.persistence.queries.objectlevelreadquery.executedatabasequery(objectlevelreadquery.java:1168) @ org.eclipse.persistence.queries.databasequery.execute(databasequery.java:899) @ org.eclipse.persistence.queries.objectlevelreadquery.execute(objectlevelreadquery.java:1127) @ org.eclipse.persistence.queries.readallquery.execute(readallquery.java:403) @ org.eclipse.persistence.internal.sessions.abstractsession.internalexecutequery(abstractsession.java:3214) @ org.eclipse.persistence.internal.sessions.abstractsession.executequery(abstractsession.java:1804) @ org.eclipse.persistence.internal.sessions.abstractsession.executequery(abstractsession.java:1786) @ org.eclipse.persistence.mappings.collectionmapping.executebatchquery(collectionmapping.java:974) @ org.eclipse.persistence.mappings.foreignreferencemapping.extractresultfrombatchquery(foreignreferencemapping.java:643) @ org.eclipse.persistence.mappings.collectionmapping.extractresultfrombatchquery(collectionmapping.java:955) @ org.eclipse.persistence.internal.indirection.batchvalueholder.instantiate(batchvalueholder.java:58) @ org.eclipse.persistence.internal.indirection.querybasedvalueholder.instantiate(querybasedvalueholder.java:116) @ org.eclipse.persistence.internal.indirection.databasevalueholder.getvalue(databasevalueholder.java:89) @ org.eclipse.persistence.internal.indirection.unitofworkvalueholder.instantiateimpl(unitofworkvalueholder.java:173) @ org.eclipse.persistence.internal.indirection.unitofworkvalueholder.instantiate(unitofworkvalueholder.java:234) @ org.eclipse.persistence.internal.indirection.databasevalueholder.getvalue(databasevalueholder.java:89) @ org.eclipse.persistence.indirection.indirectset.builddelegate(indirectset.java:211) @ org.eclipse.persistence.indirection.indirectset.getdelegate(indirectset.java:375) @ org.eclipse.persistence.indirection.indirectset.contains(indirectset.java:349) @ com.services.categoryserviceimpl.categorycontainscaretype(categoryserviceimpl.java:305) @
this section relationship between caretype , category defined , exception happens category.getcaretypes()
invoked:
@manytomany(targetentity=caretypejpaimpl.class) @jointable( name="j_care_type_category", joincolumns={@joincolumn(name="category_id", referencedcolumnname="id")}, inversejoincolumns={@joincolumn(name="care_type_id", referencedcolumnname="id")}) @org.eclipse.persistence.annotations.batchfetch(value=org.eclipse.persistence.annotations.batchfetchtype.join,size=990) private set<caretype> caretypes = new hashset<caretype>();
i looked @ source code don't understand much
Comments
Post a Comment