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 9E73276DC for ; Mon, 24 Oct 2011 18:16:52 +0000 (UTC) Received: (qmail 75318 invoked by uid 500); 24 Oct 2011 18:16:52 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 75286 invoked by uid 500); 24 Oct 2011 18:16:52 -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 75278 invoked by uid 99); 24 Oct 2011 18:16:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 18:16:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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, 24 Oct 2011 18:16:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 04840319849 for ; Mon, 24 Oct 2011 18:14:32 +0000 (UTC) Date: Mon, 24 Oct 2011 18:14:32 +0000 (UTC) From: "Albert Lee (Resolved) (JIRA)" To: dev@openjpa.apache.org Message-ID: <329367493.9723.1319480072020.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <942708799.11307.1318542852256.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (OPENJPA-2060) AnnotationProcess failed to generate metadata for List[] attribute in entity 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-2060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee resolved OPENJPA-2060. --------------------------------- Resolution: Fixed Fix Version/s: 2.2.0 > AnnotationProcess failed to generate metadata for List[] attribute in entity > ------------------------------------------------------------------------------------ > > Key: OPENJPA-2060 > URL: https://issues.apache.org/jira/browse/OPENJPA-2060 > Project: OpenJPA > Issue Type: Bug > Components: criteria > Affects Versions: 2.2.0 > Reporter: Albert Lee > Assignee: Albert Lee > Fix For: 2.2.0 > > > When an entity with List[] attribute feeds to Annotation processor, it failed with the following exception: > > javac -Aopenjpa.metamodel=true -proc:only -Aopenjpa.log=TRACE -cp openjpa.trunk\openjpa-all\target\openjpa-all-2.2.0-SNAPSHOT.jar EntityLob.java > Note: Starting OpenJPA Annotation Processor for Metamodel Generation > Note: Generating canonical metamodel source code "file:/c:/temp/ap/suite/r80/base/common/datamodel/entities/EntityLob_.java" > error: Error while generating metamodel for "suite.r80.base.common.datamodel.entities.EntityLob". See exception stack trace for details. > java.lang.IllegalArgumentException: localized message key: src-invalid-type; substitutions: [java.util.List] > at org.apache.openjpa.persistence.util.SourceCode$ClassName.(SourceCode.java:782) > at org.apache.openjpa.persistence.util.SourceCode.getOrCreateImport(SourceCode.java:135) > at org.apache.openjpa.persistence.util.SourceCode$Element.addParameter(SourceCode.java:301) > at org.apache.openjpa.persistence.meta.AnnotationProcessor6.process(AnnotationProcessor6.java:258) > at org.apache.openjpa.persistence.meta.AnnotationProcessor6.process(AnnotationProcessor6.java:210) > at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:637) > at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:566) > at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:711) > at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:993) > at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:739) > at com.sun.tools.javac.main.Main.compile(Main.java:365) > at com.sun.tools.javac.main.Main.compile(Main.java:291) > at com.sun.tools.javac.main.Main.compile(Main.java:282) > at com.sun.tools.javac.Main.compile(Main.java:81) > at com.sun.tools.javac.Main.main(Main.java:66) > warning: Unclosed files for the types '[suite.r80.base.common.datamodel.entities.EntityLob_]'; these types will not undergo annotation proce > ssing > 1 error > 1 warning > Sample entity used to recreate the problem: > @Entity > public class EntityLob { > .... > private List[] entityLob_lob08; > public EntityLob() { > } > public List[] getEntityLob_lob08() { > return entityLob_lob08; > } > public void setEntityLob_lob08(List[] l) { > this.entityLob_lob08 = l; > } > } -- 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