javax.persistence.PersistenceException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Cant deploy EAR-Project on Wildfly
    via Stack Overflow by Andy
    ,
  • Hibernate HSQLDB - DuplicateMappingException
    via Stack Overflow by mattsky
    ,
    • javax.persistence.PersistenceException: [PersistenceUnit: PrototypeShitstormRecEJB] Unable to build Hibernate SessionFactory at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final] at java.security.AccessController.doPrivileged(Native Method)[rt.jar:1.8.0_73] at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[rt.jar:1.8.0_73] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[rt.jar:1.8.0_73] at java.lang.Thread.run(Thread.java:745)[rt.jar:1.8.0_73] at org.jboss.threads.JBossThread.run(JBossThread.java:122) Caused by: javax.persistence.PersistenceException: [PersistenceUnit: PrototypeShitstormRecEJB] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1239)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:120)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:855)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:845)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:398)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:844)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final] at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)[jipijapa-hibernate4-3-1.0.1.Final.jar:] at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)[wildfly-jpa-8.2.1.Final.jar:8.2.1.Final] ... 8 more Caused by: org.hibernate.DuplicateMappingException: Duplicate query mapping GETALL at org.hibernate.cfg.Configuration$MappingsImpl.checkQueryName(Configuration.java:2996)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.Configuration$MappingsImpl.applyQuery(Configuration.java:2990)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.Configuration$MappingsImpl.addQuery(Configuration.java:2985)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.annotations.QueryBinder.bindQuery(QueryBinder.java:90)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:364)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:618)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)[hibernate-core-4.3.7.Final.jar:4.3.7.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:852)[hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final] ... 13 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    KawadaKawada
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,