title: Selenium WebDriverException: Session [null] not available and is not among the last 1000 terminated sessions
body: <p>I am getting the below WebDriver exception when trying to navigate to a URL (just simply to Google) using Selenium Grid running locally.</p>
  
  <blockquote>
    <p>org.openqa.selenium.WebDriverException: Session [null] not available
    and is not among the last 1000 terminated sessions.</p>
  </blockquote>
  
  <p>I am running <code>selenium-server-standalone-3.141.59.jar</code> on my desktop in the Grid configuration with one hub and one node.  In two different cmd windows I start the hub with <code>-role hub</code>, and then the node with <code>-role node -hub http://localhost:4444/grid/register</code>. All seems to start just fine.</p>
  
  <p>Java code:</p>
  
  <pre class="lang-java prettyprint-override"><code>public void initialGridTest() throws Exception {
      try {
          System.setProperty("webdriver.chrome.driver", "D:\\SeleniumWebDrivers\\chromedriver.exe");
          DesiredCapabilities capability = DesiredCapabilities.chrome();
          RemoteWebDriver driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), capability);
  
          driver.get("http://www.google.com");
          String doodleText = driver.findElement(By.id("logo-doodle-image")).getText();
      } catch (Exception e) {
          System.out.println("e: " + e);
      }
  }
  </code></pre>
  
  <p>I have a simple test in a Java class running in IntelliJ that calls <code>RemoteWebDriver</code> to navigate to Google.  When I execute <code>new RemoteWebDriver(...</code> in the code, I see my Java program connecting to the hub and the hub connecting with the node, and the node opens a new instance of Chrome.  But when the program runs <code>driver.get()</code> I get the <code>WebDriverException</code>.  I see in the node console that it has a session id, but for some reason the session is null in my Java code.</p>