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

    Root Cause Analysis

    1. com.wipro.sms.automatedwsr.wsr.exception.WSRException

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

      at com.wipro.sms.automatedwsr.wsr.WSRServiceImpl.addWSR()
    2. com.wipro.sms
      WSRServiceTest.addWSR
      1. com.wipro.sms.automatedwsr.wsr.WSRServiceImpl.addWSR(WSRServiceImpl.java:46)
      2. com.wipro.sms.automatedwsr.wsr.WSRServiceTest.addWSR(WSRServiceTest.java:47)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. JUnit
      TestCase.runTest
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      1 frame