javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceExcep tion(EntityManagerFactoryBuilderImpl.java:1249)

Stack Overflow | Ben | 5 months ago
  1. 0

    Hibernate JPA ManyToOne foreign key mapping with composite key via IdClass does not find columns

    Stack Overflow | 5 months ago | Ben
    javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceExcep tion(EntityManagerFactoryBuilderImpl.java:1249)
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to map to attributes from embedded class to a single database column with JPA?

    Stack Overflow | 1 year ago | François Dupire
    javax.persistence.PersistenceException: [PersistenceUnit: belgium-fiscal-model] Unable to build Hibernate SessionFactory
  6. 0

    Introdução a Java Server Faces - Curso Online de JSF (Java Server Faces) - Aula 1

    com.br | 1 year ago
    javax.persistence.PersistenceException: [PersistenceUnit: ProjetosJSF] 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

    Unable to find column with logical name: mandt in org.hibernate.mapping.Table(EnumType) and its related supertables and secondary tables

    at org.hibernate.cfg.Ejb3JoinColumn.checkReferencedColumnsType()
  2. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Ejb3JoinColumn.checkReferencedColumnsType(Ejb3JoinColumn.java:582)
    2. org.hibernate.cfg.BinderHelper.createSyntheticPropertyReference(BinderHelper.java:258)
    3. org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:116)
    4. org.hibernate.cfg.Configuration.processEndOfQueue(Configuration.java:1598)
    5. org.hibernate.cfg.Configuration.processFkSecondPassInOrder(Configuration.java:1521)
    6. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1422)
    7. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)
    7 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)
    2. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
    2 frames
  8. platform.data
    Mandt.lambda$0
    1. platform.data.DatabaseSession.<init>(DatabaseSession.java:94)
    2. platform.data.MandtDaoImpl.loadAllMandt(MandtDaoImpl.java:16)
    3. platform.data.Mandt.getMandt(Mandt.java:18)
    4. platform.data.Mandt.lambda$0(Mandt.java:10)
    4 frames
  9. platform.utils
    Lazy.value
    1. platform.utils.Lazy.value(Lazy.java:24)
    1 frame
  10. platform.data
    Mandt.deflt
    1. platform.data.Mandt.deflt(Mandt.java:13)
    1 frame
  11. pm.business
    PmLogic.<clinit>
    1. pm.business.InjectedLinkProject.getResourceTypes(InjectedLinkProject.java:66)
    2. pm.business.InjectedLinkProject.<init>(InjectedLinkProject.java:57)
    3. pm.business.PmLogic.<clinit>(PmLogic.java:17)
    3 frames
  12. main.business
    MainApplication.<clinit>
    1. main.business.MainApplication.<clinit>(MainApplication.java:22)
    1 frame
  13. main.application
    MainController.<clinit>
    1. main.application.MainController.<clinit>(MainController.java:25)
    1 frame
  14. Unknown
    Routes$$anonfun$routes$1$$anonfun$applyOrElse$158$$anonfun$apply$158.apply
    1. Routes$$anonfun$routes$1$$anonfun$applyOrElse$158$$anonfun$apply$158.apply(routes_routing.scala:2477)
    2. Routes$$anonfun$routes$1$$anonfun$applyOrElse$158$$anonfun$apply$158.apply(routes_routing.scala:2477)
    2 frames
  15. Play
    JavaAction$$anonfun$11.apply
    1. play.core.Router$HandlerInvokerFactory$$anon$5.resultCall(Router.scala:267)
    2. play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.invocation(Router.scala:255)
    3. play.core.j.JavaAction$$anon$1.call(JavaAction.scala:55)
    4. play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)
    5. play.core.j.JavaAction$$anonfun$11.apply(JavaAction.scala:82)
    5 frames
  16. Scala
    Future$PromiseCompletingRunnable.run
    1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
    2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
    2 frames
  17. Play
    HttpExecutionContext$$anon$2.run
    1. play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40)
    1 frame
  18. Play Iteratees
    Execution$trampoline$.execute
    1. play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:46)
    1 frame
  19. Play
    HttpExecutionContext.execute
    1. play.core.j.HttpExecutionContext.execute(HttpExecutionContext.scala:32)
    1 frame
  20. Scala
    Future$.apply
    1. scala.concurrent.impl.Future$.apply(Future.scala:31)
    2. scala.concurrent.Future$.apply(Future.scala:492)
    2 frames
  21. Play
    Action$$anonfun$apply$1$$anonfun$apply$4.apply
    1. play.core.j.JavaAction$class.apply(JavaAction.scala:82)
    2. play.core.Router$HandlerInvokerFactory$JavaActionInvokerFactory$$anon$15$$anon$1.apply(Router.scala:252)
    3. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)
    4. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)
    5. play.utils.Threads$.withContextClassLoader(Threads.scala:21)
    6. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:129)
    7. play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:128)
    7 frames
  22. Scala
    Option.map
    1. scala.Option.map(Option.scala:146)
    1 frame
  23. Play
    Action$$anonfun$apply$1.apply
    1. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:128)
    2. play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:121)
    2 frames
  24. Play Iteratees
    Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply
    1. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)
    2. play.api.libs.iteratee.Iteratee$$anonfun$mapM$1.apply(Iteratee.scala:483)
    3. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)
    4. play.api.libs.iteratee.Iteratee$$anonfun$flatMapM$1.apply(Iteratee.scala:519)
    5. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)
    6. play.api.libs.iteratee.Iteratee$$anonfun$flatMap$1$$anonfun$apply$14.apply(Iteratee.scala:496)
    6 frames
  25. Scala
    Future$PromiseCompletingRunnable.run
    1. scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
    2. scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
    2 frames
  26. Akka Actor
    ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec
    1. akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:41)
    2. akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    2 frames
  27. Scala
    ForkJoinWorkerThread.run
    1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
    4 frames