Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. AbstractSaveEventListener.saveWithGeneratedId() has thrown a PropertyValueException
    Hibernate Core
    6
    6
    0
  2. Not-null constraint violation
    Hibernate Core
    15
    10
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.hibernate.PropertyValueException: not-null property references a null or transient value: net.shopxx.entity.Bom.member
    at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:103)
    at org.hibernate.action.internal.AbstractEntityInsertAction.nullifyTransientReferencesIfNotAlready(AbstractEntityInsertAction.java:132)
    at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:69)
    at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:377)
15 frames hidden

Solution

Mohd Salauddin2 months ago

Tried to save an entity which has null value on a field with @Nullable = false on it. You either set @Nullable = true or make sure that the field is not null on write.

External results for this pattern (10)

  1. f1gjamvia GitHub2 months ago
    Exception running workflow
    Show stack trace
  2. f1gjamvia GitHub2 months ago
    Exception running workflow
    Show stack trace
  3. bharathvia Stack Overflow3 months ago
    not-null property references a null or transient value : com.rasvek.cms.entity.State.country
    Show stack trace
  4. Unknown authorvia Stack Overflow3 months ago
    not-null property references a null or transient value : com.mad.app.domain.DemandLedgerMap.demandLedger; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value : com.mad.app.domain.DemandLedgerMap.demandLedger
    Show stack trace
  5. bharathvia Stack Overflow4 months ago
    not-null property references a null or transient value : com.rasvek.cg.entity.FeeTermDates.feeTerms
    Show stack trace
  6. Daniel Kayiwavia JIRA4 months ago
    not-null property references a null or transient value : org.openmrs.AllergyReaction.allergy
    Show stack trace
  7. not-null property references a null or transient value : com.htss.market.dao.Seller.companyType; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value : com.htss.market.dao.Seller.companyType
    Show stack trace
  8. varunkrvia Stack Overflow4 months ago
    not-null property references a null or transient value : my.app.DB.models.People.job
    Show stack trace
  9. Jeremy Carnusvia Hibernate JIRA4 months ago
    not-null property references a null or transient value :
    Show stack trace
  10. zhouyanmingvia Hibernate JIRA4 months ago
    not-null property references a null or transient value : org.hibernate.bugs.Person.createDate
    Show stack trace