openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject Enhancer for junit under ant issues (dynamic loading)
Date Wed, 27 Jul 2011 21:33:14 GMT
    [junit] FINE:
JPA:org.apache.openjpa.enhance.InstrumentationFactory.getInstrumentation()
_inst:sun.instrument.InstrumentationImpl@d8d9850 _dynamicallyInstall:true
    [junit] Jul 27, 2011 5:21:15 PM
com.carefirst.fep.local.commons.model.claim.TestClaimModels setUp
    [junit] FINE: initialiazing openJPA javaagent...
sun.instrument.InstrumentationImpl@d8d9850

NOTE: The instrumentation loaded


    [junit] Jul 27, 2011 5:21:15 PM
com.carefirst.fep.local.commons.model.claim.TestClaimModels setUp
    [junit] FINE: factory created
    [junit] Jul 27, 2011 5:21:15 PM
com.carefirst.fep.local.commons.model.claim.TestClaimModels setUp
    [junit] FINE: em created
    [junit] Jul 27, 2011 5:21:15 PM
com.carefirst.fep.local.commons.model.claim.TestClaimModels testListAllObjects
    [junit] INFO: class
com.carefirst.fep.local.commons.model.claim.BillingProviderSecondaryId: before
    [junit] Jul 27, 2011 5:21:15 PM
com.carefirst.fep.local.commons.model.claim.TestClaimModels tearDown
    [junit] INFO: EXIT / DONE OK
    [junit] ------------- ---------------- ---------------
    [junit]
    [junit] Testcase: testXyzzy took 3.781 sec
    [junit] Testcase: testListAllObjects took 0.515 sec
    [junit]     Caused an ERROR
    [junit] The type "class
com.carefirst.fep.local.commons.model.claim.BillingProviderSecondaryId" has not
been enhanced.
    [junit] <openjpa-2.1.0-SNAPSHOT-r422266:1057903 fatal user error>
org.apache.openjpa.util.MetaDataException: The type "class
com.carefirst.fep.local.commons.model.claim.BillingProviderSecondaryId" has not
been enhanced.


Hmmm.... How can I check to see if the BillingProviderSecondaryId has been
loaded prior to the
org.apache.openjpa.enhance.InstrumentationFactory.getInstrumentation(new
org.apache.openjpa.lib.log.Log() {...});

    [junit]     at
org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1822)
    [junit]     at
org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1796)
    [junit]     at
org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java
:822)
    [junit]     at
org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:7
19)
    [junit]     at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:643)
    [junit]     at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepositor
y.java:411)
    [junit]     at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:3
84)
    [junit]     at
org.apache.openjpa.persistence.meta.MetamodelImpl.find(MetamodelImpl.java:224)
    [junit]     at
org.apache.openjpa.persistence.meta.MetamodelImpl.entity(MetamodelImpl.java:128)
    [junit]     at
org.apache.openjpa.persistence.criteria.CriteriaQueryImpl.from(CriteriaQueryImpl
.java:345)
    [junit]     at
com.carefirst.fep.local.commons.model.claim.TestClaimModels.testListAllObjects(T
estClaimModels.java:371)
    [junit]


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



Mime
View raw message