You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Erla J Reddy <er...@in.ibm.com> on 2018/07/30 12:44:55 UTC
HI, need help on following error
Hi all,
I created Maven project and and added Headless browser selenium script.
I created testNG suit for that script.
Also added required plugins and dependencies in POM.xml file.
But while running as maven build getting below error
[RemoteTestNG] detected TestNG version 6.9.9
[TestNG] Running:
C:\Users\IBM_ADMIN\git\JaganMavenPL\src\selenium\resources\testng.xml
Exception in thread "Thread-1" java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>
(SSLConnectionSocketFactory.java:146)
at com.gargoylesoftware.htmlunit.HttpWebConnection.configureHttpsScheme
(HttpWebConnection.java:625)
at com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient
(HttpWebConnection.java:557)
at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClientBuilder
(HttpWebConnection.java:518)
at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse
(HttpWebConnection.java:170)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection
(WebClient.java:1397)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse
(WebClient.java:1315)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:394)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:315)
at org.openqa.selenium.htmlunit.HtmlUnitDriver.get
(HtmlUnitDriver.java:683)
at org.openqa.selenium.htmlunit.HtmlUnitDriver.lambda$get$8
(HtmlUnitDriver.java:670)
at org.openqa.selenium.htmlunit.HtmlUnitDriver.lambda$runAsync$0
(HtmlUnitDriver.java:424)
at java.lang.Thread.run(Thread.java:748)
Could any one help on this how to resolve.
Thanks & Regards,
JAGAN MOHAN REDDY.E
IBM India Private Limited,
1st Floor-476,
Ozone 3, SP Infocity,
Phursungi , Pune - 412308
Ext:- 020-40623476.
Mobile:- 09225619245.
Emailid:- erlareddy@in.ibm.com.