Re: jpa provider

From: Gilberto C Andrade (gilbertoc..ecad.to.gov.br)
Date: Mon Dec 10 2007 - 12:22:52 EST

  • Next message: Andrus Adamchik: "Re: More than one ordering for in memory sort"

    > So is it the same error as before or something else?
    >
    > Andrus

    Yes, it is the same one!

    >>> -------------------------------------------------------
    >>> T E S T S
    >>> -------------------------------------------------------
    >>> Running com.gilbertoca.gfi.service.PessoaServiceTest
    >>> Dec 10, 2007 11:21:43 AM org.apache.cayenne.jpa.Provider
    >>> createEntityManagerFactory
    >>> INFO: Extra PersistenceUnitInfo properties: null
    >>> Dec 10, 2007 11:21:43 AM
    >>> org.apache.cayenne.jpa.instrument.InstrumentingUnit addTransformer
    >>> INFO: *** Adding transformer:
    >>> org.apache.cayenne.jpa.instrument.UnitClassTransforme..2a55aa
    >>> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.467
    >>> sec <<< FAILURE!
    >>> Running com.gilbertoca.gfi.AppTest
    >>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024
    >>> sec>
    -------------------------------------------------------------------------------

    > Test set: com.gilbertoca.gfi.service.PessoaServiceTest
    > -------------------------------------------------------------------------------
    > Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.284 sec <<< FAILURE!
    > hello(com.gilbertoca.gfi.service.PessoaServiceTest) Time elapsed: 1.952 sec <<< ERROR!
    > java.lang.IllegalStateException: Attempt to add a transformer failed - instrumentation is not initialized.
    > at org.apache.cayenne.jpa.instrument.InstrumentingUnit.addTransformer(InstrumentingUnit.java:69)
    > at org.apache.cayenne.jpa.Provider.createContainerEntityManagerFactory(Provider.java:243)
    > at org.apache.cayenne.jpa.Provider.createEntityManagerFactory(Provider.java:194)
    > at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
    > at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
    > at com.gilbertoca.gfi.service.PessoaServiceTest.setUp(PessoaServiceTest.java:32)
    > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:585)



    This archive was generated by hypermail 2.0.0 : Mon Dec 10 2007 - 12:22:34 EST