geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5553) Fail to enchance entities on Geronimo
Date Mon, 30 Aug 2010 11:47:54 GMT


Rick McGuire commented on GERONIMO-5553:

I did a little experimentation on this, and I believe this is probably working the way it
was intended.  Debugging the geronimo transformer wrapper, I'm seeing the transformer getting
called on the Book class and all other classes of this application, so it looks like the javaagent
hook is working correctly. 

I deployed this application on 2.2 to see what would happen, and it gave a similar (but different)
error, which leads me to believe this really can be closed: 

<openjpa-1.2.1-r752877:753278 fatal user error> org.apache.openjpa.persistence.A
rgumentException: No metadata was found for type "class org.apache.sample.entiti
es.Book". The class does not appear in the list of persistent types: [org.apache
        at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataReposi
        at org.apache.openjpa.kernel.BrokerImpl.persist(
        at org.apache.openjpa.kernel.BrokerImpl.persist(
        at org.apache.openjpa.kernel.DelegatingBroker.persist(DelegatingBroker.j
        at org.apache.openjpa.persistence.EntityManagerImpl.persist(EntityManage
        at org.apache.sample.bean.Facade.createBook(
        at org.apache.sample.action.AddBook.doPost(
        at org.apache.sample.action.AddBook.doGet(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(

> 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