javax.persistence.PersistenceException: [PersistenceUnit: junit] Unable to build Hibernate SessionFactory

openxava | e-sarge | 10 months ago
  1. 0

    Grandparent / Parent / Child - "Relationship Issues"

    openxava | 10 months ago | e-sarge
    javax.persistence.PersistenceException: [PersistenceUnit: junit] Unable to build Hibernate SessionFactory
  2. 0

    Problema para actualizar esquema (MySQL)

    openxava | 10 months ago | eldenico
    javax.persistence.PersistenceException: [PersistenceUnit: junit] Unable to build Hibernate SessionFactory
  3. 0

    Error con @ElementCollection y clase incrustada en aplicaciĆ³n de ejemplo Invoicing

    openxava | 3 months ago | josemavilad
    javax.persistence.PersistenceException: [PersistenceUnit: junit] Unable to build Hibernate SessionFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Repeated column in mapping for entity exception when trying to use same embeddable twise

    Stack Overflow | 2 years ago
    javax.persistence.PersistenceException: [PersistenceUnit: MyClassRegister] Unable to build Hibernate SessionFactory
  6. 0

    Hibernate mapping Exception : unable to find column with logical name

    Stack Overflow | 2 years ago
    javax.persistence.PersistenceException: [PersistenceUnit: MyClassRegister] Unable to build Hibernate SessionFactory
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.MappingException

    Could not determine type for: org.openxava.school.model.Level1, at table: Level3

    at org.hibernate.mapping.SimpleValue.getType()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:349)
    2. org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:353)
    3. org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:71)
    4. org.hibernate.mapping.Component.getType(Component.java:180)
    5. org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:353)
    6. org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:71)
    7. org.hibernate.mapping.Component.getType(Component.java:180)
    8. org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:322)
    9. org.hibernate.mapping.RootClass.validate(RootClass.java:271)
    10. org.hibernate.cfg.Configuration.validate(Configuration.java:1360)
    11. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1851)
    11 frames
  3. org.hibernate.jpa
    EntityManagerFactoryBuilderImpl$4.perform
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
    2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
    2 frames
  4. org.hibernate.boot
    ClassLoaderServiceImpl.withTccl
    1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)
    1 frame
  5. org.hibernate.jpa
    HibernatePersistenceProvider.createEntityManagerFactory
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)
    2. org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:75)
    2 frames
  6. Hibernate EJB
    HibernatePersistence.createEntityManagerFactory
    1. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)
    1 frame
  7. JavaEE 7
    Persistence.createEntityManagerFactory
    1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
    1 frame
  8. org.openxava.jpa
    XPersistence.getManager
    1. org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:197)
    2. org.openxava.jpa.XPersistence.createManager(XPersistence.java:112)
    3. org.openxava.jpa.XPersistence.openManager(XPersistence.java:128)
    4. org.openxava.jpa.XPersistence.getManager(XPersistence.java:98)
    4 frames
  9. org.openxava.tools
    SchemaTool.main
    1. org.openxava.tools.SchemaTool.execute(SchemaTool.java:75)
    2. org.openxava.tools.SchemaTool.updateSchema(SchemaTool.java:53)
    3. org.openxava.tools.SchemaTool.main(SchemaTool.java:42)
    3 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  11. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
    2. org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
    3. org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
    4. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
    5. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
    6. org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
    7. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    7 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  13. Ant
    SingleCheckExecutor.executeTargets
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:435)
    4. org.apache.tools.ant.Target.performTasks(Target.java:456)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    6. org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    6 frames
  14. org.eclipse.ant
    EclipseSingleCheckExecutor.executeTargets
    1. org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:34)
    1 frame
  15. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    2. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
    3. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    3 frames
  16. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  17. Ant
    DefaultExecutor.executeTargets
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:435)
    4. org.apache.tools.ant.Target.performTasks(Target.java:456)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    7 frames
  18. org.eclipse.ant
    EclipseDefaultExecutor.executeTargets
    1. org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
    1 frame
  19. Ant
    Project.executeTargets
    1. org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    1 frame
  20. org.eclipse.ant
    InternalAntRunner.run
    1. org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)
    2. org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:527)
    2 frames
  21. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  22. Ant Build Tool Core
    AntRunner.run
    1. org.eclipse.ant.core.AntRunner.run(AntRunner.java:371)
    1 frame
  23. org.eclipse.ant
    AntLaunchDelegate$1.run
    1. org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:269)
    1 frame
  24. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame