openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Prud'hommeaux (JIRA)" <>
Subject [jira] Commented: (OPENJPA-41) transforming classes doesn't work
Date Fri, 29 Sep 2006 01:13:50 GMT
    [ ] 
Marc Prud'hommeaux commented on OPENJPA-41:

Even after fixing the parser to handle reentrancy, the next problem is a similar ClassCircularityError
that was reported in OPENJPA-40. The fix may have to be that we batch enhancement of classes
better somehow, rather than recursively enhancing as we load and resolve superclasses/relations.

Caused by: java.lang.ClassCircularityError: org/springframework/samples/petclinic/Specialty
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(
        at java.lang.Class.getDeclaredMethods(
        at org.apache.openjpa.meta.AbstractMetaDataDefaults.populateFromReflection(
        at org.apache.openjpa.meta.AbstractMetaDataDefaults.populate(
        at org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate(
        at org.apache.openjpa.meta.MetaDataRepository.addMetaData(
        at org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.startClass(
        at org.apache.openjpa.lib.meta.CFMetaDataParser.startElement(
        at org.apache.openjpa.lib.meta.XMLMetaDataParser.startElement(
        at javax.xml.parsers.SAXParser.parse(
        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(
        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(
        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(
        at org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(
        at org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(
        at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(
        at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(
        at org.apache.openjpa.meta.MetaDataRepository.getMetaData(
        at org.apache.openjpa.enhance.PCEnhancer.<init>(
        at org.apache.openjpa.enhance.PCClassFileTransformer.transform(
        ... 57 more

> transforming classes doesn't work
> ---------------------------------
>                 Key: OPENJPA-41
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>         Environment: WinXP, Tomcat 5.5.17, Spring 2.0-RC4
>            Reporter: Costin Leau
>         Assigned To: Marc Prud'hommeaux
>         Attachments:, spring-tomcat-weaver.jar, stacktrace.txt
> I've tried several versions of OpenJPA including the most recent one(svn 4409856) to
run Spring's Petclinic with class level LoadTimeWeaver on OpenJPA.
> I have attached the stacktrace that I get. The same example works fine with Toplink.
> I have attached petclinic w/o some of the libs to gain space; basically add the OpenJPA
libs and deploy the war into Tomcat. Note that you'll also have to place spring-tomcat-weaver.jar
under Tomcat's server/lib (this should be enough - if you have problems let me know or take
a look at the Spring reference documentation).
> When the webapp starts, the exception pops up.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message