{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1076","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1076/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1076/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/1076","id":108283696,"number":1076,"title":"Test not run on HtmlUnitDriver using selenium 2.47.1 ClassNotFoundException: org.apache.http.conn.ssl.NoopHostnameVerifier ","user":{"login":"nikolmarku","id":8082150,"avatar_url":"https://avatars.githubusercontent.com/u/8082150?v=3","gravatar_id":"","url":"https://api.github.com/users/nikolmarku","html_url":"https://github.com/nikolmarku","followers_url":"https://api.github.com/users/nikolmarku/followers","following_url":"https://api.github.com/users/nikolmarku/following{/other_user}","gists_url":"https://api.github.com/users/nikolmarku/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolmarku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolmarku/subscriptions","organizations_url":"https://api.github.com/users/nikolmarku/orgs","repos_url":"https://api.github.com/users/nikolmarku/repos","events_url":"https://api.github.com/users/nikolmarku/events{/privacy}","received_events_url":"https://api.github.com/users/nikolmarku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T08:24:46Z","updated_at":"2015-09-25T16:26:57Z","closed_at":"2015-09-25T16:26:57Z","body":"I have updated to selenium 2.47.1 from 2.45.0\r\nand one of my test is not working \r\nit uses html unit driver\r\n--\r\nwebDriver = new HtmlUnitDriver(){\r\n            @Override protected WebClient modifyWebClient( WebClient webClient){\r\n                WebClient answer=super.modifyWebClient(webClient);\r\n                answer.addRequestHeader(headerName, headerValue);\r\n                return answer;\r\n            }\r\n        };\r\n--\r\n\r\nFix: I had to change the dependency not to use the latest selenium but use V45\r\n<dependency>\r\n            <groupId>org.seleniumhq.selenium</groupId>\r\n            <artifactId>selenium-htmlunit-driver</artifactId>\r\n            <version>2.45.0</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n---------\r\n\r\nthis looked interesting : https://issues.apache.org/jira/browse/HTTPCLIENT-1611\r\n\r\n\r\n\r\nLog:\r\n\r\njava.lang.NoClassDefFoundError: org/apache/http/conn/ssl/NoopHostnameVerifier \r\nat com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.buildSSLSocketFactory(HtmlUnitSSLConnectionSocketFactory.java:112) \r\nat com.gargoylesoftware.htmlunit.HttpWebConnection.configureHttpsScheme(HttpWebConnection.java:606) \r\nat com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient(HttpWebConnection.java:541) \r\nat com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClientBuilder(HttpWebConnection.java:496) \r\nat com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:163) \r\nat com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1316) \r\nat com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1233) \r\nat com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:341) \r\nat com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:410) \r\nat org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:512) \r\nat org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:501) \r\nat com.englishlive.tests.redirect.htmlunit.ArRedirectTest.setup(ArRedirectTest.java:26) \r\nat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \r\nat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) \r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) \r\nat java.lang.reflect.Method.invoke(Method.java:606) \r\nat org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) \r\nat org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:552) \r\nat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:215) \r\nat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:140) \r\nat org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:170) \r\nat org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104) \r\nat org.testng.TestRunner.privateRun(TestRunner.java:767) \r\nat org.testng.TestRunner.run(TestRunner.java:617) \r\nat org.testng.SuiteRunner.runTest(SuiteRunner.java:348) \r\nat org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343) \r\nat org.testng.SuiteRunner.privateRun(SuiteRunner.java:305) \r\nat org.testng.SuiteRunner.run(SuiteRunner.java:254) \r\nat org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) \r\nat org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) \r\nat org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) \r\nat org.testng.TestNG.runSuitesLocally(TestNG.java:1149) \r\nat org.testng.TestNG.run(TestNG.java:1057) \r\nat org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) \r\nat org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) \r\nat org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175) \r\nat org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125) \r\nat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \r\nat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) \r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) \r\nat java.lang.reflect.Method.invoke(Method.java:606) \r\nat com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) \r\nCaused by: java.lang.ClassNotFoundException: org.apache.http.conn.ssl.NoopHostnameVerifier \r\nat java.net.URLClassLoader$1.run(URLClassLoader.java:366) \r\nat java.net.URLClassLoader$1.run(URLClassLoader.java:355) \r\nat java.security.AccessController.doPrivileged(Native Method) \r\nat java.net.URLClassLoader.findClass(URLClassLoader.java:354) \r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:425) \r\nat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) \r\nat java.lang.ClassLoader.loadClass(ClassLoader.java:358) \r\n... 42 more "},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/143268909","html_url":"https://github.com/SeleniumHQ/selenium/issues/1076#issuecomment-143268909","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/1076","id":143268909,"user":{"login":"lukeis","id":926454,"avatar_url":"https://avatars.githubusercontent.com/u/926454?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeis","html_url":"https://github.com/lukeis","followers_url":"https://api.github.com/users/lukeis/followers","following_url":"https://api.github.com/users/lukeis/following{/other_user}","gists_url":"https://api.github.com/users/lukeis/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeis/subscriptions","organizations_url":"https://api.github.com/users/lukeis/orgs","repos_url":"https://api.github.com/users/lukeis/repos","events_url":"https://api.github.com/users/lukeis/events{/privacy}","received_events_url":"https://api.github.com/users/lukeis/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T16:26:57Z","updated_at":"2015-09-25T16:26:57Z","body":"htmlunit driver now requires httpclient 4.5, you likely have that dependency set to a lower version in your project or another dependency is using a lower version. Please check your maven dependency graph (or if not using maven, check the jars you are including) and update org.apache.httpcomponents  httpclient to 4.5"}}