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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Luca Domenichini, 1 year ago
[PersistenceUnit: TestPU] Unable to build Hibernate SessionFactory
via Hibernate JIRA by Luca Domenichini, 1 year ago
[PersistenceUnit: TestPU] Unable to build Hibernate SessionFactory
via com.br by Unknown author, 1 year ago
[PersistenceUnit: ProjetosJSF] Unable to build Hibernate SessionFactory
via com.br by Unknown author, 2 years ago
[PersistenceUnit: ProjetosJSF] Unable to build Hibernate SessionFactory
via 4programmers.net by Unknown author, 2 years ago
[PersistenceUnit: myDataBase] Unable to build Hibernate SessionFactory
via Stack Overflow by Unknown author, 2 years ago
[PersistenceUnit: MyClassRegister] Unable to build Hibernate SessionFactory
javax.persistence.PersistenceException: [PersistenceUnit: TestPU] Unable to build Hibernate SessionFactory
at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1096)
at org.hibernate.internal.SessionFactoryImpl.getIdentifierType(SessionFactoryImpl.java:1193)
at org.hibernate.type.EntityType.getIdentifierType(EntityType.java:635)
at org.hibernate.type.EntityType.getIdentifierOrUniqueKeyType(EntityType.java:672)
at org.hibernate.type.ManyToOneType.getColumnSpan(ManyToOneType.java:142)
at org.hibernate.tuple.entity.EntityMetamodel.create(EntityMetamodel.java:459)
at org.hibernate.tuple.entity.EntityMetamodel.buildGenerationStrategyPair(EntityMetamodel.java:424)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:266)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:520)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:148)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163)
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135)
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:401)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:75)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at testH4.TestH4.main(TestH4.java:10)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 9 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.