geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5553) Fail to enchance entities on Geronimo
Date Thu, 02 Sep 2010 18:21:54 GMT


Donald Woods commented on GERONIMO-5553:

Reply to the 8/30 questions about enhancer, which dup my 8/27 comments....  When a list of
classes is handed to the javaagent, then it will only enhance those classes, but when no class
list is given it will discover all classes to enhance.  When the 1.6 JVM's Attach API is used
(new in OpenJPA 2.0) to dynamically load the OpenJPA enhancer agent, then the class list is
used AND any other classes to enhance are discovered unless <exclude-unlisted-classes>
is specified in the PU.

So, I'll opened OPENJPA-1780 to request that the javaagent behave the same as the dynamic

> Fail to enchance entities on Geronimo
> -------------------------------------
>                 Key: GERONIMO-5553
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence
>    Affects Versions: 3.0
>         Environment: OS:win xp
> Geronimo :3.0 20100824 build
>            Reporter: Lu Jiang
>            Assignee: Rick McGuire
>             Fix For: 3.0
>         Attachments: booknew.war
> I tried to deploy a simple jpa sample on geronimo.But when persist data into database.
> Following exception will occur.
> <openjpa-2.0.0-r422266:935683 nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
Attempt to cast instance "org.apache.sample.entities.Book@97781f" to PersistenceCapable failed.
 Ensure that it has been enhanced.
> FailedObject: org.apache.sample.entities.Book@97781f

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message