Menu

Persistence exception trying to run the alpha

Help
2008-06-13
2013-04-26
  • Logan Allred

    Logan Allred - 2008-06-13

    Thanks John, for making it work with Java 5, now I can run it on my PowerPC Mac.

    I downloaded the alpha and tried to run it, but I get the following stack trace after the splash screen:

    RedBugzG5:~/Desktop/GedLynk-0.93alpha1 logan$ java -jar GedLynk-0.93alpha1.jar
    java.lang.ExceptionInInitializerError
            at edu.neumont.gedlynk.control.Controller.loadFile(Controller.java:89)
            at edu.neumont.gedlynk.control.Controller.<init>(Controller.java:110)
            at edu.neumont.gedlynk.control.Controller.main(Controller.java:135)
    Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named sync: Provider named oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider threw unexpected exception at create EntityManagerFactory:
    oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Local Exception Stack:
    Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@33056f
    Internal Exception: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [sync] failed.
    Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The type [interface edu.neumont.gedcom.model.Record] for the attribute [parentRecord] on the entity class [class edu.neumont.gedcom.model.jpa.JPAAssertion] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
            at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
            at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
            at edu.neumont.gedlynk.datacontrol.entityManager.<clinit>(entityManager.java:35)
            at edu.neumont.gedlynk.control.Controller.loadFile(Controller.java:89)
            at edu.neumont.gedlynk.control.Controller.<init>(Controller.java:110)
            at edu.neumont.gedlynk.control.Controller.main(Controller.java:135)
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [sync] failed.
    Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The type [interface edu.neumont.gedcom.model.Record] for the attribute [parentRecord] on the entity class [class edu.neumont.gedcom.model.jpa.JPAAssertion] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:643)
            at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:171)
            at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:239)
            at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
            at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
            ... 6 more
    Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: predeploy for PersistenceUnit [sync] failed.
    Internal Exception: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The type [interface edu.neumont.gedcom.model.Record] for the attribute [parentRecord] on the entity class [class edu.neumont.gedcom.model.jpa.JPAAssertion] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
            at oracle.toplink.essentials.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:228)
            ... 11 more
    Caused by: Exception [TOPLINK-7155] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The type [interface edu.neumont.gedcom.model.Record] for the attribute [parentRecord] on the entity class [class edu.neumont.gedcom.model.jpa.JPAAssertion] is not a valid type for a serialized mapping. The attribute type must implement the Serializable interface.
            at oracle.toplink.essentials.exceptions.ValidationException.invalidTypeForSerializedAttribute(ValidationException.java:963)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwInvalidTypeForSerializedAttribute(MetadataValidator.java:254)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processSerialized(DirectAccessor.java:302)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processJPAConverters(DirectAccessor.java:249)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.DirectAccessor.processMappingConverter(DirectAccessor.java:287)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.processDirectToFieldMapping(BasicAccessor.java:188)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.BasicAccessor.process(BasicAccessor.java:160)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessor(ClassAccessor.java:528)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessorMethods(ClassAccessor.java:553)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessors(ClassAccessor.java:565)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:498)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.MetadataAccessor.processAccessor(MetadataAccessor.java:514)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processTableAndInheritance(ClassAccessor.java:1388)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:484)
            at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:240)
            at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
            at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:607)
            ... 10 more

    The following providers:
    oracle.toplink.essentials.PersistenceProvider
    Returned null to createEntityManagerFactory.

            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
            at edu.neumont.gedlynk.datacontrol.entityManager.<clinit>(entityManager.java:35)
            ... 3 more

    This is on a G5 Macintosh (OS X 10.4.11) with java version:
    java version "1.5.0_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)

    I'm not familiar enough with JPA or TopLink to know the fix.

    thanks,
    Logan

     
    • John Finlay

      John Finlay - 2008-06-17

      I have updated the corresponding bug tracker.

      This problem should be fixed in the latest SVN code.

      A new alpha 2 release which includes this fix will be available in a day or two.

      --John

       
    • John Finlay

      John Finlay - 2008-06-19

      The alpha 2 release is now available.

      --JOhn

       
    • The Real Mc Coy

      The Real Mc Coy - 2009-02-21

      I have the same kind of error with alpha 3 on WinXP :
      java.lang.ExceptionInInitializerError
              at edu.neumont.gedlynk.control.Controller.loadFile(Controller.java:90)
              at edu.neumont.gedlynk.control.Controller.<init>(Controller.java:111)
              at edu.neumont.gedlynk.control.Controller.main(Controller.java:151)
      Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named sync: 
      The following providers:
      oracle.toplink.essentials.PersistenceProvider
      oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
      Returned null to createEntityManagerFactory.

              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
              at edu.neumont.gedlynk.datacontrol.entityManager.<clinit>(entityManager.java:35)
              ... 3 more

       
    • The Real Mc Coy

      The Real Mc Coy - 2009-02-21

      forgot to mention : Java 6u12 (current version so far)

       

Log in to post a comment.