Service Virtualization

 View Only
  • 1.  Creating Custom Filter and then getting error at runtime Exception executing Step: java.lang.RuntimeException: State key value cannot be null

    Posted Jun 18, 2019 05:20 AM
    Edited by av1410 Jun 18, 2019 05:48 AM
    I am creating a custom filter and i am getting the below error




    ============================================================================| Exception: ============================================================================| Step:        Output Log Message----------------------------------------------------------------------------| Message:     java.lang.RuntimeException: State key value cannot be null----------------------------------------------------------------------------| Trapped Exception: State key value cannot be null| Trapped Message:   java.lang.RuntimeException: State key value cannot be null----------------------------------------------------------------------------STACK TRACEjava.lang.RuntimeException: State key value cannot be null at com.abc.lisa.ext.filter.CreateNewProperty.subPostFilter(CreateNewProperty.java:67) at com.itko.lisa.test.FilterBaseImpl.subFilter(FilterBaseImpl.java:148) at com.itko.lisa.test.FilterBaseImpl.postFilter(FilterBaseImpl.java:126) at com.itko.lisa.test.TestNode.doFilters(TestNode.java:1554) at com.itko.lisa.test.TestNode.doPostFilters(TestNode.java:1503) at com.itko.lisa.test.TestNode.executeNode(TestNode.java:998) at com.itko.lisa.test.TestCase.execute(TestCase.java:1297) at com.itko.lisa.test.TestCase.execute(TestCase.java:1198) at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183) at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1085) at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:72) at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:992) at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.IllegalArgumentException: State key value cannot be null at com.itko.lisa.test.TestExec.setStateValue(TestExec.java:1537) at com.itko.lisa.test.TestExec.setStateValue(TestExec.java:1496) at com.abc.lisa.ext.filter.CreateNewProperty.subPostFilter(CreateNewProperty.java:62) ... 13 more============================================================================

    This i am getting in subpost filter part.

    basically at testExec.setStateValue

    Need help!!!!


  • 2.  RE: Creating Custom Filter and then getting error at runtime Exception executing Step: java.lang.RuntimeException: State key value cannot be null

    Posted Jun 21, 2019 06:01 AM
    @av1410 Can you attach your code here please ? ​

    ------------------------------
    Regards
    Rahul V
    ------------------------------



  • 3.  RE: Creating Custom Filter and then getting error at runtime Exception executing Step: java.lang.RuntimeException: State key value cannot be null
    Best Answer

    Posted Jun 21, 2019 07:50 AM
    Thanks man, i have resolved it.

    It was related to some compiling issues.