-
-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There was an error managing geckodriver (latest version) #1408
Comments
I have just tried WebDriverManager 5.9.2 to manage geckodriver and it seems to work nicely:
It seems your resolution cache is corrupted for some reason:
|
@bonigarcia The tests are running in a docker container triggered from a jenkins pipeline, so it's getting built from scratch each time. I've added the clearResolutionCache line and got kinda the same error. Note that this is only happening when trying to run on firefox. On Chrome there is no such issue. 22:16:19 io.github.bonigarcia.wdm.config.WebDriverManagerException: Exception reading resolution cache as a properties file |
Another weird issue is that when I run the tests locally I get another error: Testing started at 11:10 ... java.lang.NoSuchMethodError: 'org.apache.commons.compress.archivers.tar.TarArchiveEntry org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextEntry()' line 59 is: |
13:17:31 446 [main] WARN i.g.bonigarcia.wdm.WebDriverManager - There was an error managing geckodriver (latest version) (Exception reading resolution cache as a properties file) ... trying again using latest driver stored in cache
13:17:31 456 [main] ERROR i.g.bonigarcia.wdm.WebDriverManager - There was an error managing geckodriver (latest version) (Exception reading resolution cache as a properties file)
13:17:31 io.github.bonigarcia.wdm.config.WebDriverManagerException: Exception reading resolution cache as a properties file
13:17:31 at io.github.bonigarcia.wdm.cache.ResolutionCache.(ResolutionCache.java:86)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.lambda$getResolutionCache$2(WebDriverManager.java:1661)
13:17:31 at java.util.Optional.orElseGet(Optional.java:267)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.getResolutionCache(WebDriverManager.java:1660)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.useResolutionCacheWithKey(WebDriverManager.java:1361)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.getValueFromResolutionCache(WebDriverManager.java:1306)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.resolveDriverVersion(WebDriverManager.java:1201)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1155)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.fallback(WebDriverManager.java:1437)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:1415)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1190)
13:17:31 at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:427)
13:17:31 at selenium.automation.project.base.WebDriverUtil.initWebDriver(WebDriverUtil.java:59)
13:17:31 at selenium.automation.project.steps.hooks.Hook.InitializeTest(Hook.java:38)
13:17:31 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:17:31 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:17:31 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:17:31 at java.lang.reflect.Method.invoke(Method.java:498)
13:17:31 at cucumber.runtime.Utils$1.call(Utils.java:26)
13:17:31 at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:17:31 at cucumber.runtime.Utils.invoke(Utils.java:20)
13:17:31 at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:17:31 at cucumber.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:16)
13:17:31 at cucumber.runner.TestStep.executeStep(TestStep.java:63)
13:17:31 at cucumber.runner.TestStep.run(TestStep.java:49)
13:17:31 at cucumber.runner.TestCase.run(TestCase.java:40)
13:17:31 at cucumber.runner.Runner.runPickle(Runner.java:40)
13:17:31 at cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:146)
13:17:31 at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)
13:17:31 at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)
13:17:31 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
13:17:31 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
13:17:31 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
13:17:31 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
13:17:31 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
13:17:31 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
13:17:31 at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)
13:17:31 at cucumber.api.junit.Cucumber.runChild(Cucumber.java:124)
13:17:31 at cucumber.api.junit.Cucumber.runChild(Cucumber.java:65)
13:17:31 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
13:17:31 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
13:17:31 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
13:17:31 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
13:17:31 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
13:17:31 at cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:133)
13:17:31 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
13:17:31 at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
13:17:31 at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
13:17:31 at org.testng.junit.JUnit4TestRunner.start(JUnit4TestRunner.java:82)
13:17:31 at org.testng.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:70)
13:17:31 at org.testng.TestRunner$1.run(TestRunner.java:570)
13:17:31 at org.testng.TestRunner.runJUnitWorkers(TestRunner.java:717)
13:17:31 at org.testng.TestRunner.privateRunJUnit(TestRunner.java:601)
13:17:31 at org.testng.TestRunner.run(TestRunner.java:502)
13:17:31 at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
13:17:31 at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
13:17:31 at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
13:17:31 at org.testng.SuiteRunner.run(SuiteRunner.java:364)
13:17:31 at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
13:17:31 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
13:17:31 at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
13:17:31 at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
13:17:31 at org.testng.TestNG.runSuites(TestNG.java:1049)
13:17:31 at org.testng.TestNG.run(TestNG.java:1017)
13:17:31 at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)
13:17:31 at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
13:17:31 at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
13:17:31 at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)
13:17:31 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
13:17:31 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
13:17:31 at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
13:17:31 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
13:17:31 Caused by: java.io.IOException: No such file or directory
13:17:31 at java.io.UnixFileSystem.createFileExclusively(Native Method)
13:17:31 at java.io.File.createNewFile(File.java:1023)
13:17:31 at io.github.bonigarcia.wdm.cache.ResolutionCache.(ResolutionCache.java:75)
13:17:31 ... 71 common frames omitted
Using latest version of WebdriverManager: 5.9.2
The text was updated successfully, but these errors were encountered: