Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 40945 invoked from network); 8 Dec 2008 22:00:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2008 22:00:14 -0000 Received: (qmail 12000 invoked by uid 500); 8 Dec 2008 22:00:26 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 11978 invoked by uid 500); 8 Dec 2008 22:00:26 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 11967 invoked by uid 99); 8 Dec 2008 22:00:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 14:00:26 -0800 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 21:58:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3C61D234C33C for ; Mon, 8 Dec 2008 13:59:44 -0800 (PST) Message-ID: <73799222.1228773584245.JavaMail.jira@brutus> Date: Mon, 8 Dec 2008 13:59:44 -0800 (PST) From: "Dianne Richards (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-819) NPE when no metadata is defined for a persistent class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org NPE when no metadata is defined for a persistent class ------------------------------------------------------ Key: OPENJPA-819 URL: https://issues.apache.org/jira/browse/OPENJPA-819 Project: OpenJPA Issue Type: Bug Components: kernel Affects Versions: 2.0.0 Reporter: Dianne Richards Priority: Minor Fix For: 2.0.0 The persistent class was specified in the persistence.xml under , but persistence metadata was not specified for the class, either through annotation or the orm.xml. A NPE was thrown. We need a better message. This issue was reported in the user forum by post http://n2.nabble.com/NullPointerException-when-calling-createEntityManager-on--EntityManagerFactory-td1621881.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.