net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver

Java.net JIRA | gareth.bragg | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I'm receiving an UnsupportedDriverException (see below) when running my tests as part of an aggregator project on our CI system. From viewing the test logs, this exception occurs for each implemented test step, as opposed to when the test runner is first set-up. This doesn't seem to happen when the test module is built individually on CI, nor when I build locally (as a single or multi-module build). Unfortunately, that means I cannot provide any sample code to reproduce the problem. {quote} 2013-02-20 11:26:52.775 ERROR WebDriverFacade: FAILED TO CREATE NEW DRIVER INSTANCE class org.openqa.selenium.chrome.ChromeDriver: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:152) at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:87) at net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:82) at net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:54) at net.thucydides.core.pages.Pages.browserIsHeadless(Pages.java:145) at net.thucydides.core.pages.Pages.openHeadlessDriverIfNotOpen(Pages.java:130) at net.thucydides.core.pages.Pages.openBrowserIfRequiredFor(Pages.java:123) at net.thucydides.core.pages.Pages.currentPageAt(Pages.java:111) at com.onespatial.ms.plan.steps.PlannerUserSteps.onPlanPage(PlannerUserSteps.java:133) at com.onespatial.ms.plan.steps.PlannerUserSteps.saveJob(PlannerUserSteps.java:91) at com.onespatial.ms.plan.steps.PlannerUserSteps$$EnhancerByCGLIB$$fe762261.CGLIB$saveJob$0(<generated>) at com.onespatial.ms.plan.steps.PlannerUserSteps$$EnhancerByCGLIB$$fe762261$$FastClassByCGLIB$$14544c8e.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at net.thucydides.core.steps.StepInterceptor.invokeMethod(StepInterceptor.java:292) at net.thucydides.core.steps.StepInterceptor.runSkippedMethod(StepInterceptor.java:142) at net.thucydides.core.steps.StepInterceptor.skipTestStep(StepInterceptor.java:131) at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:122) at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:51) at com.onespatial.ms.plan.steps.PlannerUserSteps$$EnhancerByCGLIB$$fe762261.saveJob(<generated>) at com.onespatial.ms.plan.acceptancetests.defineJobExtent.OverlappingJobs.createOverlappingJobs(OverlappingJobs.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at net.thucydides.junit.runners.ThucydidesStatement.evaluate(ThucydidesStatement.java:21) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:360) at net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:56) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at net.thucydides.junit.runners.ThucydidesRunner.run(ThucydidesRunner.java:221) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at org.junit.runner.JUnitCore.run(JUnitCore.java:136) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74) Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.29.1', revision: 'dfb1306b85be4934d23c123122e06e602a15e446', time: '2013-01-22 12:58:05' System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_07' Driver info: driver.version: ChromeDriver at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:161) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:139) at net.thucydides.core.webdriver.WebdriverInstanceFactory.newChromeDriver(WebdriverInstanceFactory.java:38) at net.thucydides.core.webdriver.WebDriverFactory.chromeDriver(WebDriverFactory.java:384) at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:140) ... 60 more Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start. Build info: version: '2.29.1', revision: 'dfb1306b85be4934d23c123122e06e602a15e446', time: '2013-01-22 12:58:05' System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_07' Driver info: driver.version: ChromeDriver at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:165) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:506) ... 68 more Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:8728/status] to be available after 20001 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104) at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:163) ... 70 more Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79) ... 71 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258) at java.util.concurrent.FutureTask.get(FutureTask.java:119) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130) ... 72 more {quote}

    Java.net JIRA | 4 years ago | gareth.bragg
    net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
  2. 0

    Issue with Selenium Webdriver: UnreachableBrowserException raised

    Stack Overflow | 1 year ago | balteo
    java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16' System info: host: 'ct-10-0-180-116', ip: '10.0.180.116', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-042stab105.14', java.version: '1.8.0_51' Driver info: driver.version: unknown
  3. 0

    While initiating the ChromeDriver getting an exception

    Stack Overflow | 3 years ago | Naresh
    org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12' System info: host: '01hw535163', ip: '10.72.15.53', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_17' Driver info: driver.version: ChromeDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 2680#243774196

    GitHub | 6 months ago | JordiGiros
    java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Build info: version: '3.0.0-beta2', revision: '2aa21c1', time: '2016-08-02 15:03:28 -0700' System info: host: 'Devs-Mac-mini.local', ip: '192.168.10.159', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_101' Driver info: driver.version: unknown
  6. 0

    Error starting RemoteWebDriver with Chrome using chromedriver 19.x

    GitHub | 2 years ago | GoogleCodeExporter
    org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.38-13-generic', java.version: '1.6.0_22' Driver info: driver.version: unknown
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.concurrent.TimeoutException

    No message provided

    at java.util.concurrent.FutureTask$Sync.innerGet()
  2. Java RT
    FutureTask.get
    1. java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
    2. java.util.concurrent.FutureTask.get(FutureTask.java:119)
    2 frames
  3. Guava
    SimpleTimeLimiter.callWithTimeout
    1. com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
    1 frame
  4. Selenium
    RemoteWebDriver.<init>
    1. org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79)
    2. org.openqa.selenium.remote.service.DriverService.start(DriverService.java:163)
    3. org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62)
    4. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:506)
    5. org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
    6. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
    7. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
    7 frames
  5. selenium-chrome-driver
    ChromeDriver.<init>
    1. org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:161)
    2. org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:139)
    2 frames
  6. thucydides-core
    Pages.currentPageAt
    1. net.thucydides.core.webdriver.WebdriverInstanceFactory.newChromeDriver(WebdriverInstanceFactory.java:38)
    2. net.thucydides.core.webdriver.WebDriverFactory.chromeDriver(WebDriverFactory.java:384)
    3. net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:140)
    4. net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:87)
    5. net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:82)
    6. net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:54)
    7. net.thucydides.core.pages.Pages.browserIsHeadless(Pages.java:145)
    8. net.thucydides.core.pages.Pages.openHeadlessDriverIfNotOpen(Pages.java:130)
    9. net.thucydides.core.pages.Pages.openBrowserIfRequiredFor(Pages.java:123)
    10. net.thucydides.core.pages.Pages.currentPageAt(Pages.java:111)
    10 frames
  7. com.onespatial.ms
    PlannerUserSteps$$EnhancerByCGLIB$$fe762261$$FastClassByCGLIB$$14544c8e.invoke
    1. com.onespatial.ms.plan.steps.PlannerUserSteps.onPlanPage(PlannerUserSteps.java:133)
    2. com.onespatial.ms.plan.steps.PlannerUserSteps.saveJob(PlannerUserSteps.java:91)
    3. com.onespatial.ms.plan.steps.PlannerUserSteps$$EnhancerByCGLIB$$fe762261.CGLIB$saveJob$0(<generated>)
    4. com.onespatial.ms.plan.steps.PlannerUserSteps$$EnhancerByCGLIB$$fe762261$$FastClassByCGLIB$$14544c8e.invoke(<generated>)
    4 frames
  8. IDEA
    MethodProxy.invokeSuper
    1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    1 frame
  9. thucydides-core
    StepInterceptor.intercept
    1. net.thucydides.core.steps.StepInterceptor.invokeMethod(StepInterceptor.java:292)
    2. net.thucydides.core.steps.StepInterceptor.runSkippedMethod(StepInterceptor.java:142)
    3. net.thucydides.core.steps.StepInterceptor.skipTestStep(StepInterceptor.java:131)
    4. net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:122)
    5. net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:51)
    5 frames
  10. com.onespatial.ms
    OverlappingJobs.createOverlappingJobs
    1. com.onespatial.ms.plan.steps.PlannerUserSteps$$EnhancerByCGLIB$$fe762261.saveJob(<generated>)
    2. com.onespatial.ms.plan.acceptancetests.defineJobExtent.OverlappingJobs.createOverlappingJobs(OverlappingJobs.java:41)
    2 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  12. JUnit
    InvokeMethod.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    4 frames
  13. net.thucydides.junit
    ThucydidesStatement.evaluate
    1. net.thucydides.junit.runners.ThucydidesStatement.evaluate(ThucydidesStatement.java:21)
    1 frame
  14. JUnit
    BlockJUnit4ClassRunner.runChild
    1. org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    2. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    2 frames
  15. net.thucydides.junit
    ThucydidesRunner.runChild
    1. net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:360)
    2. net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:56)
    2 frames
  16. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    6 frames
  17. net.thucydides.junit
    ThucydidesRunner.run
    1. net.thucydides.junit.runners.ThucydidesRunner.run(ThucydidesRunner.java:221)
    1 frame
  18. JUnit
    JUnitCore.run
    1. org.junit.runners.Suite.runChild(Suite.java:128)
    2. org.junit.runners.Suite.runChild(Suite.java:24)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    9. org.junit.runner.JUnitCore.run(JUnitCore.java:157)
    10. org.junit.runner.JUnitCore.run(JUnitCore.java:136)
    10 frames
  19. SureFire JUnitCore Runner
    JUnitCoreProvider.invoke
    1. org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
    2. org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
    2 frames
  20. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  21. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
    5 frames