[seam-issues] [JBoss JIRA] Resolved: (JBSEAM-4552) AbstractMethodError thrown when attempting to invoke JPA 2 method on EntityManager

Michael Youngstrom (JIRA) jira-events at lists.jboss.org
Tue Feb 23 15:43:10 EST 2010


     [ https://jira.jboss.org/jira/browse/JBSEAM-4552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Youngstrom resolved JBSEAM-4552.
----------------------------------------

    Resolution: Done


fixed.

I modified HibernateSessionProxy and EntityManagerProxy and their Hibernate Search counterparts to both use JDK proxy instead.

I converted the existing HibernateSessionProxy and EntityManagerProxy to interfaces and used those interfaces as the proxy interface to help maintain compatibility with any code that may be depending upon Session and EntityManager to be of that type.

All build tests pass
All tests for my local Hibernate 3.5 JPA 2 application pass and allow method calls to JPA 2 methods
Hibernate Booking still works on AS 5.1

> AbstractMethodError thrown when attempting to invoke JPA 2 method on EntityManager
> ----------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4552
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4552
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 2.2.0.GA
>            Reporter: Michael Youngstrom
>            Assignee: Michael Youngstrom
>             Fix For: 2.2.1.CR1
>
>
> When I attempt to invoke a JPA 2 method on a Seam managed EntityManager I get an AbstractMethodError.  This is because org.jboss.seam.persistence.EntityManagerProxy doesn't implement any of the new JPA 2 methods.
> I believe if we're targeting 2.2.1 as something that will work in AS 6 we should fix this.
> I'll be committing a fix shortly unless someone stops me. :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list