mmhh
mmhh

Reputation: 1

Getting io.github.bonigarcia.wdm.config.WebDriverManagerException: java.net.SocketException: Connection reset while running automated tests Jenkins

17:32:12 io.github.bonigarcia.wdm.config.WebDriverManagerException: java.net.SocketException: Connection reset
17:32:12    at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:1414)
17:32:12    at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1189)
17:32:12    at io.github.bonigarcia.wdm.WebDriverManager.fallback(WebDriverManager.java:1430)
17:32:12    at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:1408)
17:32:12    at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1189)
17:32:12    at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:426)
17:32:12    at com.AT.base.WebDriverFactory.createFirefoxProfile(WebDriverFactory.java:141)
17:32:12    at com.AT.base.WebDriverFactory.createInstance(WebDriverFactory.java:62)
17:32:12    at com.AT.base.BaseTest.setupWebDriver(BaseTest.java:253)
17:32:12    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:32:12    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
17:32:12    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:32:12    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
17:32:12    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
17:32:12    at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:62)
17:32:12    at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:340)
17:32:12    at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:294)
17:32:12    at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:176)
17:32:12    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:122)
17:32:12    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
17:32:12    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
17:32:12    at java.base/java.lang.Thread.run(Thread.java:834)
17:32:12 Caused by: java.net.SocketException: Connection reset
17:32:13    at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
17:32:13    at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
17:32:13    at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484)
17:32:13    at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478)
17:32:13    at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
17:32:13    at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
17:32:13    at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1383)
17:32:13    at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1296)
17:32:13    at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:416)
17:32:13    at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:388)
17:32:13    at org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory.executeHandshake(SSLConnectionSocketFactory.java:303)
17:32:13    at org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:275)
17:32:13    at org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:251)
17:32:13    at org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:181)
17:32:13    at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:447)
17:32:13    at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:162)
17:32:13    at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:172)
17:32:13    at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:142)
17:32:13    at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
17:32:13    at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:192)
17:32:13    at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
17:32:13    at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:96)
17:32:13    at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
17:32:13    at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:152)
17:32:13    at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
17:32:13    at org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:115)
17:32:13    at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
17:32:13    at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:170)
17:32:13    at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:87)
17:32:13    at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:55)
17:32:13    at org.apache.hc.client5.http.classic.HttpClient.executeOpen(HttpClient.java:183)
17:32:13    at io.github.bonigarcia.wdm.online.HttpClient.execute(HttpClient.java:157)
17:32:13    at io.github.bonigarcia.wdm.online.Downloader.downloadAndExtract(Downloader.java:140)
17:32:13    at io.github.bonigarcia.wdm.online.Downloader.download(Downloader.java:92)
17:32:13    at io.github.bonigarcia.wdm.WebDriverManager.download(WebDriverManager.java:1272)
17:32:13    at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1183)
17:32:13    ... 20 more

I have configured chromedriver.exe file and executed in Jenkins , its perfectly working but via webdrivermanager throwing exception

Upvotes: 0

Views: 292

Answers (0)

Related Questions