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

Stack Overflow | Andy | 4 months ago
  1. 0

    Cant deploy EAR-Project on Wildfly

    Stack Overflow | 4 months ago | Andy
    javax.persistence.PersistenceException: [PersistenceUnit: PrototypeShitstormRecEJB] Unable to build Hibernate SessionFactory
  2. 0

    Data Transfer Object (dto): Hibernate duplicate table mapping

    Stack Overflow | 2 years ago
    java.lang.IllegalStateException: Failed to load ApplicationContext
  3. 0

    Hibernate HSQLDB - DuplicateMappingException

    Stack Overflow | 10 months ago | mattsky
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.beans.factory.BeanCreationException - Error creating bean with name 'entityManagerFactory'

    Stack Overflow | 9 months ago | nbro
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
  6. 0

    Table [mail_box] contains physical column name [messageid] represented by different logical column names: [messageID], [MessageID]

    Stack Overflow | 9 months ago | nbro
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory

  1. Kawada 4 times, last 7 months ago
4 unregistered visitors
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.DuplicateMappingException

    Duplicate query mapping GETALL

    at org.hibernate.cfg.Configuration$MappingsImpl.checkQueryName()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Configuration$MappingsImpl.checkQueryName(Configuration.java:2996)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    2. org.hibernate.cfg.Configuration$MappingsImpl.applyQuery(Configuration.java:2990)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    3. org.hibernate.cfg.Configuration$MappingsImpl.addQuery(Configuration.java:2985)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    4. org.hibernate.cfg.annotations.QueryBinder.bindQuery(QueryBinder.java:90)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    5. org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:364)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    6. org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:618)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    7. org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    8. org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    9. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    10. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    10 frames
  3. org.hibernate.jpa
    EntityManagerFactoryBuilderImpl$4.perform
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:852)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
    2. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:845)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
    2 frames
  4. org.hibernate.boot
    ClassLoaderServiceImpl.withTccl
    1. org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:398)[hibernate-core-4.3.7.Final.jar:4.3.7.Final]
    1 frame
  5. org.hibernate.jpa
    EntityManagerFactoryBuilderImpl.build
    1. org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:844)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
    1 frame
  6. WildFly Hibernate
    TwoPhaseBootstrapImpl.build
    1. org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)[jipijapa-hibernate4-3-1.0.1.Final.jar:]
    1 frame
  7. JPA
    PersistenceUnitServiceImpl$1$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final]
    2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final]
    2 frames
  8. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)[rt.jar:1.8.0_73]
    1 frame
  9. WildFly Security Manager
    WildFlySecurityManager.doChecked
    1. org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
    1 frame
  10. JPA
    PersistenceUnitServiceImpl$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final]
    1 frame
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[rt.jar:1.8.0_73]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[rt.jar:1.8.0_73]
    3. java.lang.Thread.run(Thread.java:745)[rt.jar:1.8.0_73]
    3 frames
  12. JBoss Threads
    JBossThread.run
    1. org.jboss.threads.JBossThread.run(JBossThread.java:122)
    1 frame