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.validate()58

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

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

AbstractFlushingEventListener.performExecutions() has thrown a StaleObjectStateException

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

HqlSqlBaseWalker.fromElementList() has thrown a QuerySyntaxException

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

Persisting an entity which is not in persistant state

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

Configuration.buildSessionFactory() has thrown a MappingException

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

Incorrect Hibernate dependencies

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

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.fromClause()57

HqlSqlBaseWalker.fromClause() has thrown a QuerySyntaxException

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

AnnotationBinder.bindClass() has thrown a NoSuchMethodError

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

EntityType.getIdentifier() has thrown a TransientObjectException

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

AbstractFlushingEventListener.flushEverythingToExecutions() has thrown an AssertionFailure

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

SettingsFactory.determineDialect() has thrown a HibernateException

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

Config file not found in classpath

org.hibernate.MappingNotFoundException
org.hibernate.cfg.Configuration.addResource
53Web pages
MappingNotFoundExceptionConfiguration.addResource()53

SessionImpl.flush() has thrown a StaleObjectStateException

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

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.doCompile()53

SettingsFactory.buildSettings() has thrown a HibernateException

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

Configuration.buildSettings() has thrown a HibernateException

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

AbstractEntityPersister.toType() has thrown a QueryException

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

QueryTranslatorImpl.compile() has thrown a QuerySyntaxException

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

DriverManagerConnectionProvider.getConnection() has thrown a SQLException

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

Configuration.addInputStream() has thrown a DocumentException

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

Configuration.configure() has thrown a HibernateException

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

Configuration.buildSessionFactory() has thrown a HibernateException

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

AbstractSaveEventListener.saveWithGeneratedId() has thrown a MappingException

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

Loader.doList() has thrown a SQLGrammarException

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

AbstractSaveEventListener.saveWithGeneratedId() has thrown a MappingException

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

BeanValidationEventListener.onPreInsert() has thrown a ConstraintViolationException

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

Improper mapping

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

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.checkColumnDuplication()45

SessionImpl.save() has thrown a MappingException

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

Could not load jdbc driver

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

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.throwQueryException()44

SqlExceptionHelper.convert() has thrown a GenericJDBCException

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

SQL syntax error

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

AbstractSessionImpl.createQuery() has thrown a QuerySyntaxException

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

Configuration.buildSessionFactory() has thrown a NoSuchMethodError

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

ActionQueue.executeActions() has thrown a ConstraintViolationException

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

QueryTranslatorImpl.compile() has thrown a QuerySyntaxException

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

AbstractSaveEventListener.performSave() has thrown a PropertyValueException

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

Dialect not set

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

PersistentSet.iterator() has thrown a LazyInitializationException

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

PersistentClass.checkPropertyColumnDuplication() has thrown a MappingException

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

ClassLoaderServiceImpl.classForName() has thrown a ClassNotFoundException

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

Hibernate session context is not set

org.hibernate.HibernateException
org.hibernate.impl.SessionFactoryImpl.getCurrentSession
42Web pages
HibernateExceptionSessionFactoryImpl.getCurrentSession()42

DefaultSaveOrUpdateEventListener.onSaveOrUpdate() has thrown a MappingException

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

SessionImpl.createQuery() has thrown a QuerySyntaxException

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

SessionImpl.managedFlush() has thrown a StaleObjectStateException

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

SessionImpl.managedFlush() has thrown a StaleStateException

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

BasicPropertyAccessor$BasicGetter.get() has thrown an IllegalArgumentException

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