SessionNotCreatedException: Unable to create new remote session

1,967 views
Skip to first unread message

Pascal Peidro

unread,
Jun 7, 2017, 9:21:30 AM6/7/17
to Selenium Users
Hi

The Chrome browser is launched, but i have the following exception :
rg.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{browserName=chrome, takesScreenshot=true, chromeOptions=org.openqa.selenium.chrome.ChromeOptions@e529e58b, version=, platform=ANY}], required capabilities = Capabilities [{}]
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'WPPEIDRO', ip: '172.16.26.228', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_60'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:172)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)

My configuration is the following :
- OS : Windows10
- Selenium Standalone Server : 3.4.0
- Selenium client Java : 3.4.0
- chromedriver : 2.29
- grid config : 
       {
           "capabilities":
              [
    {
                    "browserName":"chrome",
                    "maxInstances":1,
                    "seleniumProtocol": "WebDriver",
    "webdriver.chrome.driver": "D:/chromedriver.exe"
                 }
               ],

              "maxSession":1,
              "hub" : "http://server:1234"
        }

If i keep this same config and i only change the Selenium client Java version by using a 3.3.1 instead of the 3.4.0, it works fine !!!
Thx for your help
Pascal

thi...@thoughtworks.com

unread,
Jun 9, 2017, 1:40:54 AM6/9/17
to Selenium Users


On Wednesday, June 7, 2017 at 6:51:30 PM UTC+5:30, Pascal Peidro wrote:
Hi,

Are you using latest version of chrome driver and chrome browsers? 

Pascal Peidro

unread,
Jun 9, 2017, 10:15:25 AM6/9/17
to Selenium Users
Yes, the Chrome version is 59.0.3071.86
I just tried with latest chromedriver 2.30...but same issue :(
Message has been deleted

Pascal Peidro

unread,
Aug 2, 2017, 4:00:04 AM8/2/17
to Selenium Users
I resolved my problem. It was a gson dependancy conflict. The gson version was overrided by an another module (lower version).
Reply all
Reply to author
Forward
0 new messages