Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DAC944835 for ; Mon, 11 Jul 2011 15:28:23 +0000 (UTC) Received: (qmail 36021 invoked by uid 500); 11 Jul 2011 15:28:23 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 35655 invoked by uid 500); 11 Jul 2011 15:28:22 -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 35635 invoked by uid 99); 11 Jul 2011 15:28:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 15:28:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 15:28:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 452C745AA6 for ; Mon, 11 Jul 2011 15:28:01 +0000 (UTC) Date: Mon, 11 Jul 2011 15:28:01 +0000 (UTC) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Message-ID: <509327499.3265.1310398081280.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <162632199.4517.1307563919006.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (OPENJPA-2010) Duplicate meta data warning logged due to parsing the same location twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-2010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick reopened OPENJPA-2010: ----------------------------------- > Duplicate meta data warning logged due to parsing the same location twice > ------------------------------------------------------------------------- > > Key: OPENJPA-2010 > URL: https://issues.apache.org/jira/browse/OPENJPA-2010 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 2.0.1, 2.1.0 > Reporter: Michael Dick > Assignee: Michael Dick > Fix For: 2.0.2, 2.1.2, 2.2.0 > > > I've only seen this when entities are defined in an XML mapping file, and then only in some difficult to replicate classloader environments. > The same XML mapping file may be parsed more than one time, resulting in a misleading warning message about duplicate metadata. The metadata is in fact identical, and does not indicate a problem. > To detect this condition we can store the source file and line number where the meta data was defined, and only issue the warning if the metadata is defined in a different location. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira