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

openxava | eldenico | 10 months ago
  1. 0

    Problema para actualizar esquema (MySQL)

    openxava | 10 months ago | eldenico
    javax.persistence.PersistenceException: [PersistenceUnit: junit] Unable to build Hibernate SessionFactory
  2. 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
  3. 0

    Grandparent / Parent / Child - "Relationship Issues"

    openxava | 10 months ago | e-sarge
    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

    property mapping has wrong number of columns: org.openxava.facturacion.modelo.Detail.parent type: org.openxava.facturacion.modelo.CommercialDocument

    at org.hibernate.mapping.PersistentClass.validate()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:497)
    2. org.hibernate.mapping.RootClass.validate(RootClass.java:270)
    3. org.hibernate.cfg.Configuration.validate(Configuration.java:1360)
    4. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1851)
    4 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(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    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.GeneratedMethodAccessor5.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    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.launching.remote.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(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    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.launching.remote.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.main
    1. org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:453)
    2. org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:140)
    2 frames