Service Virtualization

 View Only
Expand all | Collapse all

Exception in getAvailableCalls() while running the test for API request with postman and DevTest So

  • 1.  Exception in getAvailableCalls() while running the test for API request with postman and DevTest So

    Posted May 16, 2024 11:43 AM

    Hello,

    I have added some API calls to the DevTest Solution desktop , but when running the test it gives me below exception, however in Postman I get successful result, any idea?

    ============================================================================
    | Exception: 
    ============================================================================
    | Message:     Exception in getAvailableCalls() for  SerialNum=35, of class java.util.ArrayList simple=false iscomp=true array=false value=[TransientResponse{binary=false, body={
      "consentId": "FKKXbaP56DlyYH3i8_w2itksJl0="
    }, charset=IBM037, metaData=HTTP-Response-Code=200&HTTP-Response-Code-Text=OK&Server=LISA/Virtual-Environment-Server&Date={{=httpNow()}}&X-Powered-By=LISA/{{=lisaVersionString()}}&HTTP-Version=HTTP/1.1, transaction=null}]
    ----------------------------------------------------------------------------
    | Trapped Exception: com.thoughtworks.qdox.model.JavaMethod.setParameters([Lcom/thoughtworks/qdox/model/JavaParameter;)V
    | Trapped Message:   java.lang.NoSuchMethodError: com.thoughtworks.qdox.model.JavaMethod.setParameters([Lcom/thoughtworks/qdox/model/JavaParameter;)V
    ----------------------------------------------------------------------------
    STACK TRACE
    java.lang.NoSuchMethodError: com.thoughtworks.qdox.model.JavaMethod.setParameters([Lcom/thoughtworks/qdox/model/JavaParameter;)V
    at com.itko.util.javadoc.MethodDoc.checkForOldMethodInfoNeed(MethodDoc.java:79)
    at com.itko.util.javadoc.MethodDoc.<init>(MethodDoc.java:33)
    at com.itko.lisa.dynexec.CallAvailable.getMethodInfo(CallAvailable.java:115)
    at com.itko.lisa.dynexec.CallAvailable.toDisplayString(CallAvailable.java:185)
    at com.itko.lisa.dynexec.ComplexObj.getAvailableCalls(ComplexObj.java:389)
    at com.itko.lisa.dynexec.ComplexObjEditor.doAvailableCallList(ComplexObjEditor.java:723)
    at com.itko.lisa.dynexec.ComplexObjEditor.handleSelectionChange(ComplexObjEditor.java:567)
    at com.itko.lisa.dynexec.ComplexObjEditor.renderRealEditor(ComplexObjEditor.java:272)
    at com.itko.lisa.dynexec.ComplexObjEditor.setup(ComplexObjEditor.java:177)
    at com.itko.lisa.dynexec.ComplexObjEditor.setObject(ComplexObjEditor.java:113)
    at com.itko.lisa.dynexec.ComplexObjEditor.setObject(ComplexObjEditor.java:105)
    at com.itko.lisa.dynexec.ViewObjResult.setResult(ViewObjResult.java:90)
    at com.itko.lisa.gui.ViewResultMasterPanel.refresh(ViewResultMasterPanel.java:359)
    at com.itko.lisa.editor.WalkThruPanel.setSelectedNode(WalkThruPanel.java:707)
    at com.itko.lisa.editor.NodeListPanel$2.valueChanged(NodeListPanel.java:185)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1802)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1816)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2216)
    at com.itko.lisa.editor.NodeListPanel.moveList(NodeListPanel.java:551)
    at com.itko.lisa.editor.WalkThruPanel.executeNextNode(WalkThruPanel.java:1045)
    at com.itko.lisa.editor.WalkThruPanel$11.pulse(WalkThruPanel.java:1059)
    at com.itko.util.Pulse$3$1.run(Pulse.java:337)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    ============================================================================
    at com.itko.lisa.dynexec.ComplexObj.getAvailableCalls(ComplexObj.java:416)
    at com.itko.lisa.dynexec.ComplexObjEditor.doAvailableCallList(ComplexObjEditor.java:723)
    at com.itko.lisa.dynexec.ComplexObjEditor.handleSelectionChange(ComplexObjEditor.java:567)
    at com.itko.lisa.dynexec.ComplexObjEditor.renderRealEditor(ComplexObjEditor.java:272)
    at com.itko.lisa.dynexec.ComplexObjEditor.setup(ComplexObjEditor.java:177)
    at com.itko.lisa.dynexec.ComplexObjEditor.setObject(ComplexObjEditor.java:113)
    at com.itko.lisa.dynexec.ComplexObjEditor.setObject(ComplexObjEditor.java:105)
    at com.itko.lisa.dynexec.ViewObjResult.setResult(ViewObjResult.java:90)
    at com.itko.lisa.gui.ViewResultMasterPanel.refresh(ViewResultMasterPanel.java:359)
    at com.itko.lisa.editor.WalkThruPanel.setSelectedNode(WalkThruPanel.java:707)
    at com.itko.lisa.editor.NodeListPanel$2.valueChanged(NodeListPanel.java:185)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1802)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1816)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2216)
    at com.itko.lisa.editor.NodeListPanel.moveList(NodeListPanel.java:551)
    at com.itko.lisa.editor.WalkThruPanel.executeNextNode(WalkThruPanel.java:1045)
    at com.itko.lisa.editor.WalkThruPanel$11.pulse(WalkThruPanel.java:1059)
    at com.itko.util.Pulse$3$1.run(Pulse.java:337)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



  • 2.  RE: Exception in getAvailableCalls() while running the test for API request with postman and DevTest So

    Broadcom Employee
    Posted May 16, 2024 11:53 AM

    Please review this communities post :

    https://community.broadcom.com/question/validation-virtual-service-using-itr-mode

             Please follow the steps below and see if it helps. 

    On the workstation Machine:
    1. Quit the workstation
    2. Stop all the Devtest Services
    3. Move the file qdox-1.2.1.jar from "LISA_HOME\lib\shared" folder to a folder outside LISA_HOME
    4. Launch the Workstation and try the ITR again and see if it is solved