org.hibernate.PropertyValueException: not-null property references a null or transient value: com.wipro.sms.automatedwsr.wsr.model.Task.wsrId

coderanch.com | 4 months ago
  1. 0

    org.hibernate.PropertyValueException: not-null property references a null or transient value: (Object Relational Mapping forum at Coderanch)

    coderanch.com | 4 months ago
    org.hibernate.PropertyValueException: not-null property references a null or transient value: com.wipro.sms.automatedwsr.wsr.model.Task.wsrId
  2. 0

    org.hibernate.PropertyValueException: not-null property references a null or transient value: (Object Relational Mapping forum at Coderanch)

    coderanch.com | 4 months ago
    org.hibernate.PropertyValueException: not-null property references a null or transient value: com.wipro.sms.automatedwsr.wsr.model.Task.wsrId
  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

    Hibernate常见错误 —核心网络

    netfoucs.com | 9 months ago
    org.hibernate.PropertyValueException: not-null property references a null or transient value: com.xxx.yyy.company
  6. 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

    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: com.wipro.sms.automatedwsr.wsr.model.Task.wsrId

      at junit.framework.TestResult$1.protect()
    2. JUnit
      TestCase.run
      1. junit.framework.TestResult$1.protect(TestResult.java:106)
      2. junit.framework.TestResult.runProtected(TestResult.java:124)
      3. junit.framework.TestResult.run(TestResult.java:109)
      4. junit.framework.TestCase.run(TestCase.java:118)
      4 frames
    3. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
      2. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      6 frames