title: Invalid port. Exiting...org.openqa.selenium.os.OsProcess checkForError using ChromeDriver and Chrome through Selenium
body: <pre><code>Source code:
  
  package Labarary;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  
  public class LAb {
  
      public static void main(String[] args) {
          System.out.println(&quot;chrome&quot;);
          System.setProperty(&quot;webdriver.chrome.driver&quot;,&quot;C:\\Users\\Manjit\\Downloads\\chromedriver_win32\\chromedriver.exe&quot;);
          // TODO Auto-generated method stub
          WebDriver driver=new ChromeDriver();
      }
  }
  </code></pre>
  <p>Invalid port. Exiting...
  ??? ??, ???? ??:??:?? ???????</p>
  <blockquote>
  <p>org.openqa.selenium.os.OsProcess checkForError SEVERE:
  org.apache.commons.exec.ExecuteException: Process exited with an
  error: 1 (Exit value: 1) Exception in thread &quot;main&quot;
  org.openqa.selenium.WebDriverException: Timed out waiting for driver
  server to start. Build info: version: '3.12.0', revision: '7c6e0b3',
  time: '2018-05-08T15:15:03.216Z' System info: host: 'MANJIT-PC', ip:
  '192.168.1.19', os.name: 'Windows 7', os.arch: 'amd64', os.version:
  '6.1', java.version: '1.8.0_171' Driver info: driver.version:
  ChromeDriver  at
  org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
  at
  org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
  at
  org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
  at
  org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
  at
  org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
  at
  org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:130)
  at
  org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
  at
  org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168)
  at
  org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:123)
  at Labarary.LAb.main(LAb.java:20) Caused by:
  org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting
  for [http://localhost:?????/status] to be available after ????? ms    at
  org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
  at
  org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:187)
  ... 9 more Caused by: java.util.concurrent.TimeoutException     at
  java.util.concurrent.FutureTask.get(Unknown Source)   at
  com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:148)
  at
  org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
  ... 10 more</p>
  </blockquote>