Service Virtualization

 View Only

Trapped Exception: org.apache.http.conn.scheme.SchemeRegistry.removeOverrideHttpsScheme()V

  • 1.  Trapped Exception: org.apache.http.conn.scheme.SchemeRegistry.removeOverrideHttpsScheme()V

    Posted Jun 08, 2016 07:02 AM


    As part of our test case we need to read an email and validate the contents.To do this we have made use of exchange web service. We have placed the jars and dependent jars in hotdeploy and provided the path of these respective jars in LISA_PRE_CLASSPATH variable as part of the environmental variables of the system.On doing this we are able to call the required class within these jars and read the mail.

     

    We have set LISA_PRE_CLASSPATH =C:\Lisa9\hotdeploy\ews-java-api-2.0.jar;C:\Lisa9\lib\shared\commons-codec-1.9.jar;C:\Lisa9\lib\shared\commons-lang3-3.4.jar;C:\Lisa9\lib\shared\httpclient-4.4.1.jar;C:\Lisa9\lib\shared\httpcore-4.4.1.jar;C:\Lisa9\lib\shared\joda-time-2.8.2.jar;C:\Lisa9\hotdeploy\simpleMailRead.jar;

     

    But in addition to this we also need to make certain webservice calls using LISA web service step.We are facing the below error and not able to execute any web service step.

     

    error:

    ============================================================================

    | Exception:

    ============================================================================

    | Message:     Test Execution Stopped due to exception

    ----------------------------------------------------------------------------

    | Trapped Exception: org.apache.http.conn.scheme.SchemeRegistry.removeOverrideHttpsScheme()V

    | Trapped Message:   java.lang.NoSuchMethodError: org.apache.http.conn.scheme.SchemeRegistry.removeOverrideHttpsScheme()V

    ----------------------------------------------------------------------------

    STACK TRACE

    java.lang.NoSuchMethodError: org.apache.http.conn.scheme.SchemeRegistry.removeOverrideHttpsScheme()V

      at com.itko.lisa.ws.axis.LisaHTTPSender.postInvoke(LisaHTTPSender.java:296)

      at com.itko.lisa.ws.axis.LisaHTTPSender.invoke(LisaHTTPSender.java:276)

      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

      at org.apache.axis.client.Call.invokeEngine(Call.java:2837)

      at org.apache.axis.client.Call.invoke(Call.java:2820)

      at com.itko.lisa.ws.nx.NxWSStep.executeCall(NxWSStep.java:383)

      at com.itko.lisa.ws.nx.NxWSStep.execute(NxWSStep.java:287)

      at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)

      at com.itko.lisa.test.TestCase.execute(TestCase.java:1295)

      at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)

      at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)

      at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1057)

      at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)

      at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:964)

      at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

      at java.lang.Thread.run(Unknown Source)

    ============================================================================

     

     

     

     

      at com.itko.lisa.test.TestCase.execute(TestCase.java:1304)

      at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)

      at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)

      at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1057)

      at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)

      at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:964)

      at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

      at java.lang.Thread.run(Unknown Source)

    =========================================================================================

     

    Note: On removing the LISA_PRE_CLASSPATH cariable from system enviromental and restart CA LISA workstation , we are able to execute the web service step.

     

     

    Could you please help in understanding the reason for this error and what needs to be done to be able to execute webservice Execution (XML) step.

    Thank you.