Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 66424 invoked from network); 10 Mar 2007 11:16:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2007 11:16:31 -0000 Received: (qmail 39168 invoked by uid 500); 10 Mar 2007 11:16:39 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 39095 invoked by uid 500); 10 Mar 2007 11:16:38 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 39086 invoked by uid 99); 10 Mar 2007 11:16:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2007 03:16:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2007 03:16:29 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 596C1714047 for ; Sat, 10 Mar 2007 03:16:09 -0800 (PST) Message-ID: <24200762.1173525369308.JavaMail.jira@brutus> Date: Sat, 10 Mar 2007 03:16:09 -0800 (PST) From: "Patrick Linskey (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Created: (OPENJPA-167) Named queries and no listed entities: bad error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Named queries and no listed entities: bad error message ------------------------------------------------------- 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 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 , and auto-class-scanning is not configured, so no named queries can be found. You can configure auto-class-scanning by " 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.