aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Hughes (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARIES-705) proxy code is weaving JPA metamodel classes and can cause JPA errors
Date Wed, 26 Oct 2011 16:29:32 GMT

     [ https://issues.apache.org/jira/browse/ARIES-705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeremy Hughes updated ARIES-705:
--------------------------------

    Fix Version/s:     (was: 0.4)
                   proxy.impl-0.4
                   proxy uber bundle 0.4
    
> proxy code is weaving JPA metamodel classes and can cause JPA errors
> --------------------------------------------------------------------
>
>                 Key: ARIES-705
>                 URL: https://issues.apache.org/jira/browse/ARIES-705
>             Project: Aries
>          Issue Type: Bug
>          Components: Proxy
>    Affects Versions: 0.4
>            Reporter: Kevan Miller
>            Priority: Critical
>             Fix For: proxy uber bundle 0.4, proxy.impl-0.4
>
>
> Aries proxy code is weaving JPA metamodel classes. This results in the following error
for current OpenJPA (2.1.x):
> java.lang.IllegalStateException: localized message key: meta-field-not-param; substitutions:
[class com.foo.Baz_, serialVersionUID, long] 
>        at org.apache.openjpa.persistence.meta.MetamodelImpl.getParameterziedType(MetamodelImpl.java:341)

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.populate(MetamodelImpl.java:310)

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.instantiate(MetamodelImpl.java:257)

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.find(MetamodelImpl.java:226)

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.<init>(MetamodelImpl.java:91)

>        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.getMetamodel(EntityManagerFactoryImpl.java:346)

>        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.getCriteriaBuilder(EntityManagerFactoryImpl.java:333)

>        at org.apache.openjpa.persistence.EntityManagerImpl.getCriteriaBuilder(EntityManagerImpl.java:1638)

>        at org.apache.openjpa.persistence.EntityManagerImpl.getCriteriaBuilder(EntityManagerImpl.java:101)

>        at com.foo.Test.query(Test.java:xxx) 
> See https://issues.apache.org/jira/browse/OPENJPA-2024
> IMO, MetaModel classes (annotated with javax.persistence.metamodel.StaticMetamodel) should
be ignored by aries weaving...

--
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

        

Mime
View raw message