Hibernate Core errors

An object-relational mapping tool for Java

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

DescriptionException TypeEntry MethodWeb pages

importing org.hibernate.annotations.Entity instead of javax.persistence.Entity annotation for @Entity annotation leads to MappingException

org.hibernate.MappingException
org.hibernate.impl.SessionFactoryImpl.getEntityPersister
108Web pages
MappingExceptionSessionFactoryImpl.getEntityPersister108

After Transaction Session Closes Automatically and calling getCurrentSession leads to Exception. Instead Use openSession

org.hibernate.SessionException
org.hibernate.impl.AbstractSessionImpl.errorIfClosed
68Web pages
SessionExceptionAbstractSessionImpl.errorIfClosed68

hibernate session context class property is not set or set Incorrectly

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

Hibernate is unable to find the specified record in the database

org.hibernate.ObjectNotFoundException
org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound
28Web pages
1Solution
ObjectNotFoundExceptionSessionFactoryImpl$1.handleEntityNotFound28

Invalid Syntax while setting parameters in HQL query

org.hibernate.QueryException
org.hibernate.impl.AbstractQueryImpl.verifyParameters
26Web pages
QueryExceptionAbstractQueryImpl.verifyParameters26

AbstractQueryImpl.uniqueElement() has thrown a NonUniqueResultException

org.hibernate.NonUniqueResultException
org.hibernate.impl.AbstractQueryImpl.uniqueElement
24Web pages
NonUniqueResultExceptionAbstractQueryImpl.uniqueElement24

SessionFactoryImpl$2.handleEntityNotFound() has thrown an ObjectNotFoundException

org.hibernate.ObjectNotFoundException
org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound
21Web pages
ObjectNotFoundExceptionSessionFactoryImpl$2.handleEntityNotFound21

SessionFactoryImpl.getCurrentSession() has thrown a HibernateException

org.hibernate.HibernateException
1 frames hidden
org.hibernate.impl.SessionFactoryImpl.getCurrentSession
13Web pages
HibernateExceptionSessionFactoryImpl.getCurrentSession13

AbstractQueryImpl.setParameter() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.hibernate.impl.AbstractQueryImpl.setParameter
12Web pages
IllegalArgumentExceptionAbstractQueryImpl.setParameter12

SessionImpl.getNamedQuery() has thrown a MappingException

org.hibernate.MappingException
1 frames hidden
org.hibernate.impl.SessionImpl.getNamedQuery
11Web pages
MappingExceptionSessionImpl.getNamedQuery11

SessionImpl.close() has thrown a SessionException

org.hibernate.SessionException
org.hibernate.impl.SessionImpl.close
10Web pages
SessionExceptionSessionImpl.close10

SessionImpl.fireLoad() has thrown a NullPointerException

java.lang.NullPointerException
5 frames hidden
org.hibernate.impl.SessionImpl.fireLoad
10Web pages
NullPointerExceptionSessionImpl.fireLoad10

AbstractQueryImpl.setParameter() has thrown an IndexOutOfBoundsException

java.lang.IndexOutOfBoundsException
3 frames hidden
org.hibernate.impl.AbstractQueryImpl.setParameter
8Web pages
IndexOutOfBoundsExceptionAbstractQueryImpl.setParameter8

SessionFactoryImpl.openSession() has thrown a NullPointerException

java.lang.NullPointerException
1 frames hidden
org.hibernate.impl.SessionFactoryImpl.openSession
6Web pages
NullPointerExceptionSessionFactoryImpl.openSession6

SessionImpl.flush() has thrown a HibernateException

org.hibernate.HibernateException
10 frames hidden
org.hibernate.impl.SessionImpl.flush
6Web pages
HibernateExceptionSessionImpl.flush6

SessionImpl.flush() has thrown an AssertionFailure

org.hibernate.AssertionFailure
6 frames hidden
org.hibernate.impl.SessionImpl.flush
5Web pages
AssertionFailureSessionImpl.flush5

SessionImpl.flush() has thrown a HibernateException

org.hibernate.HibernateException
5 frames hidden
org.hibernate.impl.SessionImpl.flush
5Web pages
HibernateExceptionSessionImpl.flush5

SessionFactoryImpl.<init>() has thrown a JDBCException

org.hibernate.JDBCException
3 frames hidden
org.hibernate.impl.SessionFactoryImpl.<init>
4Web pages
JDBCExceptionSessionFactoryImpl.<init>4

FetchingScrollableResultsImpl.next() has thrown a GenericJDBCException

org.hibernate.exception.GenericJDBCException
4 frames hidden
org.hibernate.impl.FetchingScrollableResultsImpl.next
4Web pages
GenericJDBCExceptionFetchingScrollableResultsImpl.next4

SessionImpl.flush() has thrown a StaleObjectStateException

org.hibernate.StaleObjectStateException
10 frames hidden
org.hibernate.impl.SessionImpl.flush
4Web pages
StaleObjectStateExceptionSessionImpl.flush4

SessionFactoryImpl.getCollectionPersister() has thrown a MappingException

org.hibernate.MappingException
org.hibernate.impl.SessionFactoryImpl.getCollectionPersister
4Web pages
MappingExceptionSessionFactoryImpl.getCollectionPersister4

SessionImpl.load() has thrown a NonUniqueObjectException

org.hibernate.NonUniqueObjectException
4 frames hidden
org.hibernate.impl.SessionImpl.load
4Web pages
NonUniqueObjectExceptionSessionImpl.load4

SessionFactoryImpl.openSession() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
3 frames hidden
org.hibernate.impl.SessionFactoryImpl.openSession
4Web pages
NoClassDefFoundErrorSessionFactoryImpl.openSession4

SessionFactoryImpl.getCurrentSession() has thrown a HibernateException

org.hibernate.HibernateException
1 frames hidden
org.hibernate.impl.SessionFactoryImpl.getCurrentSession
4Web pages
HibernateExceptionSessionFactoryImpl.getCurrentSession4

SessionImpl.flush() has thrown a ConstraintViolationException

org.hibernate.exception.ConstraintViolationException
org.hibernate.impl.SessionImpl.flush
3Web pages
ConstraintViolationExceptionSessionImpl.flush3

SessionImpl.createQuery() has thrown a QueryException

org.hibernate.QueryException
13 frames hidden
org.hibernate.impl.SessionImpl.createQuery
3Web pages
QueryExceptionSessionImpl.createQuery3

QueryImpl.executeUpate() has thrown a SQLGrammarException

java.sql.SQLException
12 frames hidden
org.hibernate.impl.QueryImpl.executeUpate
3Web pages
SQLGrammarExceptionQueryImpl.executeUpate3

SessionFactoryImpl.buildCurrentSessionContext() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
org.hibernate.impl.SessionFactoryImpl.buildCurrentSessionContext
3Web pages
NoClassDefFoundErrorSessionFactoryImpl.buildCurrentSessionContext3

SessionImpl.beginTransaction() has thrown a TransactionException

org.hibernate.TransactionException
1 frames hidden
org.hibernate.impl.SessionImpl.beginTransaction
3Web pages
TransactionExceptionSessionImpl.beginTransaction3

AbstractQueryImpl.setParameter() has thrown a HibernateException

org.hibernate.HibernateException
3 frames hidden
org.hibernate.impl.AbstractQueryImpl.setParameter
2Web pages
HibernateExceptionAbstractQueryImpl.setParameter2

SQLQueryImpl.executeUpdate() has thrown a GenericJDBCException

org.hibernate.exception.GenericJDBCException
5 frames hidden
org.hibernate.impl.SQLQueryImpl.executeUpdate
2Web pages
GenericJDBCExceptionSQLQueryImpl.executeUpdate2

SQLQueryImpl.list() has thrown a NullPointerException

java.lang.NullPointerException
8 frames hidden
org.hibernate.impl.SQLQueryImpl.list
2Web pages
NullPointerExceptionSQLQueryImpl.list2

AbstractQueryImpl.executeUpdate() has thrown an UnsupportedOperationException

java.lang.UnsupportedOperationException
org.hibernate.impl.AbstractQueryImpl.executeUpdate
2Web pages
UnsupportedOperationExceptionAbstractQueryImpl.executeUpdate2

SessionImpl.merge() has thrown a NullPointerException

java.lang.NullPointerException
7 frames hidden
org.hibernate.impl.SessionImpl.merge
2Web pages
NullPointerExceptionSessionImpl.merge2

SessionImpl.createQuery() has thrown a NullPointerException

java.lang.NullPointerException
17 frames hidden
org.hibernate.impl.SessionImpl.createQuery
2Web pages
NullPointerExceptionSessionImpl.createQuery2

SessionFactoryImpl.getEntityPersister() has thrown a HibernateSystemException

org.springframework.orm.hibernate3.HibernateSystemException
org.hibernate.impl.SessionFactoryImpl.getEntityPersister
2Web pages
HibernateSystemExceptionSessionFactoryImpl.getEntityPersister2

SessionImpl.enableFilter() has thrown a HibernateException

org.hibernate.HibernateException
1 frames hidden
org.hibernate.impl.SessionImpl.enableFilter
2Web pages
HibernateExceptionSessionImpl.enableFilter2

SQLQueryImpl.list() has thrown a NullPointerException

java.lang.NullPointerException
11 frames hidden
org.hibernate.impl.SQLQueryImpl.list
2Web pages
NullPointerExceptionSQLQueryImpl.list2

QueryImpl.executeUpate() has thrown a NullPointerException

java.lang.NullPointerException
12 frames hidden
org.hibernate.impl.QueryImpl.executeUpate
2Web pages
NullPointerExceptionQueryImpl.executeUpate2

AbstractQueryImpl.setEntity() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.hibernate.impl.AbstractQueryImpl.setEntity
2Web pages
IllegalArgumentExceptionAbstractQueryImpl.setEntity2

QueryImpl.list() has thrown a QueryExecutionRequestException

org.hibernate.hql.QueryExecutionRequestException
4 frames hidden
org.hibernate.impl.QueryImpl.list
2Web pages
QueryExecutionRequestExceptionQueryImpl.list2

SessionImpl.beginTransaction() has thrown a NullPointerException

java.lang.NullPointerException
1 frames hidden
org.hibernate.impl.SessionImpl.beginTransaction
2Web pages
NullPointerExceptionSessionImpl.beginTransaction2

SessionImpl.delete() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.hibernate.impl.SessionImpl.delete
1Web pages
IllegalArgumentExceptionSessionImpl.delete1

CriteriaImpl.list() has thrown a MappingException

org.hibernate.MappingException
6 frames hidden
org.hibernate.impl.CriteriaImpl.list
1Web pages
MappingExceptionCriteriaImpl.list1

SessionImpl.checkTransactionSynchStatus() has thrown a TransactionException

java.lang.UnsupportedOperationException
5 frames hidden
org.hibernate.impl.SessionImpl.checkTransactionSynchStatus
1Web pages
TransactionExceptionSessionImpl.checkTransactionSynchStatus1

SessionImpl.managedFlush() has thrown a HibernateException

org.hibernate.HibernateException
1 frames hidden
org.hibernate.impl.SessionImpl.managedFlush
1Web pages
HibernateExceptionSessionImpl.managedFlush1

SessionImpl.setReadOnly() has thrown a TransientObjectException

org.hibernate.TransientObjectException
1 frames hidden
org.hibernate.impl.SessionImpl.setReadOnly
1Web pages
TransientObjectExceptionSessionImpl.setReadOnly1

SessionFactoryImpl.openSession() has thrown a CannotCreateTransactionException

org.springframework.transaction.CannotCreateTransactionException
2 frames hidden
org.hibernate.impl.SessionFactoryImpl.openSession
1Web pages
CannotCreateTransactionExceptionSessionFactoryImpl.openSession1

SessionFactoryImpl.getClassMetadata() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.impl.SessionFactoryImpl.getClassMetadata
1Web pages
NullPointerExceptionSessionFactoryImpl.getClassMetadata1

CriteriaImpl.list() has thrown a ClassCastException

java.lang.ClassCastException
14 frames hidden
org.hibernate.impl.CriteriaImpl.list
1Web pages
ClassCastExceptionCriteriaImpl.list1
Package namePatterns foundSolution coverageSummary coverage
org.hibernate.cfg768
org.hibernate.internal714
org.hibernate.impl443
org.hibernate.loader354
org.hibernate.engine.jdbc.internal347
org.hibernate.jdbc214
org.hibernate.persister.entity183
org.hibernate.event.internal173
org.hibernate.type142
org.hibernate.event.def141
org.hibernate.transaction114
org.hibernate.hql.internal.antlr88
org.hibernate.engine.jdbc.connections.internal82
org.hibernate.engine79
org.hibernate.engine.internal77
org.hibernate.service.internal77
org.hibernate.engine.jdbc.batch.internal72
org.hibernate.connection67
org.hibernate.tool.hbm2ddl64
org.hibernate.mapping63
org.hibernate.collection.internal61
org.hibernate.engine.query.spi54
org.hibernate.boot.internal53
org.hibernate.engine.spi52
org.hibernate.hql.internal.ast51
org.hibernate.collection48
org.hibernate.engine.jdbc.spi45
org.hibernate.engine.transaction.spi44
org.hibernate.tuple.entity44
org.hibernate.engine.jdbc.internal.proxy43
org.hibernate.boot.model.process.spi40
org.hibernate.engine.transaction.internal36
org.hibernate.tool.schema.internal35
org.hibernate.id.insert34
org.hibernate.resource.jdbc.internal34
org.hibernate.action.internal33
org.hibernate.property31
org.hibernate.util31
org.hibernate.hql.ast29
org.hibernate.query.internal28
org.hibernate.cfg.beanvalidation26
org.hibernate.hql.internal.ast.tree25
org.hibernate.cfg.annotations24
org.hibernate.engine.query23
org.hibernate.engine.jdbc.env.internal22
org.hibernate.loader.criteria21
org.hibernate.id20
org.hibernate.exception.internal20
org.hibernate.proxy.pojo.javassist19
org.hibernate.engine.transaction.synchronization.internal19
Package nameClass namePatterns foundSolution coverageSummary coverage
org.hibernate.implSessionImpl264
org.hibernate.implQueryImpl60
org.hibernate.implCriteriaImpl32
org.hibernate.implSessionFactoryImpl24
org.hibernate.implSQLQueryImpl23
org.hibernate.implAbstractQueryImpl22
org.hibernate.implAbstractSessionImpl10
org.hibernate.implSessionFactoryObjectFactory2
org.hibernate.implScrollableResultsImpl2
org.hibernate.implSessionFactoryImpl$11
org.hibernate.implSessionFactoryImpl$21
org.hibernate.implFetchingScrollableResultsImpl1
org.hibernate.implAbstractScrollableResults1
Package nameClass nameMethod namePatterns foundSolution coverage
org.hibernate.implSessionImplflush77
org.hibernate.implQueryImpllist52
org.hibernate.implCriteriaImpllist29
org.hibernate.implSessionImplsave25
org.hibernate.implSessionImplbeginTransaction21
org.hibernate.implSessionImplcreateQuery21
org.hibernate.implSessionImplmanagedFlush17
org.hibernate.implSQLQueryImpllist16
org.hibernate.implSessionImplfireLoad12
org.hibernate.implSessionImpllist11
org.hibernate.implSessionImplsaveOrUpdate10
org.hibernate.implSessionImplget10
org.hibernate.implAbstractQueryImpluniqueResult9
org.hibernate.implSessionImplload9
org.hibernate.implSessionImplmerge6
org.hibernate.implSQLQueryImplexecuteUpdate6
org.hibernate.implAbstractSessionImplcreateQuery6
org.hibernate.implSessionFactoryImplopenSession5
org.hibernate.implAbstractQueryImplsetParameter5
org.hibernate.implSessionImpldelete5
org.hibernate.implSessionFactoryImplgetCurrentSession4
org.hibernate.implQueryImplexecuteUpdate4
org.hibernate.implSessionFactoryImpl<init>3
org.hibernate.implSessionFactoryImplgetQuery3
org.hibernate.implSessionImplupdate3
org.hibernate.implSessionFactoryImplclose3
org.hibernate.implSessionImplpersist3
org.hibernate.implCriteriaImpluniqueResult3
org.hibernate.implAbstractSessionImplgetHQLQueryPlan3
org.hibernate.implSessionImplautoFlushIfRequired3
org.hibernate.implQueryImplexecuteUpate2
org.hibernate.implSessionImplinitializeCollection2
org.hibernate.implScrollableResultsImplnext2
org.hibernate.implAbstractQueryImplverifyParameters2
org.hibernate.implSessionImplcreateSQLQuery2
org.hibernate.implSessionFactoryObjectFactoryaddInstance2
org.hibernate.implSessionImplconnection2
org.hibernate.implSessionImplgetQueries2
org.hibernate.implSessionFactoryImplgetEntityPersister2
org.hibernate.implSessionImpllistCustomQuery2
org.hibernate.implQueryImpliterate2
org.hibernate.implSessionImplafterTransactionCompletion1
org.hibernate.implSessionImplgetPersistenceContext1
org.hibernate.implSessionImplcontains1
org.hibernate.implSQLQueryImplverifyParameters1
org.hibernate.implSessionImplinternalLoad1
org.hibernate.implAbstractQueryImplsetLong1
org.hibernate.implAbstractSessionImplerrorIfClosed1
org.hibernate.implSessionImplclear1
org.hibernate.implSessionFactoryImplgetCollectionPersister1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.hibernate.implSessionImplflushConstraintViolationException19
org.hibernate.implQueryImpllistSQLGrammarException10
org.hibernate.implSessionImplflushGenericJDBCException9
org.hibernate.implSessionImplcreateQueryQueryException8
org.hibernate.implSessionImplflushHibernateException7
org.hibernate.implQueryImpllistGenericJDBCException7
org.hibernate.implSessionImplflushStaleStateException6
org.hibernate.implSessionImplcreateQueryQuerySyntaxException5
org.hibernate.implSessionImplbeginTransactionGenericJDBCException5
org.hibernate.implSessionImplfireLoadObjectNotFoundException5
org.hibernate.implSessionImplsaveGenericJDBCException4
org.hibernate.implSessionImplsaveSQLGrammarException4
org.hibernate.implQueryImpllistSocketException4
org.hibernate.implSessionImplflushStaleObjectStateException4
org.hibernate.implSessionImplflushDataException4
org.hibernate.implSessionImplflushBatchUpdateException4
org.hibernate.implSessionImplflushTransientObjectException4
org.hibernate.implCriteriaImpllistClassCastException4
org.hibernate.implSessionImplflushAssertionFailure4
org.hibernate.implSessionFactoryImplgetCurrentSessionHibernateException4
org.hibernate.implSessionImpllistSQLGrammarException3
org.hibernate.implSessionImplsaveConstraintViolationException3
org.hibernate.implSessionImpldeleteIllegalArgumentException3
org.hibernate.implSessionImpllistGenericJDBCException3
org.hibernate.implSessionImplflushSQLGrammarException3
org.hibernate.implSessionImplbeginTransactionUnsupportedOperationException3
org.hibernate.implSessionImplcreateQueryNullPointerException3
org.hibernate.implSessionImplloadObjectNotFoundException3
org.hibernate.implCriteriaImpllistQueryException3
org.hibernate.implCriteriaImpllistGenericJDBCException3
org.hibernate.implAbstractQueryImpluniqueResultGenericJDBCException3
org.hibernate.implSessionImplsaveNonUniqueObjectException3
org.hibernate.implQueryImpllistJDBCConnectionException3
org.hibernate.implSessionImplmanagedFlushConstraintViolationException3
org.hibernate.implCriteriaImpllistAssertionFailure3
org.hibernate.implSQLQueryImpllistMappingException3
org.hibernate.implSessionImplflushLockAcquisitionException2
org.hibernate.implSessionImplmanagedFlushGenericJDBCException2
org.hibernate.implSQLQueryImplexecuteUpdateGenericJDBCException2
org.hibernate.implQueryImpllistConstraintViolationException2
org.hibernate.implSessionFactoryImplgetQueryQuerySyntaxError2
org.hibernate.implSessionImplpersistPersistentObjectException2
org.hibernate.implSessionImplsaveIdentifierGenerationException2
org.hibernate.implAbstractQueryImplverifyParametersQueryException2
org.hibernate.implCriteriaImpllistMappingException2
org.hibernate.implSessionImplgetQueriesQuerySyntaxError2
org.hibernate.implSessionImplsaveOrUpdatePropertyValueException2
org.hibernate.implCriteriaImpllistJDBCConnectionException2
org.hibernate.implSessionImplgetHibernateException2
org.hibernate.implSessionImplmergeTransientObjectException2