You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2009/07/04 05:48:47 UTC
[jira] Updated: (OPENJPA-167) Bad error message for named queries
and no listed entities
[ https://issues.apache.org/jira/browse/OPENJPA-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Craig Russell updated OPENJPA-167:
----------------------------------
Priority: Blocker
Summary: Bad error message for named queries and no listed entities (was: Named queries and no listed entities: bad error message)
> Bad error message for named queries and no listed entities
> ----------------------------------------------------------
>
> Key: OPENJPA-167
> URL: https://issues.apache.org/jira/browse/OPENJPA-167
> Project: OpenJPA
> Issue Type: Bug
> Components: diagnostics
> Affects Versions: 0.9.0, 0.9.6
> Reporter: Patrick Linskey
> Priority: Blocker
>
> When executing a named query without having declared any persistent types, I get the following:
> <4|true|0.0.0> org.apache.openjpa.persistence.ArgumentException: There is no query with the name "SimpleXml.findAll" defined for any of the known persistent classes: null.
> at org.apache.openjpa.meta.MetaDataRepository.getQueryMetaData(MetaDataRepository.java:1494)
> at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:767)
> at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:62)
> at org.apache.openjpa.persistence.xml.TestSimpleXmlEntity.testNamedQueryInXmlNamedEntity(TestSimpleXmlEntity.java:12)
> This message should read "No persistent classes were listed in <path-to-persistence.xml>, and auto-class-scanning is not configured, so no named queries can be found. You can configure auto-class-scanning by <auto-class-scan info here>" or something along those lines.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.