title: Erro:Unable to determine type from: <. Last 1 characters read: <
body: <h2> Questions and Help</h2>
  
  <h3>Please note that this issue tracker is not a help form and this issue will be closed.</h3>
  
  <p>For questions or help please see:</p>
  
  <ul>
  <li><a href="https://webchat.freenode.net/" rel="nofollow noreferrer">SeleniumHQ IRC channel</a></li>
  <li><a href="https://seleniumhq.herokuapp.com/" rel="nofollow noreferrer">SeleniumHQ Slack channel</a></li>
  <li>The <a href="https://groups.google.com/forum/#!forum/selenium-users" rel="nofollow noreferrer">Selenium Users</a> google group
  
  <h3>1. the error code</h3></li>
  </ul>
  
  <pre><code>Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to parse remote response: &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;link rel="stylesheet" type="text/css" href="/assets/displayhelpservlet.css" media="all"/&gt;
    &lt;link href="/assets/favicon.ico" rel="icon" type="image/x-icon" /&gt;
    &lt;script src="/assets/jquery-3.1.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="/assets/displayhelpservlet.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
      var json = Object.freeze('{"consoleLink": "\u002fwd\u002fhub","type": "Standalone","class": "org.openqa.grid.web.servlet.DisplayHelpHandler$DisplayHelpServletConfig","version": "3.141.59"}');
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="content"&gt;
    &lt;div id="help-heading"&gt;
      &lt;h1&gt;&lt;span id="logo"&gt;&lt;/span&gt;&lt;/h1&gt;
      &lt;h2&gt;Selenium &lt;span class="se-type"&gt;&lt;/span&gt;&amp;nbsp;v.&lt;span class="se-version"&gt;&lt;/span&gt;&lt;/h2&gt;
    &lt;/div&gt;
  
    &lt;div id="content-body"&gt;
      &lt;p&gt;
        Whoops! The URL specified routes to this help page.
      &lt;/p&gt;
      &lt;p&gt;
        For more information about Selenium &lt;span class="se-type"&gt;&lt;/span&gt; please see the
        &lt;a class="se-docs"&gt;docs&lt;/a&gt; and/or visit the &lt;a class="se-wiki"&gt;wiki&lt;/a&gt;.
        &lt;span id="console-item"&gt;
          Or perhaps you are looking for the Selenium &lt;span class="se-type"&gt;&lt;/span&gt; &lt;a class="se-console"&gt;console&lt;/a&gt;.
        &lt;/span&gt;
      &lt;/p&gt;
      &lt;p&gt;
        Happy Testing!
      &lt;/p&gt;
    &lt;/div&gt;
  
    &lt;div&gt;
      &lt;footer id="help-footer"&gt;
        Selenium is made possible through the efforts of our open source community, contributions from
        these &lt;a href="https://github.com/SeleniumHQ/selenium/blob/master/AUTHORS"&gt;people&lt;/a&gt;, and our
        &lt;a href="http://www.seleniumhq.org/sponsors/"&gt;sponsors&lt;/a&gt;.
     &lt;/footer&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
      at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:131)
      at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:144)
      at org.zhangmeng.zhi_hui_tree.ZhiHuiTreeApplication.main(ZhiHuiTreeApplication.java:21)
  Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: &lt;. Last 1 characters read: &lt;
  Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
  System info: host: 'zhangmengdeMacBook-Pro.local', ip: '127.0.0.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.2', java.version: '1.8.0_221'
  Driver info: driver.version: RemoteWebDriver
      at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
      at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
      at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
      at org.openqa.selenium.json.Json.toType(Json.java:69)
      at org.openqa.selenium.json.Json.toType(Json.java:55)
      at org.openqa.selenium.json.Json.toType(Json.java:50)
      at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
      ... 7 more
  
  </code></pre>
  
  <h3>2. What did I do</h3>
  
  <p>in this <a href="https://github.com/SeleniumHQ/docker-selenium" rel="nofollow noreferrer">docker-selenium</a>,I pull <em>selenium/standalone-chrome</em></p>
  
  <pre><code>docker run -d -p 4444:4444 --shm-size=2g --name selenium selenium/standalone-chrome
  </code></pre>
  
  <p>my code</p>
  
  <pre class="lang-java prettyprint-override"><code>SpringApplication.run(ZhiHuiTreeApplication.class, args);
          ChromeOptions chromeOptions = new ChromeOptions();
          chromeOptions.addArguments("headless", "no-sandbox", "window-size=1200x800");
          WebDriver webDriver = new RemoteWebDriver(new URL("http://127.0.0.1:4445"), chromeOptions);
          webDriver.get("https://www.baidu.com/");
          Thread.sleep(2000);
          WebElement element = webDriver.findElement(By.xpath("//*[@id=\"tsf\"]/div[2]/div[1]/div[3]/center/input[1]"));
          System.out.println(element.getText());
          webDriver.quit();
  </code></pre>
  
  <p>Maven info</p>
  
  <pre class="lang-java prettyprint-override"><code>&lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;3.141.59&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-chrome-driver&lt;/artifactId&gt;
              &lt;version&gt;3.141.59&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-server&lt;/artifactId&gt;
              &lt;version&gt;3.141.59&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <h3>3. I am newbie, not particularly understanding, thank you for your help</h3>