org.hibernate.MappingException: Could not instantiate id generator [entity-name=null]

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 Stack Overflow by Aditya Sawant
, 1 year ago
Could not instantiate id generator [entity-name=null]
via codegur.us by Unknown author, 1 year ago
Could not instantiate id generator [entity-name=null]
via Stack Overflow by kewpiedoll99
, 2 years ago
Could not instantiate id generator [entity-name=com.pronto.mpds.entity.MexpFeedError]
via Oracle Community by user10112541, 1 year ago
Could not instantiate id generator [entity-name=XYZEntity]
via GitHub by hareluya86
, 1 year ago
Could not instantiate id generator [entity-name=eds.entity.data.EnterpriseObject]
via Stack Overflow by Rup Majumder
, 2 years ago
Could not instantiate id generator [entity-name=com.rup.example.po.CustomerTempInfo]
org.hibernate.MappingException: Could not instantiate id generator [entity-name=null]
at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.getIdentifierGeneratorClass(DefaultIdentifierGeneratorFactory.java:132)
at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.createIdentifierGenerator(DefaultIdentifierGeneratorFactory.java:112)
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:259)
at org.hibernate.persister.collection.AbstractCollectionPersister.(AbstractCollectionPersister.java:429)
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.createCollectionPersister(PersisterFactoryImpl.java:152)
at org.hibernate.persister.internal.PersisterFactoryImpl.createCollectionPersister(PersisterFactoryImpl.java:140)
at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:408)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:708)
at com.hbt.HibernateTest.main(HibernateTest.java:35)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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