Service Virtualization

 View Only
  • 1.  Custom Filter causing Error in Data Protocol Filter

    Posted Sep 04, 2017 03:48 AM
      |   view attached

    Hi ,

     

    I have created a custom filter to export a LASTRESRESPONE (xml format) to Excel file. It is working fine as filter but it is creating problem in using Data Protocol Filter.

    I am unable to open the Data Protocol Filter while custom filter jar is in bin folder.  Once I remove the jar from bin. filter is working fine as expected.

     

    Please help me in understanding what I am missing in custom filter.

     

    Getting below error in workstation.log:

    [ProcDlgThreadCallbk@7c93585c] ERROR com.itko.lisa.editor.AssertControllerBase - Cannot discover custom parameters
    java.lang.NoClassDefFoundError: eu/vahlas/json/schema/JSONSchemaProvider
     at java.lang.Class.getDeclaredConstructors0(Native Method)
     at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
     at java.lang.Class.getConstructor0(Unknown Source)
     at java.lang.Class.newInstance(Unknown Source)
     at com.itko.lisa.editor.AssertControllerBase.calcParametersForNewType(AssertControllerBase.java:235)
     at com.itko.lisa.editor.AssertControllerBase.setType(AssertControllerBase.java:410)
     at com.itko.lisa.editor.Intersections.makeControllerForTcClass(Intersections.java:152)
     at com.itko.lisa.editor.Intersections.preloadControllers(Intersections.java:127)
     at com.itko.lisa.editor.Intersections.<init>(Intersections.java:112)
     at com.itko.lisa.editor.AssertControllerBase.<clinit>(AssertControllerBase.java:60)
     at com.itko.lisa.editor.TestCaseInfo.initFromTestCase(TestCaseInfo.java:452)
     at com.itko.lisa.editor.TestCaseInfo.initFromScratchTestCase(TestCaseInfo.java:417)
     at com.itko.lisa.editor.TestCaseInfo.<init>(TestCaseInfo.java:270)
     at com.itko.lisa.editor.TestCaseInfo.createTestCaseInfo(TestCaseInfo.java:348)
     at com.itko.lisa.editor.TestCaseEditor$2.doCallback(TestCaseEditor.java:385)
     at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
     at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: eu.vahlas.json.schema.JSONSchemaProvider
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     ... 17 more

     

    PFA complete log file.

    Attachment(s)

    zip
    workstation_1.log.zip   2 KB 1 version


  • 2.  Re: Custom Filter causing Error in Data Protocol Filter

    Broadcom Employee
    Posted Sep 04, 2017 11:10 PM

    Hi Dinesh,

        Can you please try by copying this custom jar to Devtest_home/lib/shared folder and restart the workstation. 

     

    Thanks

    Srikanth Gajawada



  • 3.  Re: Custom Filter causing Error in Data Protocol Filter

    Posted Sep 06, 2017 02:53 PM

    Hi,

     

    It is working fine now, there is a issue with the custom protocol code.

     

     

    Thanks,

    Dinesh Kumar