openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (JIRA)" <j...@apache.org>
Subject [jira] Closed: (OPENJPA-234) Exception 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
Date Tue, 31 Jul 2007 19:06:52 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kevin Sutter closed OPENJPA-234.
--------------------------------


According to notes received, this issue has been resolved and can be removed from the books.

> Exception 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
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-234
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-234
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 0.9.8
>         Environment: Open JPA bug when trying to run Standalone Progam
>            Reporter: chowdareddy somu
>            Assignee: Kevin Sutter
>             Fix For: 0.9.8
>
>
> 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: "{TBLFile=null}"
> 	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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message