Details
Description
Hi ,
Here is the bug details..
Query q = em2.createQuery("select file from TBLFile file");
q.getResultList(); // Exception is throwing here
Exception Details are
180 helloFPA TRACE [main] openjpa.MetaData - Using metadata factory "org.apache.openjpa.persistence.jdbc.PersistenceMappingFactory@949f69".
260 helloFPA INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.OracleDictionary".
440 helloFPA TRACE [main] openjpa.MetaData - Scanning resource "META-INF/orm.xml" for persistent types.
440 helloFPA TRACE [main] openjpa.MetaData - parsePersistentTypeNames() found [com.fpa.persistance.TBLFile].
440 helloFPA TRACE [main] openjpa.MetaData - Found 1 classes with metadata in 10 milliseconds.
org.apache.openjpa.persistence.QueryImpl@3dc0bbException in thread "main" <0.9.8-incubating-SNAPSHOT-incubating-SNAPSHOT fatal user error> org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias "TBLFile". This could mean that the OpenJPA enhancer or load-time weaver was not run on the type whose alias is "TBLFile". Registered alias mappings: "
"
at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:348)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:167)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:145)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:214)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:184)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:177)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$500(JPQLExpressionBuilder.java:64)
at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:1671)
at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:55)
at org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:148)
at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:649)
at org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:630)
at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:596)
at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:658)
at org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java:1483)
at org.apache.openjpa.kernel.DelegatingQuery.getOperation(DelegatingQuery.java:123)
at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:219)
at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:269)
at com.fpa.persistance.TBLFileTest.main(TBLFileTest.java:52)