AnsweredAssumed Answered

Class files are conflicting in two versions of same jar file while test case execution

Question asked by TechieSankar on Jun 10, 2016

Hi All,

 

I have two test cases  , Java Script Step and Web Service  Execution Step (WSDL) one after another. Below is the details of the issues that I am facing,

1) JavaScript Step ( Contains code for reading Outlook mail using Exchange Web Service(EWS) API - all the supported jar files are pre-loaded using LISA_PRE_CLASSPATH.) and Verified in Workstation.log fiels in Lisa_Temp folder to overcome the overriding issues with already another version of jar files are there Lisa Workstation.

2) Web Service Execution test case (Contains a WSDL with an operation which points to test environment and fetches some data ). Getting error while executing this because of version issues.

 

Error While Execution of WSDL Step, along with Mail API :

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

| 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)

 

 

 

Key Issues identified:

  • EWS API referring a class in httpclient-4.4.1 jar file. And  another version of jar is ther in Lisa9\lib\shared\httpclient-4.3.6.jar. Web Service Execution Step is referring class in httpclient-4.3.6.jar file which is lower version than that mail API is referring. This two versions are conflicting each other.

 

Can someone help in this to resolve the issue.  Screen shot attache

Attachments

Outcomes