Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Driver initialization fails on windows 2008 server 64 bits #2774

Closed
lukeis opened this issue Mar 3, 2016 · 4 comments
Closed

Driver initialization fails on windows 2008 server 64 bits #2774

lukeis opened this issue Mar 3, 2016 · 4 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2774

WebDriver driver = new InternetExplorerDriver();
------------------
java.lang.ExceptionInInitializerError
    at org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:82)
    at org.openqa.selenium.ie.InternetExplorerDriver.(InternetExplorerDriver.java:48)
...
Caused by: org.openqa.selenium.WebDriverException: Unable to find tmp dir: C:\Windows\system32\config\systemprofile\AppData\Local\Temp
Build info: version: '2.11.0', revision: '14435', time: '2011-10-28 18:01:56'
System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1',
java.version: '1.6.0_25'
Driver info: driver.version: InternetExplorerDriver
    at org.openqa.selenium.io.TemporaryFilesystem.(TemporaryFilesystem.java:77)
    at org.openqa.selenium.io.TemporaryFilesystem.getDefaultTmpFS(TemporaryFilesystem.java:52)
    at org.openqa.selenium.ie.InternetExplorerDriverServer.initializeLib(InternetExplorerDriverServer.java:82)
    at org.openqa.selenium.ie.InternetExplorerDriverServer.(InternetExplorerDriverServer.java:38)
    ... 24 more
-----------
WebDriver driver = new FirefoxDriver();
------------
Caused by: org.openqa.selenium.WebDriverException: Unable to find tmp dir: C:\Windows\system32\config\systemprofile\AppData\Local\Temp
Build info: version: '2.11.0', revision: '14435', time: '2011-10-28 18:01:56'
System info: os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1',
java.version: '1.6.0_25'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.io.TemporaryFilesystem.(TemporaryFilesystem.java:77)
    at org.openqa.selenium.io.TemporaryFilesystem.getDefaultTmpFS(TemporaryFilesystem.java:52)
    at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:503)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:74)
    ... 26 more

Reported by fhoudebert on 2011-11-04 08:51:01

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by jari.bakken on 2011-11-04 16:46:40

  • Labels added: Component-WebDriver, Lang-Java, OpSys-Windows

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I've found a solution to this.  It appears Windows 2008 has some notorious issues with
temp directory permissions.  I changed an environment variable for the current user
(Temp) to a different directory I created and this went away.

Reported by jasoncorbett on 2012-05-31 21:48:25

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Closing the issue as it's related to the environment rather than selenium.

Reported by barancev on 2012-12-10 12:21:23

  • Status changed: WontFix

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:07

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant