Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53676

Error I/O exception (java.net.SocketException) while executing selenium scripts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • OS : windows 7
      Google Chrome is up to date
      Version 69.0.3497.100 (Official Build) (64-bit)

      Jenkins ver. 2.141

      am trying to execute tests using JENKINS.
      Chrome Browser is getting opened but nothing is happening on the browser.
      am observing the below error's on JENKIN's console
       

       

      [16:30:34] cucumber/proc_0: Sep 20, 2018 4:30:34 PM org.apache.http.impl.execchain.RetryExec execute
      [16:30:34] cucumber/proc_0: INFO: I/O exception (java.net.SocketException) caught when processing request to {}->
      http://localhost:22025
      : Connection reset
      [16:30:34] cucumber/proc_0: Sep 20, 2018 4:30:34 PM org.apache.http.impl.execchain.RetryExec execute
      [16:30:34] cucumber/proc_0: INFO: Retrying request to {}->
      http://localhost:22025
       [16:30:36] cucumber/proc_0: Screenshot could not be generated :
      [16:30:36] cucumber/proc_0: org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:22025 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
      [16:30:36] cucumber/proc_0: Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
      [16:30:36] cucumber/proc_0: System info: host: 'PNI6W2259', ip: '146.122.153.37', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'
      [16:30:36] cucumber/proc_0: Driver info: driver.version: RemoteWebDriver
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:694)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:382)
      [16:30:36] cucumber/proc_0: at com.siemens.splm.client.selenium.framework.SeleniumUtil.getScreenShot(SeleniumUtil.java:721)
      [16:30:36] cucumber/proc_0: at com.siemens.splm.client.cucumber.stepdef.cfx.BaseStepdefs.tearDown(BaseStepdefs.java:71)
      [16:30:36] cucumber/proc_0: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [16:30:36] cucumber/proc_0: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [16:30:36] cucumber/proc_0: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.lang.reflect.Method.invoke(Unknown Source)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.Utils$1.call(Utils.java:40)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.Timeout.timeout(Timeout.java:16)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.Utils.invoke(Utils.java:34)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:206)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      [16:30:36] cucumber/proc_0: at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
      [16:30:36] cucumber/proc_0: at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
      [16:30:36] cucumber/proc_0: at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      [16:30:36] cucumber/proc_0: at cucumber.api.junit.Cucumber.run(Cucumber.java:100)
      [16:30:36] cucumber/proc_0: at org.junit.runners.Suite.runChild(Suite.java:127)
      [16:30:36] cucumber/proc_0: at org.junit.runners.Suite.runChild(Suite.java:26)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [16:30:36] cucumber/proc_0: at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      [16:30:36] cucumber/proc_0: at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      [16:30:36] cucumber/proc_0: at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      [16:30:36] cucumber/proc_0: at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
      [16:30:36] cucumber/proc_0: at org.junit.runner.JUnitCore.runMain(JUnitCore.java:96)
      [16:30:36] cucumber/proc_0: at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:47)
      [16:30:36] cucumber/proc_0: at org.junit.runner.JUnitCore.main(JUnitCore.java:40)
      [16:30:36] cucumber/proc_0: Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:22025 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:139)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:87)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:161)
      [16:30:36] cucumber/proc_0: at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
      [16:30:36] cucumber/proc_0: ... 50 more
      [16:30:36] cucumber/proc_0: Caused by: java.net.ConnectException: Connection refused: connect
      [16:30:36] cucumber/proc_0: at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
      [16:30:36] cucumber/proc_0: at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.net.PlainSocketImpl.connect(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.net.SocksSocketImpl.connect(Unknown Source)
      [16:30:36] cucumber/proc_0: at java.net.Socket.connect(Unknown Source)
      [16:30:36] cucumber/proc_0: at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
      [16:30:36] cucumber/proc_0: at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
      [16:30:36] cucumber/proc_0: ... 63 more

            janario Janario Oliveira
            rajguruatul Atul Rajguru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: