aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Ward (JIRA)" <>
Subject [jira] [Commented] (ARIES-705) proxy code is weaving JPA metamodel classes and can cause JPA errors
Date Thu, 07 Jul 2011 15:57:16 GMT


Timothy Ward commented on ARIES-705:

The particular issue here seems to be that OpenJPA doesn't like the generated seralVersionUID
which is marked synthetic. OpenJPA probably shouldn't be using synthetic fields for mapping,
but given this class isn't Serializable there's no good reason to add a serialization UID.

Preventing the addition of the serialVersionUID for non serializable classes is not hard.
This should fix this sort of issue. We will look at how to provide some level of filtering
for classes in future.

> proxy code is weaving JPA metamodel classes and can cause JPA errors
> --------------------------------------------------------------------
>                 Key: ARIES-705
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Proxy
>    Affects Versions: 0.4
>            Reporter: Kevan Miller
>            Priority: Critical
> 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, serialVersionUID, long] 
>        at org.apache.openjpa.persistence.meta.MetamodelImpl.getParameterziedType(

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.populate(

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.instantiate(

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.find(

>        at org.apache.openjpa.persistence.meta.MetamodelImpl.<init>(

>        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.getMetamodel(

>        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.getCriteriaBuilder(

>        at org.apache.openjpa.persistence.EntityManagerImpl.getCriteriaBuilder(

>        at org.apache.openjpa.persistence.EntityManagerImpl.getCriteriaBuilder(

>        at 
> See
> IMO, MetaModel classes (annotated with javax.persistence.metamodel.StaticMetamodel) should
be ignored by aries weaving...

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message