»»

org.hibernate.engine errorsHibernate Core

Top patterns

  1. Object references an unsaved transient instance

    If you reference an entity in your statement, you have to make sure that it's already saved.

    If this happens during saving an entity, you might want to cascade.

    If this happens during a query, you might want to change your query

  2. Foreign non-null entity is not saved
    No solution
  3. Persist multiple entities with same Id

    Use saveOrUpdate for persisting entities.

    In ManyToOne , ManyToMany ,OneToMany mappings you can use CascadeType.Merge to resolve this issue.

Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Object references an unsaved transient instance

org.hibernate.TransientObjectException
org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved
61Web pages
1Solution
TransientObjectExceptionForeignKeys.getEntityIdentifierIfNotUnsaved61

Foreign non-null entity is not saved

org.hibernate.PropertyValueException
org.hibernate.engine.Nullability.checkNullability
58Web pages
PropertyValueExceptionNullability.checkNullability58

Persist multiple entities with same Id

org.hibernate.NonUniqueObjectException
org.hibernate.engine.StatefulPersistenceContext.checkUniqueness
40Web pages
1Solution
NonUniqueObjectExceptionStatefulPersistenceContext.checkUniqueness40

ActionQueue.executeActions() has thrown a GenericJDBCException

org.hibernate.exception.GenericJDBCException
4 frames hidden
org.hibernate.engine.ActionQueue.executeActions
28Web pages
GenericJDBCExceptionActionQueue.executeActions28

Collections.processReachableCollection() has thrown a HibernateException

org.hibernate.HibernateException
org.hibernate.engine.Collections.processReachableCollection
12Web pages
HibernateExceptionCollections.processReachableCollection12

Cascade.cascade() has thrown a TransientObjectException

org.hibernate.TransientObjectException
1 frames hidden
org.hibernate.engine.Cascade.cascade
11Web pages
TransientObjectExceptionCascade.cascade11

EntityKey.<init>() has thrown an AssertionFailure

org.hibernate.AssertionFailure
org.hibernate.engine.EntityKey.<init>
6Web pages
AssertionFailureEntityKey.<init>6

StatefulPersistenceContext.checkUniqueness() has thrown a HibernateSystemException

org.springframework.orm.hibernate3.HibernateSystemException
org.hibernate.engine.StatefulPersistenceContext.checkUniqueness
4Web pages
HibernateSystemExceptionStatefulPersistenceContext.checkUniqueness4

EntityKey.generateHashCode() has thrown a NullPointerException

java.lang.NullPointerException
4 frames hidden
org.hibernate.engine.EntityKey.generateHashCode
4Web pages
NullPointerExceptionEntityKey.generateHashCode4

Nullability.checkNullability() has thrown a HibernateSystemException

org.springframework.orm.hibernate3.HibernateSystemException
org.hibernate.engine.Nullability.checkNullability
3Web pages
HibernateSystemExceptionNullability.checkNullability3

StatefulPersistenceContext.clear() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.engine.StatefulPersistenceContext.clear
3Web pages
NullPointerExceptionStatefulPersistenceContext.clear3

ActionQueue.executeActions() has thrown a GenericJDBCException

org.hibernate.exception.GenericJDBCException
org.hibernate.engine.ActionQueue.executeActions
2Web pages
GenericJDBCExceptionActionQueue.executeActions2

Collections.processUnreachableCollection() has thrown an AssertionFailure

org.hibernate.AssertionFailure
1 frames hidden
org.hibernate.engine.Collections.processUnreachableCollection
2Web pages
AssertionFailureCollections.processUnreachableCollection2

EntityEntry.getLoadedValue() has thrown a NullPointerException

java.lang.NullPointerException
org.hibernate.engine.EntityEntry.getLoadedValue
2Web pages
NullPointerExceptionEntityEntry.getLoadedValue2

TwoPhaseLoad.initializeEntity() has thrown a PropertyAccessException

org.hibernate.PropertyAccessException
3 frames hidden
org.hibernate.engine.TwoPhaseLoad.initializeEntity
2Web pages
PropertyAccessExceptionTwoPhaseLoad.initializeEntity2

Cascade.cascadeProperty() has thrown an ObjectDeletedException

org.hibernate.ObjectDeletedException
6 frames hidden
org.hibernate.engine.Cascade.cascadeProperty
1Web pages
ObjectDeletedExceptionCascade.cascadeProperty1

ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion() has thrown a NullPointerException

java.lang.NullPointerException
1 frames hidden
org.hibernate.engine.ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion
1Web pages
NullPointerExceptionActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion1

ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion() has thrown a NullPointerException

java.lang.NullPointerException
8 frames hidden
org.hibernate.engine.ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion
1Web pages
NullPointerExceptionActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion1
Nothing to list here.
Nothing to list here.
Nothing to list here.