title: org.openqa.selenium.json.JsonException: Expected to read a START_MAP but instead have: END. Last 0 characters read while executing tests through Node
body: <p>I am new to Selenium and started learning it. But the Selenium Grid is not working for me. The server version used is selenium-server-standalone-3.14.0.jar. Using command, the hub and node are running.
  The code for adding nodes to hub is written using TestNG in Eclipse. The code is as follows:</p>
  
  <pre><code>ChromeOptions options = new ChromeOptions();
  options.setCapability(CapabilityType.PLATFORM_NAME, Platform.WIN10);             
  options.setCapability(CapabilityType.BROWSER_NAME, "chrome");
  driver = new RemoteWebDriver(new URL("http://192.xxx.x.xx:48807/wd/hub"), options);             driver.get("https://www.amazon.in/");
  </code></pre>
  
  <p>While running the test, the following error occurs and the sessions are not created:</p>
  
  <pre><code>org.openqa.selenium.WebDriverException: Unable to parse remote response: 
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:111)
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
      at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:130)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:143)
      at grid.Node2.f(Node2.java:44)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
      at org.testng.TestRunner.privateRun(TestRunner.java:648)
      at org.testng.TestRunner.run(TestRunner.java:505)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
      at org.testng.SuiteRunner.access$000(SuiteRunner.java:40)
      at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:489)
      at org.testng.internal.thread.ThreadUtil$1.call(ThreadUtil.java:52)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: org.openqa.selenium.json.JsonException: Expected to read a START_MAP but instead have: END. Last 0 characters read: 
  Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-
  </code></pre>
  
  <p>Hub Command:</p>
  
  <pre><code>java -jar selenium-server-standalone-3.14.0.jar -role hub
  </code></pre>
  
  <p>Node Command:
  java -DWebdriver.chrome.driver=C:\SWs\chromedriver_win32\chromedriver.exe -jar selenium-server-standalone-3.14.0.jar -role node -hub <a href="http://xxx.xxx.x.x:4444/grid/register/" rel="noreferrer">http://xxx.xxx.x.x:4444/grid/register/</a>          </p>
  
  <p>Browser details : Chrome 69<br>
  ChromeDriver 2.42.591088</p>
  
  <p>Anybody please help to resolve this issue, thanks in advance</p>