Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
https://travis-ci.org/github/jojochuang/hadoop-submarine/jobs/677495948#L13745
2020-04-21 00:32:04,910 INFO [main]: integration.dataIT (dataIT.java:startUp(36)) - [Testcase]: dataIT [1587429124.918][SEVERE]: bind() failed: Cannot assign requested address (99) Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 32368 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. 2020-04-21 00:32:05,056 ERROR [main]: submarine.WebDriverManager (WebDriverManager.java:getWebDriver(51)) - Exception in WebDriverManager while ChromeDriver org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T18:33:54.468Z' System info: host: 'localhost', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1055-gcp', java.version: '1.8.0_242' Driver info: driver.version: ChromeDriver remote stacktrace: #0 0x5648330f85b9 <unknown> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57) at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104) at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958) at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:142) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157) at org.apache.submarine.ChromeWebDriverProvider.createWebDriver(ChromeWebDriverProvider.java:100) at org.apache.submarine.WebDriverManager.generateWebDriver(WebDriverManager.java:112) at org.apache.submarine.WebDriverManager.getWebDriver(WebDriverManager.java:49) at org.apache.submarine.integration.dataIT.startUp(dataIT.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107) at org.testng.TestRunner.privateRun(TestRunner.java:758) at org.testng.TestRunner.run(TestRunner.java:613) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1170) at org.testng.TestNG.runSuitesLocally(TestNG.java:1095) at org.testng.TestNG.run(TestNG.java:1007) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:204) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:107) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:112) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 26530 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429125.124][SEVERE]: bind() failed: Cannot assign requested address (99) 2020-04-21 00:32:05,140 ERROR [main]: submarine.WebDriverManager (WebDriverManager.java:getWebDriver(60)) - Exception in WebDriverManager while FireFox Driver org.openqa.selenium.SessionNotCreatedException: session not created: No matching capabilities found Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T18:33:54.468Z' System info: host: 'localhost', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1055-gcp', java.version: '1.8.0_242' Driver info: driver.version: FirefoxDriver remote stacktrace: #0 0x56207bd8d5b9 <unknown> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57) at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104) at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958) at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:142) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120) at org.apache.submarine.FirefoxWebDriverProvider.createWebDriver(FirefoxWebDriverProvider.java:135) at org.apache.submarine.WebDriverManager.generateWebDriver(WebDriverManager.java:112) at org.apache.submarine.WebDriverManager.getWebDriver(WebDriverManager.java:58) at org.apache.submarine.integration.dataIT.startUp(dataIT.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:551) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107) at org.testng.TestRunner.privateRun(TestRunner.java:758) at org.testng.TestRunner.run(TestRunner.java:613) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1170) at org.testng.TestNG.runSuitesLocally(TestNG.java:1095) at org.testng.TestNG.run(TestNG.java:1007) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:204) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:107) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:112) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) 2020-04-21 00:32:05,147 INFO [main]: integration.interpreterIT (interpreterIT.java:startUp(37)) - [Testcase]: interpreterIT Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 10790 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429125.160][SEVERE]: bind() failed: Cannot assign requested address (99) Apr 21, 2020 12:32:05 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1587429125.518][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429125.758][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429127.267][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429127.903][SEVERE]: Timed out receiving message from renderer: 0.100 2020-04-21 00:32:08,124 INFO [main]: integration.interpreterIT (interpreterIT.java:workspaceNavigation(49)) - Login 2020-04-21 00:32:10,296 INFO [main]: integration.homeIT (homeIT.java:startUp(41)) - [Testcase]: homeIT Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 15871 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429130.303][SEVERE]: bind() failed: Cannot assign requested address (99) Apr 21, 2020 12:32:10 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1587429130.658][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429130.921][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429132.437][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429133.059][SEVERE]: Timed out receiving message from renderer: 0.100 2020-04-21 00:32:13,250 INFO [main]: integration.homeIT (homeIT.java:homePagination(53)) - Login 2020-04-21 00:32:14,476 INFO [main]: integration.homeIT (homeIT.java:homePagination(59)) - Pagination 2020-04-21 00:32:15,225 INFO [main]: integration.jobIT (jobIT.java:startUp(37)) - [Testcase]: jobIT Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 29664 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429135.233][SEVERE]: bind() failed: Cannot assign requested address (99) Apr 21, 2020 12:32:15 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1587429135.599][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429135.813][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429137.372][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429137.991][SEVERE]: Timed out receiving message from renderer: 0.100 2020-04-21 00:32:18,193 INFO [main]: integration.jobIT (jobIT.java:workspaceNavigation(49)) - Login 2020-04-21 00:32:20,650 INFO [main]: integration.registerIT (registerIT.java:startUp(38)) - [Testcase]: registerIT Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 32320 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429140.660][SEVERE]: bind() failed: Cannot assign requested address (99) Apr 21, 2020 12:32:20 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1587429141.022][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429141.288][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429142.773][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429143.439][SEVERE]: Timed out receiving message from renderer: 0.100 2020-04-21 00:32:23,666 INFO [main]: integration.registerIT (registerIT.java:registerFrontEndInvalidTest(50)) - Navigate from Login page to Registration page 2020-04-21 00:32:55,765 INFO [main]: integration.teamIT (teamIT.java:startUp(37)) - [Testcase]: teamIT Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 25762 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429175.783][SEVERE]: bind() failed: Cannot assign requested address (99) Apr 21, 2020 12:32:55 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1587429176.176][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429176.418][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429177.931][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429178.579][SEVERE]: Timed out receiving message from renderer: 0.100 2020-04-21 00:32:58,772 INFO [main]: integration.teamIT (teamIT.java:teamTest(49)) - Login 2020-04-21 00:33:04,788 INFO [main]: integration.departmentIT (departmentIT.java:startUp(38)) - [Testcase]: departmentIT Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 23844 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1587429184.797][SEVERE]: bind() failed: Cannot assign requested address (99) Apr 21, 2020 12:33:04 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C [1587429185.176][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429185.533][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429187.037][SEVERE]: Timed out receiving message from renderer: 0.100 [1587429187.648][SEVERE]: Timed out receiving message from renderer: 0.100 2020-04-21 00:33:07,868 INFO [main]: integration.departmentIT (departmentIT.java:dataNavigation(50)) - Login Tests run: 15, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 89.593 sec <<< FAILURE! - in TestSuite startUp(org.apache.submarine.integration.dataIT) Time elapsed: 3.944 sec <<< FAILURE! java.lang.NullPointerException: null at org.apache.submarine.WebDriverManager.getWebDriver(WebDriverManager.java:73) at org.apache.submarine.integration.dataIT.startUp(dataIT.java:37) Results : Failed tests: dataIT.startUp:37 ยป NullPointer Tests run: 15, Failures: 1, Errors: 0, Skipped: 2
The test failed to initialize neither ChromeWebDriverProvider and FirefoxWebDriverProvider. It should simply abort instead of catching the exception and continue.
Additionally, it should retry a few more times before abort.