You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2018/07/30 16:58:00 UTC
[jira] [Commented] (MPOM-204) Getting INSTANCE error while running
maven build using POM
[ https://issues.apache.org/jira/browse/MPOM-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562145#comment-16562145 ]
Robert Scholte commented on MPOM-204:
-------------------------------------
This means that you're using a different version of {{org.apache.http.conn.ssl.SSLConnectionSocketFactory}} then originally used by {{HttpWebConnection}}.
Maybe you have multiple versions of SSLConnectionSocketFactory on your classpath, or an older/newer version of the dependency containing this class (probably http-client).
> Getting INSTANCE error while running maven build using POM
> ----------------------------------------------------------
>
> Key: MPOM-204
> URL: https://issues.apache.org/jira/browse/MPOM-204
> Project: Maven POMs
> Issue Type: Test
> Components: maven
> Reporter: Jagan
> Priority: Major
> Labels: test
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)