From dev-return-20604-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Wed Jun 13 15:25:45 2012 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 C43329F42 for ; Wed, 13 Jun 2012 15:25:44 +0000 (UTC) Received: (qmail 6730 invoked by uid 500); 13 Jun 2012 15:25:44 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 6653 invoked by uid 500); 13 Jun 2012 15:25:44 -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 6199 invoked by uid 99); 13 Jun 2012 15:25:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 15:25:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 698ED142863 for ; Wed, 13 Jun 2012 15:25:43 +0000 (UTC) Date: Wed, 13 Jun 2012 15:25:43 +0000 (UTC) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Message-ID: <637327252.12932.1339601143437.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (OPENJPA-428) Bad error message regarding "openjpa.Id" 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-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee updated OPENJPA-428: ------------------------------- Patch Info: Patch Available > Bad error message regarding "openjpa.Id" > ---------------------------------------- > > Key: OPENJPA-428 > URL: https://issues.apache.org/jira/browse/OPENJPA-428 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Vitor Rodrigues > Priority: Minor > Attachments: OPENJPA-428-test.jar, OPENJPA-428.21x.patch > > > Hi all, this bug is to report a confusing and misplaced error message. Problem is described below. Feel free to request more info from me. > When running my project with OpenJPA, I get the following error message: > 140 INFO [http-0.0.0.0-8080-Processor23] openjpa.Runtime - Starting OpenJPA 1.0.0 > 380 INFO [http-0.0.0.0-8080-Processor23] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary". > 20 WARN [http-0.0.0.0-8080-Processor25] openjpa.Runtime - The property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property called "openjpa.Id". > 100 INFO [http-0.0.0.0-8080-Processor25] openjpa.Runtime - Starting OpenJPA 1.0.0 > 300 INFO [http-0.0.0.0-8080-Processor25] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.DB2Dictionary". > As you can see, the two property names printed are the same, not different or similar. I retyped all my @Id annotations to make sure there was no special character in one of them coming from copy&paste. > Furthermore, I was able to identify that the error message was being printed only when I removed the @Id annotation from one of my classes (all the other classes still have @Id). > Here is a sample of my class without @Id annotation: > @Entity > @Table(name="TAX", schema="JPA_SC") > public class Tax { > > // Class variables > protected double taxamount; > > public Tax(){ > > } > > public Tax(double taxamount){ > this.taxamount = taxamount; > } > //plus getter and setter for taxamount > } > Regards, > Vitor Rodrigues -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira