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

Grid throws IllegalStateException when setting up SSL on Selenium 2.6 #2483

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

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2483

What steps will reproduce the problem?

/usr/bin/java -jar /usr/lib/selenium/selenium-server-standalone-2.6.0.jar -role hub


What is the expected output?

The grid hub should start normally.


What do you see instead?

17-Sep-11 12:21:35  org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
Exception in thread "main" java.lang.IllegalStateException: Failure initializing default
SSL context
   at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:211)
   at org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:333)
   at org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
   at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:55)
   at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:44)
   at org.openqa.grid.internal.Registry.<init>(Registry.java:84)
   at org.openqa.grid.internal.Registry.newInstance(Registry.java:94)
   at org.openqa.grid.web.Hub.<init>(Hub.java:97)
   at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:47)
Caused by: java.lang.IllegalStateException
   at gnu.javax.net.ssl.provider.X509KeyManagerFactory.engineGetKeyManagers(libgcj.so.90)
   at javax.net.ssl.KeyManagerFactory.getKeyManagers(libgcj.so.90)
   at org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:187)
   at org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
   ...8 more

Selenium version: 2.6
OS: Debian 5.0.8

It seems that since the refactoring of DefaultHttpClient (http://code.google.com/p/selenium/source/detail?r=13680),
the error described above is raised. The same command line with Selenium 2.4 works
perfectly. I've made sure no other application was using the 443 SSL port and even
disabled the firewall. Maybe some more configuration is needed here (e.g. with the
'javax.net.ssl.keyStore' properties)?

Reported by simpleentrepreneur on 2011-09-17 10:31:11

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

it seems like you are running gcj, which I am not sure if we support. Please test this
with either openjdk or sun-java and see if that helps

Reported by kristian.rosenvold on 2011-09-22 09:10:41

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks for your reply Kristian. Installing OpenJDK indeed solved this problem!

Reported by simpleentrepreneur on 2011-09-25 10:00:19

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

To the extent this issue should be fixed, it should be reported as an issue to the gcj
project. 

Reported by kristian.rosenvold on 2011-09-27 10:21:02

  • Status changed: WontFix

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:13:45

  • 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