1. Explore
  2. »
  3. Hibernate Core

Hibernate Core errors

An object-relational mapping tool for Java

http://hibernate.org/
Solution coverage:
Summary coverage:

Top patterns

  1. Unable to persist object to database due to Entity/Bean field constraint violation

    Ensure that the object that you are trying to persist/save to database is valid and full fills all the constraints/conditions in the Entity/Bean class, it is an instance of.

  2. Not setting a value to the non-null field of Entity
    No solution
  3. AbstractFlushingEventListener.performExecutions() has thrown a StaleObjectStateException
    No solution
Error patternsPackagesClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Unable to persist object to database due to Entity/Bean field constraint violation

javax.validation.ConstraintViolationException
org.hibernate.cfg.beanvalidation.BeanValidationEventListener.validate
58Web pages
1Solution
ConstraintViolationExceptionBeanValidationEventListener.validate58

Not setting a value to the non-null field of Entity

org.hibernate.AssertionFailure
org.hibernate.event.def.DefaultFlushEntityEventListener.checkId
58Web pages
AssertionFailureDefaultFlushEntityEventListener.checkId58

AbstractFlushingEventListener.performExecutions() has thrown a StaleObjectStateException

org.hibernate.StaleObjectStateException
8 frames hidden
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions
58Web pages
StaleObjectStateExceptionAbstractFlushingEventListener.performExecutions58

HqlSqlBaseWalker.fromElementList() has thrown a QuerySyntaxException

org.hibernate.hql.ast.QuerySyntaxException
5 frames hidden
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList
58Web pages
QuerySyntaxExceptionHqlSqlBaseWalker.fromElementList58

Persisting an entity which is not in persistant state

org.hibernate.PersistentObjectException
org.hibernate.event.internal.DefaultPersistEventListener.onPersist
57Web pages
1Solution
PersistentObjectExceptionDefaultPersistEventListener.onPersist57

Configuration.buildSessionFactory() has thrown a MappingException

org.hibernate.MappingException
6 frames hidden
org.hibernate.cfg.Configuration.buildSessionFactory
57Web pages
MappingExceptionConfiguration.buildSessionFactory57

Incorrect Hibernate dependencies

java.lang.NoSuchMethodError
org.hibernate.cfg.annotations.EntityBinder.processComplementaryTableDefinitions
57Web pages
1Solution
NoSuchMethodErrorEntityBinder.processComplementaryTableDefinitions57

HqlSqlBaseWalker.fromClause() has thrown a QuerySyntaxException

org.hibernate.hql.internal.ast.QuerySyntaxException
6 frames hidden
org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromClause
57Web pages
QuerySyntaxExceptionHqlSqlBaseWalker.fromClause57

HqlSqlBaseWalker.fromClause() has thrown a QuerySyntaxException

org.hibernate.hql.ast.QuerySyntaxException
6 frames hidden
org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause
55Web pages
QuerySyntaxExceptionHqlSqlBaseWalker.fromClause55

AnnotationBinder.bindClass() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
1 frames hidden
org.hibernate.cfg.AnnotationBinder.bindClass
55Web pages
NoSuchMethodErrorAnnotationBinder.bindClass55

EntityType.getIdentifier() has thrown a TransientObjectException

org.hibernate.TransientObjectException
1 frames hidden
org.hibernate.type.EntityType.getIdentifier
55Web pages
TransientObjectExceptionEntityType.getIdentifier55

AbstractFlushingEventListener.flushEverythingToExecutions() has thrown an AssertionFailure

org.hibernate.AssertionFailure
4 frames hidden
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions
54Web pages
AssertionFailureAbstractFlushingEventListener.flushEverythingToExecutions54

SettingsFactory.determineDialect() has thrown a HibernateException

org.hibernate.HibernateException
2 frames hidden
org.hibernate.cfg.SettingsFactory.determineDialect
54Web pages
HibernateExceptionSettingsFactory.determineDialect54

Config file not found in classpath

org.hibernate.MappingNotFoundException
org.hibernate.cfg.Configuration.addResource
53Web pages
MappingNotFoundExceptionConfiguration.addResource53

SessionImpl.flush() has thrown a StaleObjectStateException

org.hibernate.StaleObjectStateException
10 frames hidden
org.hibernate.impl.SessionImpl.flush
53Web pages
StaleObjectStateExceptionSessionImpl.flush53

QueryTranslatorImpl.doCompile() has thrown a QuerySyntaxException

org.hibernate.hql.internal.ast.QuerySyntaxException
11 frames hidden
org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile
53Web pages
QuerySyntaxExceptionQueryTranslatorImpl.doCompile53

SettingsFactory.buildSettings() has thrown a HibernateException

org.hibernate.HibernateException
3 frames hidden
org.hibernate.cfg.SettingsFactory.buildSettings
52Web pages
HibernateExceptionSettingsFactory.buildSettings52

Configuration.buildSettings() has thrown a HibernateException

org.hibernate.HibernateException
4 frames hidden
org.hibernate.cfg.Configuration.buildSettings
50Web pages
HibernateExceptionConfiguration.buildSettings50

AbstractEntityPersister.toType() has thrown a QueryException

org.hibernate.QueryException
2 frames hidden
org.hibernate.persister.entity.AbstractEntityPersister.toType
50Web pages
QueryExceptionAbstractEntityPersister.toType50

QueryTranslatorImpl.compile() has thrown a QuerySyntaxException

org.hibernate.hql.ast.QuerySyntaxException
12 frames hidden
org.hibernate.hql.ast.QueryTranslatorImpl.compile
50Web pages
QuerySyntaxExceptionQueryTranslatorImpl.compile50

DriverManagerConnectionProvider.getConnection() has thrown a SQLException

java.sql.SQLException
2 frames hidden
org.hibernate.connection.DriverManagerConnectionProvider.getConnection
49Web pages
SQLExceptionDriverManagerConnectionProvider.getConnection49

Configuration.addInputStream() has thrown a DocumentException

org.dom4j.DocumentException
1 frames hidden
org.hibernate.cfg.Configuration.addInputStream
49Web pages
DocumentExceptionConfiguration.addInputStream49

Configuration.configure() has thrown a HibernateException

org.dom4j.DocumentException
4 frames hidden
org.hibernate.cfg.Configuration.configure
49Web pages
HibernateExceptionConfiguration.configure49

Configuration.buildSessionFactory() has thrown a HibernateException

org.hibernate.HibernateException
5 frames hidden
org.hibernate.cfg.Configuration.buildSessionFactory
48Web pages
HibernateExceptionConfiguration.buildSessionFactory48

AbstractSaveEventListener.saveWithGeneratedId() has thrown a MappingException

org.hibernate.MappingException
2 frames hidden
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId
48Web pages
MappingExceptionAbstractSaveEventListener.saveWithGeneratedId48

Loader.doList() has thrown a SQLGrammarException

org.hibernate.exception.SQLGrammarException
2 frames hidden
org.hibernate.loader.Loader.doList
48Web pages
SQLGrammarExceptionLoader.doList48

AbstractSaveEventListener.saveWithGeneratedId() has thrown a MappingException

org.hibernate.MappingException
2 frames hidden
org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId
47Web pages
MappingExceptionAbstractSaveEventListener.saveWithGeneratedId47

BeanValidationEventListener.onPreInsert() has thrown a ConstraintViolationException

javax.validation.ConstraintViolationException
1 frames hidden
org.hibernate.cfg.beanvalidation.BeanValidationEventListener.onPreInsert
46Web pages
ConstraintViolationExceptionBeanValidationEventListener.onPreInsert46

Improper mapping

org.hibernate.HibernateException
org.hibernate.mapping.Table.validateColumns
45Web pages
1Solution
HibernateExceptionTable.validateColumns45

Using same @Column name more than once while mapping columns to entity properties

org.hibernate.MappingException
org.hibernate.mapping.PersistentClass.checkColumnDuplication
45Web pages
1Solution
MappingExceptionPersistentClass.checkColumnDuplication45

SessionImpl.save() has thrown a MappingException

org.hibernate.MappingException
10 frames hidden
org.hibernate.internal.SessionImpl.save
45Web pages
MappingExceptionSessionImpl.save45

Could not load jdbc driver

java.lang.ClassNotFoundException
org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass
45Web pages
ClassNotFoundExceptionClassLoaderServiceImpl$AggregatedClassLoader.findClass45

ErrorCounter.throwQueryException() has thrown a QuerySyntaxException

org.hibernate.hql.internal.ast.QuerySyntaxException
1 frames hidden
org.hibernate.hql.internal.ast.ErrorCounter.throwQueryException
44Web pages
QuerySyntaxExceptionErrorCounter.throwQueryException44

SqlExceptionHelper.convert() has thrown a GenericJDBCException

org.hibernate.exception.GenericJDBCException
1 frames hidden
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert
44Web pages
GenericJDBCExceptionSqlExceptionHelper.convert44

SQL syntax error

org.hibernate.exception.SQLGrammarException
org.hibernate.exception.internal.SQLStateConversionDelegate.convert
44Web pages
1Solution
SQLGrammarExceptionSQLStateConversionDelegate.convert44

AbstractSessionImpl.createQuery() has thrown a QuerySyntaxException

org.hibernate.hql.ast.QuerySyntaxException
17 frames hidden
org.hibernate.impl.AbstractSessionImpl.createQuery
44Web pages
QuerySyntaxExceptionAbstractSessionImpl.createQuery44

Configuration.buildSessionFactory() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
5 frames hidden
org.hibernate.cfg.Configuration.buildSessionFactory
44Web pages
NoSuchMethodErrorConfiguration.buildSessionFactory44

ActionQueue.executeActions() has thrown a ConstraintViolationException

org.hibernate.exception.ConstraintViolationException
4 frames hidden
org.hibernate.engine.ActionQueue.executeActions
43Web pages
ConstraintViolationExceptionActionQueue.executeActions43

QueryTranslatorImpl.compile() has thrown a QuerySyntaxException

org.hibernate.hql.ast.QuerySyntaxException
5 frames hidden
org.hibernate.hql.ast.QueryTranslatorImpl.compile
43Web pages
QuerySyntaxExceptionQueryTranslatorImpl.compile43

AbstractSaveEventListener.performSave() has thrown a PropertyValueException

org.hibernate.PropertyValueException
2 frames hidden
org.hibernate.event.def.AbstractSaveEventListener.performSave
43Web pages
PropertyValueExceptionAbstractSaveEventListener.performSave43

Dialect not set

org.hibernate.HibernateException
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect
43Web pages
1Solution
HibernateExceptionDialectFactoryImpl.determineDialect43

PersistentSet.iterator() has thrown a LazyInitializationException

org.hibernate.LazyInitializationException
4 frames hidden
org.hibernate.collection.PersistentSet.iterator
43Web pages
LazyInitializationExceptionPersistentSet.iterator43

PersistentClass.checkPropertyColumnDuplication() has thrown a MappingException

org.hibernate.MappingException
1 frames hidden
org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication
42Web pages
MappingExceptionPersistentClass.checkPropertyColumnDuplication42

ClassLoaderServiceImpl.classForName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName
42Web pages
ClassNotFoundExceptionClassLoaderServiceImpl.classForName42

Hibernate session context is not set

org.hibernate.HibernateException
org.hibernate.impl.SessionFactoryImpl.getCurrentSession
42Web pages
HibernateExceptionSessionFactoryImpl.getCurrentSession42

DefaultSaveOrUpdateEventListener.onSaveOrUpdate() has thrown a MappingException

org.hibernate.MappingException
7 frames hidden
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate
42Web pages
MappingExceptionDefaultSaveOrUpdateEventListener.onSaveOrUpdate42

SessionImpl.createQuery() has thrown a QuerySyntaxException

org.hibernate.hql.ast.QuerySyntaxException
18 frames hidden
org.hibernate.impl.SessionImpl.createQuery
42Web pages
QuerySyntaxExceptionSessionImpl.createQuery42

SessionImpl.managedFlush() has thrown a StaleObjectStateException

org.hibernate.StaleObjectStateException
11 frames hidden
org.hibernate.impl.SessionImpl.managedFlush
42Web pages
StaleObjectStateExceptionSessionImpl.managedFlush42

SessionImpl.managedFlush() has thrown a StaleStateException

org.hibernate.StaleStateException
10 frames hidden
org.hibernate.impl.SessionImpl.managedFlush
42Web pages
StaleStateExceptionSessionImpl.managedFlush42

BasicPropertyAccessor$BasicGetter.get() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
4 frames hidden
org.hibernate.property.BasicPropertyAccessor$BasicGetter.get
42Web pages
IllegalArgumentExceptionBasicPropertyAccessor$BasicGetter.get42
Nothing to list here.
Nothing to list here.
Nothing to list here.
Nothing to list here.