{"action":"created","issue":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/560","repository_url":"https://api.github.com/repos/serenity-bdd/serenity-core","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/560/comments","events_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/560/events","html_url":"https://github.com/serenity-bdd/serenity-core/issues/560","id":181023589,"number":560,"title":"serenity-core 1.1.38 (and newer) + BrowserStack :  receiving FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE error","user":{"login":"mngi-arogers","id":8104194,"avatar_url":"https://avatars.githubusercontent.com/u/8104194?v=3","gravatar_id":"","url":"https://api.github.com/users/mngi-arogers","html_url":"https://github.com/mngi-arogers","followers_url":"https://api.github.com/users/mngi-arogers/followers","following_url":"https://api.github.com/users/mngi-arogers/following{/other_user}","gists_url":"https://api.github.com/users/mngi-arogers/gists{/gist_id}","starred_url":"https://api.github.com/users/mngi-arogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mngi-arogers/subscriptions","organizations_url":"https://api.github.com/users/mngi-arogers/orgs","repos_url":"https://api.github.com/users/mngi-arogers/repos","events_url":"https://api.github.com/users/mngi-arogers/events{/privacy}","received_events_url":"https://api.github.com/users/mngi-arogers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/labels/waiting%20for%20feedback","name":"waiting for feedback","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-04T22:41:34Z","updated_at":"2016-10-09T00:48:50Z","closed_at":null,"body":"Hello, \r\n\r\nOur `serenity-core` version 1.1.36 and BrowserStack integration has been working for several months now. However when I run a sample test after setting `serenity-core` version to 1.1.38, 1.1.40, or 1.1.42 in my `pom.xml`, I receive a `FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE` error.\r\n\r\nI've looked at Serenity's BrowserStack documentation again (http://serenity-bdd.info/docs/serenity/#_running_tests_on_browserstack ), but I didn't see anything that points to the problem.\r\n\r\nAny ideas?  Thanks for the help ( and for building such a useful framework )!\r\n\r\n\r\n* Here's the stacktrace:\r\n```\r\n-------------------------------------------------------------------------------------\r\n     _______. _______ .______       _______ .__   __.  __  .___________.____    ____ \r\n    /       ||   ____||   _  \\     |   ____||  \\ |  | |  | |           |\\   \\  /   / \r\n   |   (----`|  |__   |  |_)  |    |  |__   |   \\|  | |  | `---|  |----` \\   \\/   /  \r\n    \\   \\    |   __|  |      /     |   __|  |  . `  | |  |     |  |       \\_    _/   \r\n.----)   |   |  |____ |  |\\  \\----.|  |____ |  |\\   | |  |     |  |         |  |     \r\n|_______/    |_______|| _| `._____||_______||__| \\__| |__|     |__|         |__|    \r\n-------------------------------------------------------------------------------------\r\n\r\n[main] INFO net.serenitybdd.core.Serenity - Test Suite Started: Serenity issue test\r\n[main] WARN net.thucydides.core.requirements.PackageRequirementsTagProvider - To generate correct requirements coverage reports you need to set the 'serenity.test.root' property to the package representing the top of your requirements hierarchy.\r\n[main] INFO net.serenitybdd.core.Serenity - \r\n _____ _____ ____ _____   ____ _____  _    ____ _____ _____ ____  \r\n|_   _| ____/ ___|_   _| / ___|_   _|/ \\  |  _ \\_   _| ____|  _ \\ \r\n  | | |  _| \\___ \\ | |   \\___ \\ | | / _ \\ | |_) || | |  _| | | | |\r\n  | | | |___ ___) || |    ___) || |/ ___ \\|  _ < | | | |___| |_| |\r\n  |_| |_____|____/ |_|   |____/ |_/_/   \\_\\_| \\_\\|_| |_____|____/ \r\n                                                                  \r\n\r\nTEST STARTED: thisShouldRun\r\n-------------------------------------------------------------------\r\n[main] INFO net.serenitybdd.core.Serenity - TEST NUMBER: 1\r\n[main] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.firefox.FirefoxDriver: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver\r\nnet.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver\r\n\tat net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:128)\r\n\tat net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:142)\r\n\tat net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:133)\r\n\tat net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:103)\r\n\tat net.thucydides.core.webdriver.WebDriverFacade.openIgnoringHtmlUnitScriptErrors(WebDriverFacade.java:178)\r\n\tat net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:173)\r\n\tat dfm.cms.test.SerenityIssueTest.thisShouldRun(SerenityIssueTest.java:18)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\n\tat net.serenitybdd.junit.runners.SerenityStatement.evaluate(SerenityStatement.java:24)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat net.serenitybdd.junit.runners.SerenityRunner.runChild(SerenityRunner.java:427)\r\n\tat net.serenitybdd.junit.runners.SerenityRunner.runChild(SerenityRunner.java:52)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat net.serenitybdd.junit.runners.SerenityRunner.run(SerenityRunner.java:241)\r\n\tat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)\r\n\tat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)\r\nCaused by: java.lang.NullPointerException\r\n\tat net.thucydides.core.webdriver.strategies.DriverCapabilities.realBrowserCapabilities(DriverCapabilities.java:97)\r\n\tat net.thucydides.core.webdriver.strategies.DriverCapabilities.forDriver(DriverCapabilities.java:41)\r\n\tat net.thucydides.core.webdriver.strategies.RemoteDriverBuilder.findbrowserStackCapabilities(RemoteDriverBuilder.java:113)\r\n\tat net.thucydides.core.webdriver.strategies.RemoteDriverBuilder.buildBrowserStackDriver(RemoteDriverBuilder.java:92)\r\n\tat net.thucydides.core.webdriver.strategies.RemoteDriverBuilder.newInstance(RemoteDriverBuilder.java:62)\r\n\tat net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:116)\r\n\t... 32 more\r\n[main] WARN net.thucydides.core.requirements.PackageRequirementsTagProvider - To generate correct requirements coverage reports you need to set the 'serenity.test.root' property to the package representing the top of your requirements hierarchy.\r\n[main] ERROR net.serenitybdd.core.Serenity - \r\n           __  _____ _____ ____ _____   _____ _    ___ _     _____ ____  \r\n  _       / / |_   _| ____/ ___|_   _| |  ___/ \\  |_ _| |   | ____|  _ \\ \r\n (_)_____| |    | | |  _| \\___ \\ | |   | |_ / _ \\  | || |   |  _| | | | |\r\n  _|_____| |    | | | |___ ___) || |   |  _/ ___ \\ | || |___| |___| |_| |\r\n (_)     | |    |_| |_____|____/ |_|   |_|/_/   \\_\\___|_____|_____|____/ \r\n          \\_\\                                                            \r\n\r\nTEST FAILED WITH ERROR: This should run\r\n---------------------------------------------------------------------\r\n[main] ERROR net.serenitybdd.core.Serenity - Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver\r\n```\r\n\r\n\r\n* Here's the sample test:\r\n\r\n```\r\npackage dfm.cms.test;\r\n\r\nimport org.junit.Test;\r\nimport org.junit.runner.RunWith;\r\nimport org.openqa.selenium.WebDriver;\r\n\r\nimport net.serenitybdd.junit.runners.SerenityRunner;\r\nimport net.thucydides.core.annotations.Managed;\r\n\r\n@RunWith( SerenityRunner.class )\r\npublic class SerenityIssueTest {\r\n\r\n  @Managed\r\n  WebDriver webDriver;\r\n\r\n  @Test\r\n  public void thisShouldRun() {\r\n    webDriver.get( \"http://serenity-bdd.info\" );\r\n  }\r\n}\r\n\r\n```\r\n\r\n* This is our `serenity.properties`\r\n```\r\nserenity.take.screenshots=FOR_FAILURES\r\nwebdriver.wait.for.timeout=20000\r\nserenity.browser.width=1280\r\nserenity.browser.height=1024\r\n\r\n### Begin BrowserStack WebDriver properties ###\r\nbrowserstack.url=https://MY_USERNAME:MY_API_KEY@hub.browserstack.com/wd/hub\r\nbrowserstack.project=Selenium Tests\r\nbrowserstack.name=My Eclipse Test\r\n\r\nbrowserstack.resolution=1280x1024\r\nbrowserstack.os=OS X\r\nbrowserstack.os_version=El Capitan\r\nbrowserstack.browser=chrome\r\nbrowserstack.browser_version=53\r\n```\r\n\r\n* This is our `pom.xml`\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n\t<modelVersion>4.0.0</modelVersion>\r\n\t<groupId>my-selenium-tests</groupId>\r\n\t<artifactId>my-selenium-tests</artifactId>\r\n\t<version>1.0</version>\r\n\t<name>my-selenium-tests</name>\r\n\r\n\t<properties>\r\n\t\t<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n\t\t<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>\r\n\t\t<serenity.version>1.1.42</serenity.version>\r\n\t\t<serenity.jira.version>1.1.1</serenity.jira.version>\r\n\t\t<chromeDrivers.directory>${project.projectDirectory}/chrome-drivers</chromeDrivers.directory>\r\n\t</properties>\r\n\r\n\t<profiles>\r\n\t\t<profile>\r\n\t\t\t<id>Mac</id>\r\n\t\t\t<activation>\r\n\t\t\t\t<os>\r\n\t\t\t\t\t<family>mac</family>\r\n\t\t\t\t</os>\r\n\t\t\t</activation>\r\n\t\t\t<properties>\r\n\t\t\t\t<chromedriver.location>${chromeDrivers.directory}/chromedriver_mac32</chromedriver.location>\r\n\t\t\t</properties>\r\n\t\t</profile>\r\n\t\t<profile>\r\n\t\t\t<id>Linux</id>\r\n\t\t\t<activation>\r\n\t\t\t\t<os>\r\n\t\t\t\t\t<family>unix</family>\r\n\t\t\t\t</os>\r\n\t\t\t</activation>\r\n\t\t\t<properties>\r\n\t\t\t\t<chromedriver.location>${chromeDrivers.directory}/chromedriver_linux64</chromedriver.location>\r\n\t\t\t</properties>\r\n\t\t</profile>\r\n\t\t<profile>\r\n\t\t\t<id>Windows</id>\r\n\t\t\t<activation>\r\n\t\t\t\t<os>\r\n\t\t\t\t\t<family>windows</family>\r\n\t\t\t\t</os>\r\n\t\t\t</activation>\r\n\t\t\t<properties>\r\n\t\t\t\t<chromedriver.location>${chromeDrivers.directory}/chromedriver_win32.exe</chromedriver.location>\r\n\t\t\t</properties>\r\n\t\t</profile>\r\n\t\t<profile>\r\n\t\t\t<id>Jira</id>\r\n\t\t\t<dependencies>\r\n\t\t\t\t<dependency>\r\n\t\t\t\t\t<groupId>net.serenity-bdd</groupId>\r\n\t\t\t\t\t<artifactId>serenity-jira-requirements-provider</artifactId>\r\n\t\t\t\t\t<version>${serenity.jira.version}</version>\r\n\t\t\t\t</dependency>\r\n\t\t\t</dependencies>\r\n\t\t</profile>\r\n\t</profiles>\r\n\r\n\t<dependencies>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.json</groupId>\r\n\t\t\t<artifactId>json</artifactId>\r\n\t\t\t<version>20160810</version>\r\n\t\t\t<scope>test</scope>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>junit</groupId>\r\n\t\t\t<artifactId>junit</artifactId>\r\n\t\t\t<version>4.12</version>\r\n\t\t\t<scope>test</scope>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.seleniumhq.selenium</groupId>\r\n\t\t\t<artifactId>selenium-java</artifactId>\r\n\t\t\t<version>2.53.0</version>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>org.slf4j</groupId>\r\n\t\t\t<artifactId>slf4j-simple</artifactId>\r\n\t\t\t<version>1.7.21</version>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>net.serenity-bdd</groupId>\r\n\t\t\t<artifactId>serenity-core</artifactId>\r\n\t\t\t<version>${serenity.version}</version>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>net.serenity-bdd</groupId>\r\n\t\t\t<artifactId>serenity-report-resources</artifactId>\r\n\t\t\t<version>${serenity.version}</version>\r\n\t\t</dependency>\r\n\t\t<dependency>\r\n\t\t\t<groupId>net.serenity-bdd</groupId>\r\n\t\t\t<artifactId>serenity-junit</artifactId>\r\n\t\t\t<version>${serenity.version}</version>\r\n\t\t</dependency>\r\n\t</dependencies>\r\n\t<build>\r\n\t\t<plugins>\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.apache.maven.plugins</groupId>\r\n\t\t\t\t<artifactId>maven-compiler-plugin</artifactId>\r\n\t\t\t\t<version>3.5.1</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<source>1.8</source>\r\n\t\t\t\t\t<target>1.8</target>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\r\n\t\t\t<!-- To have Serenity generate reports even when tests fail, need to run \r\n\t\t\t\ttests integration tests instead of unit tests. -->\r\n\r\n\t\t\t<!-- disable maven unit testing -->\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.apache.maven.plugins</groupId>\r\n\t\t\t\t<artifactId>maven-surefire-plugin</artifactId>\r\n\t\t\t\t<version>2.19.1</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<skipTests>true</skipTests>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\r\n\t\t\t<!-- enable maven integration testing -->\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>org.apache.maven.plugins</groupId>\r\n\t\t\t\t<artifactId>maven-failsafe-plugin</artifactId>\r\n\t\t\t\t<version>2.19.1</version>\r\n\t\t\t\t<executions>\r\n\t\t\t\t\t<execution>\r\n\t\t\t\t\t\t<id>integration-tests</id>\r\n\t\t\t\t\t\t<goals>\r\n\t\t\t\t\t\t\t<goal>integration-test</goal>\r\n\t\t\t\t\t\t\t<goal>verify</goal>\r\n\t\t\t\t\t\t</goals>\r\n\t\t\t\t\t\t<configuration>\r\n\t\t\t\t\t\t\t<skipTests>false</skipTests>\r\n\t\t\t\t\t\t\t<systemPropertyVariables>\r\n\t\t\t\t\t\t\t\t<webdriver.chrome.driver>${chromedriver.location}</webdriver.chrome.driver>\r\n\t\t\t\t\t\t\t</systemPropertyVariables>\r\n\t\t\t\t\t\t</configuration>\r\n\t\t\t\t\t</execution>\r\n\t\t\t\t</executions>\r\n\t\t\t</plugin>\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>net.serenity-bdd.maven.plugins</groupId>\r\n\t\t\t\t<artifactId>serenity-maven-plugin</artifactId>\r\n\t\t\t\t<version>${serenity.version}</version>\r\n\r\n\t\t\t\t<executions>\r\n\t\t\t\t\t<execution>\r\n\t\t\t\t\t\t<id>serenity-reports</id>\r\n\t\t\t\t\t\t<phase>post-integration-test</phase>\r\n\t\t\t\t\t\t<goals>\r\n\t\t\t\t\t\t\t<goal>aggregate</goal>\r\n\t\t\t\t\t\t</goals>\r\n\t\t\t\t\t</execution>\r\n\t\t\t\t</executions>\r\n\t\t\t</plugin>\r\n\t\t</plugins>\r\n\t</build>\r\n</project>\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/comments/252456779","html_url":"https://github.com/serenity-bdd/serenity-core/issues/560#issuecomment-252456779","issue_url":"https://api.github.com/repos/serenity-bdd/serenity-core/issues/560","id":252456779,"user":{"login":"mngi-arogers","id":8104194,"avatar_url":"https://avatars.githubusercontent.com/u/8104194?v=3","gravatar_id":"","url":"https://api.github.com/users/mngi-arogers","html_url":"https://github.com/mngi-arogers","followers_url":"https://api.github.com/users/mngi-arogers/followers","following_url":"https://api.github.com/users/mngi-arogers/following{/other_user}","gists_url":"https://api.github.com/users/mngi-arogers/gists{/gist_id}","starred_url":"https://api.github.com/users/mngi-arogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mngi-arogers/subscriptions","organizations_url":"https://api.github.com/users/mngi-arogers/orgs","repos_url":"https://api.github.com/users/mngi-arogers/repos","events_url":"https://api.github.com/users/mngi-arogers/events{/privacy}","received_events_url":"https://api.github.com/users/mngi-arogers/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T00:48:50Z","updated_at":"2016-10-09T00:48:50Z","body":"I've attached a sample project:\r\n[my-selenium-tests-issue-560.zip](https://github.com/serenity-bdd/serenity-core/files/518024/my-selenium-tests-issue-560.zip)\r\n\r\nMake sure to enter your BrowserStack credentials into the 'browserstack.url' field of the 'serenity.properties' file.\r\n\r\nThe project can be built and run with this command:\r\nmvn -Dit.test=mypackage.SerenityIssueTest clean verify\r\n\r\nNot sure if it matters, but I'm running this on Ubuntu 16.04. Thanks for looking at this."}}
{"actor":{"display_login":"mngi-arogers"}}