title: SeleniumRC FF3.5.x-3.6 lock file troubles
body: <p>With Selenium RC 1.0.1, and FF3.5.x or 3.6 I keep seeing this error when trying to run any test, </p>
  
  <blockquote>
    <p>Failed to start new browser session:
    Unable to delete file
    \parent.lock</p>
  </blockquote>
  
  <p>when running the server with either,</p>
  
  <p>java -jar selenium-server.jar -multiwindow</p>
  
  <p>or</p>
  
  <p>java -jar selenium-server.jar</p>
  
  <p>Any one found a way to run a selenium RC test against those version of FF?  Here's the full stack trace,</p>
  
  <pre><code>ERROR - Failed to start new browser session, shutdown browser and clear all session data
  </code></pre>
  
  <p>java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
  tForFullProfileToBeCreated(FirefoxChromeLauncher.java:311)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.pop
  ulateCustomProfileDirectory(FirefoxChromeLauncher.java:106)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau
  nch(FirefoxChromeLauncher.java:83)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau
  nchRemoteSession(FirefoxChromeLauncher.java:350)
          at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRem
  oteSession(FirefoxLauncher.java:98)
          at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSessi
  on(BrowserSessionFactory.java:357)
          at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
  (BrowserSessionFactory.java:122)
          at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession
  (BrowserSessionFactory.java:84)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowse
  rSession(SeleniumDriverResourceHandler.java:699)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(Se
  leniumDriverResourceHandler.java:393)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleComman
  dRequest(SeleniumDriverResourceHandler.java:364)
          at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(Selen
  iumDriverResourceHandler.java:125)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
          at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
          at org.mortbay.http.HttpServer.service(HttpServer.java:909)
          at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
          at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
          at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
          at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
  245)
          at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
          at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
  Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$Fil
  eLockRemainedException: Lock file still present! C:\DOCUME~1\ADMINI~1.SPS\LOCALS
  ~1\Temp\customProfileDirf09f31ccacf4468385010edaecd5925d\parent.lock
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
  tForFileLockToGoAway(FirefoxChromeLauncher.java:269)
          at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
  tForFullProfileToBeCreated(FirefoxChromeLauncher.java:309)
          ... 20 more
  INFO - Got result: Failed to start new browser session: Unable to d
  elete file C:\DOCUME~1\ADMINI~1.SPS\LOCALS~1\Temp\customProfileDirf09f31ccacf446
  8385010edaecd5925d\parent.lock on session null</p>
  
  <p>Restarting the browser, and clearing the cache didn't help.  Using FF 3.0.x works just fine. </p>