org.hibernate.PropertyValueException: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm

Sakai JIRA | Peter Dietz | 1 year ago
  1. 0

    Checksum checker errors out: https://www.irccloud.com/pastebin/r67glKqq/ Code is/was: https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/dao/impl/BitstreamDAOImpl.java#L68 Criteria criteria = createCriteria(context, Bitstream.class).add(Subqueries.propertyNotIn("id", DetachedCriteria.forClass(MostRecentChecksum.class))); I've changed that to: DetachedCriteria d = DetachedCriteria.forClass(MostRecentChecksum.class, "mrc"); d.setProjection(Projections.projectionList().add(Projections.property("mrc.bitstream"))); Criteria criteria = createCriteria(context, Bitstream.class, "b") .add(Subqueries.propertyNotIn("b.id", d)); And that doesn't error out. (PR coming, once I get it all successful). However, I get another error, that I don't have a solution to yet: /dspace/bin/dspace checker -v Exception: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm org.hibernate.PropertyValueException: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm 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.AbstractEntityInsertAction.makeEntityManaged(AbstractEntityInsertAction.java:141) at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:235) at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:209) at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:152) at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:329) at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:286) at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:192) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:135) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:208) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:151) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:78) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:772) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:746) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:750) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352) at com.sun.proxy.$Proxy37.persist(Unknown Source) at org.dspace.core.AbstractHibernateDAO.create(AbstractHibernateDAO.java:30) at org.dspace.checker.MostRecentChecksumServiceImpl.updateMissingBitstreams(MostRecentChecksumServiceImpl.java:110) at org.dspace.checker.CheckerCommand.process(CheckerCommand.java:123) at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:231) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

    Sakai JIRA | 1 year ago | Peter Dietz
    org.hibernate.PropertyValueException: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm
  2. 0

    Checksum checker errors out: https://www.irccloud.com/pastebin/r67glKqq/ Code is/was: https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/dao/impl/BitstreamDAOImpl.java#L68 Criteria criteria = createCriteria(context, Bitstream.class).add(Subqueries.propertyNotIn("id", DetachedCriteria.forClass(MostRecentChecksum.class))); I've changed that to: DetachedCriteria d = DetachedCriteria.forClass(MostRecentChecksum.class, "mrc"); d.setProjection(Projections.projectionList().add(Projections.property("mrc.bitstream"))); Criteria criteria = createCriteria(context, Bitstream.class, "b") .add(Subqueries.propertyNotIn("b.id", d)); And that doesn't error out. (PR coming, once I get it all successful). However, I get another error, that I don't have a solution to yet: /dspace/bin/dspace checker -v Exception: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm org.hibernate.PropertyValueException: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm 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.AbstractEntityInsertAction.makeEntityManaged(AbstractEntityInsertAction.java:141) at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:235) at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:209) at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:152) at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:329) at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:286) at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:192) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:135) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:208) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:151) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:78) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:772) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:746) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:750) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352) at com.sun.proxy.$Proxy37.persist(Unknown Source) at org.dspace.core.AbstractHibernateDAO.create(AbstractHibernateDAO.java:30) at org.dspace.checker.MostRecentChecksumServiceImpl.updateMissingBitstreams(MostRecentChecksumServiceImpl.java:110) at org.dspace.checker.CheckerCommand.process(CheckerCommand.java:123) at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:231) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

    Sakai JIRA | 1 year ago | Peter Dietz
    org.hibernate.PropertyValueException: not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm
  3. 0

    Hibernate exception org.hibernate.PropertyValueException: not-null property references a null or transient value

    Stack Overflow | 2 years ago
    org.hibernate.PropertyValueException: not-null property references a null or transient value : com.sample.Answer.question
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to save entity in database when field mapping a foreign key is null

    Stack Overflow | 2 years ago | Kleber Mota
    org.hibernate.PropertyValueException: not-null property references a null or transient value : com.spring.loja.model.pagina.persistence.model.Pagina.nome
  6. 0

    form:select don't save value in the database

    Stack Overflow | 2 years ago | Kleber Mota
    org.hibernate.PropertyValueException: not-null property references a null or transient value : com.spring.loja.model.pagina.persistence.model.Pagina.nome

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.PropertyValueException

      not-null property references a null or transient value: org.dspace.checker.MostRecentChecksum.checksumAlgorithm

      at org.hibernate.engine.internal.Nullability.checkNullability()
    2. Hibernate
      SessionImpl.persist
      1. org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:103)
      2. org.hibernate.action.internal.AbstractEntityInsertAction.nullifyTransientReferencesIfNotAlready(AbstractEntityInsertAction.java:132)
      3. org.hibernate.action.internal.AbstractEntityInsertAction.makeEntityManaged(AbstractEntityInsertAction.java:141)
      4. org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:235)
      5. org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:209)
      6. org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:152)
      7. org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:329)
      8. org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:286)
      9. org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:192)
      10. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:135)
      11. org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:208)
      12. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:151)
      13. org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:78)
      14. org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:772)
      15. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:746)
      16. org.hibernate.internal.SessionImpl.persist(SessionImpl.java:750)
      16 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. Hibernate
      ThreadLocalSessionContext$TransactionProtectionWrapper.invoke
      1. org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352)
      1 frame
    5. com.sun.proxy
      $Proxy37.persist
      1. com.sun.proxy.$Proxy37.persist(Unknown Source)
      1 frame
    6. DSpace Kernel :: API and Implementation
      ChecksumChecker.main
      1. org.dspace.core.AbstractHibernateDAO.create(AbstractHibernateDAO.java:30)
      2. org.dspace.checker.MostRecentChecksumServiceImpl.updateMissingBitstreams(MostRecentChecksumServiceImpl.java:110)
      3. org.dspace.checker.CheckerCommand.process(CheckerCommand.java:123)
      4. org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:231)
      4 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    8. DSpace Kernel :: API and Implementation
      ScriptLauncher.main
      1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
      2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
      2 frames