openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey (JIRA)" <>
Subject [jira] Created: (OPENJPA-167) Named queries and no listed entities: bad error message
Date Sat, 10 Mar 2007 11:16:09 GMT
Named queries and no listed entities: bad error message

                 Key: OPENJPA-167
             Project: OpenJPA
          Issue Type: Bug
          Components: diagnostics
    Affects Versions: 0.9.0, 0.9.6
            Reporter: Patrick Linskey

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(
	at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(
	at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(
	at org.apache.openjpa.persistence.xml.TestSimpleXmlEntity.testNamedQueryInXmlNamedEntity(

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.

View raw message