Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Handshake fails on OS X 10.8.5 (Mountain Lion) #8

Closed
adrianN opened this issue Dec 19, 2014 · 12 comments
Closed

SSL Handshake fails on OS X 10.8.5 (Mountain Lion) #8

adrianN opened this issue Dec 19, 2014 · 12 comments

Comments

@adrianN
Copy link
Contributor

adrianN commented Dec 19, 2014

I start the browser. I click the "blog" link to stay abreast with the project. The SSL connection fails.


Creating req mgr for: FramePanel[windowId=null,hashCode=1876631416,parent=null]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
name indexer : namedItem in class org.lobobrowser.html.js.Window
Setting up scope: JavaObjectWrapper[object=org.lobobrowser.html.js.Window@53e823b7,type=org.lobobrowser.html.js.Window]
Exception in thread "JS Scheduler" java.lang.NullPointerException
at org.lobobrowser.html.js.Window$JSScheduler.run(Window.java:325)
Found stylesheets: 0
Stylesheets set to null
Response: ClientletResponseImpl[url=about:welcome,method=GET,mimeType=text/html,fromCache=false,requestType=OPEN_WINDOW]
Consider Navigating to: https://blog.gngr.info
Dec 19, 2014 5:39:02 PM org.lobobrowser.primary.ext.ExtensionImpl showError
WARNING: showError(): An error occurred trying to process document [null]
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1991)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1104)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1343)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:238)
at com.squareup.okhttp.Connection.connect(Connection.java:153)
at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:169)
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:104)
at com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:131)
at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:235)
at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:420)
at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:371)
at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:466)
at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
at org.lobobrowser.request.RequestEngine.processHandler(RequestEngine.java:789)
at org.lobobrowser.request.RequestEngine.access$1(RequestEngine.java:744)
at org.lobobrowser.request.RequestEngine$RequestHandlerTask.lambda$0(RequestEngine.java:1078)
at org.lobobrowser.request.RequestEngine$RequestHandlerTask$$Lambda$35/1989574884.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.lobobrowser.request.RequestEngine$RequestHandlerTask.run(RequestEngine.java:1084)
at org.lobobrowser.util.SimpleThreadPool$ThreadRunnable.run(SimpleThreadPool.java:129)
at java.lang.Thread.run(Thread.java:745)

In : about:welcome Acquiring Semaphore: java.util.concurrent.Semaphore@7ddafce5[Permits = 1]
Going to stop JS scheduler
Finished interrupting
Clearing document scope
Setting up scope: JavaObjectWrapper[object=org.lobobrowser.html.js.Window@53e823b7,type=org.lobobrowser.html.js.Window]
Found stylesheets: 0
Stylesheets set to null

In about:error Running loop
Response: null

@hrj
Copy link
Member

hrj commented Dec 19, 2014

This is not reproducible here. Please share more details:

  • OS name and version
  • Java version and vendor
  • Is this the pre-compiled binary release, or did you compile it yourself?

@hrj hrj added the bug label Dec 19, 2014
@hrj hrj changed the title Blog link from about:welcome does not work SSL Handshake fails to blog.gngr.info Dec 20, 2014
@adrianN
Copy link
Contributor Author

adrianN commented Dec 20, 2014

I downloaded gngr-v0-0-0.jar. I'm on OS X 10.8.5 (12F45).

$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

@hrj hrj changed the title SSL Handshake fails to blog.gngr.info SSL Handshake fails to blog.gngr.info on OS X Dec 20, 2014
@hrj
Copy link
Member

hrj commented Dec 20, 2014

Thanks. Are you able to visit other https websites from gngr? Some random suggestions you can try:

@adrianN
Copy link
Contributor Author

adrianN commented Dec 20, 2014

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No, all of those fail with HandshakeExceptions.
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlSVz2MACgkQ11V8mqIQMRv9TQCeNjh5iwi3lR7yaBskHCSzJkjc
AOgAn0mCz/sEW5hH4kg+xw3feAyezeMH
=Go+r
-----END PGP SIGNATURE-----

@hrj hrj changed the title SSL Handshake fails to blog.gngr.info on OS X SSL Handshake fails on OS X Dec 20, 2014
@hrj
Copy link
Member

hrj commented Dec 21, 2014

@digen Is this something you could try on your OS X box?

@digen
Copy link

digen commented Dec 21, 2014

@hrj Sure. Working on it.

@hrj
Copy link
Member

hrj commented Dec 25, 2014

We have verified that gngr v0.1.0 works fine on OS X Mavericks (v10.9.4), Oracle Java 8u25.

@hrj hrj changed the title SSL Handshake fails on OS X SSL Handshake fails on OS X 10.8.5 (Mountain Lion) Dec 25, 2014
@adrianN
Copy link
Contributor Author

adrianN commented Dec 25, 2014

v0.1.0 still exhibits the same problem on my machine. I also noticed the following weird behaviour, that might be related:

I usually start the jar by clicking on it. On Mac OS this starts the Jar Launcher.app which in turns calls java. To make sure that I really use the java version I posted above, I tried launching gngr from the command line. That however fails:

$ java -jar gngr-v0-1-0.jar 
java.lang.NoClassDefFoundError: jdk/net/NetworkPermission
    at org.lobobrowser.store.StorageManager.<init>(StorageManager.java:76)
    at org.lobobrowser.store.StorageManager.<clinit>(StorageManager.java:66)
    at org.lobobrowser.main.ReuseManager.launch(ReuseManager.java:77)
    at org.lobobrowser.main.EntryPoint.launch(EntryPoint.java:63)
    at org.lobobrowser.main.EntryPoint.lambda$0(EntryPoint.java:79)
    at org.lobobrowser.main.EntryPoint$$Lambda$1/791452441.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.lobobrowser.main.EntryPoint.privilegedLaunch(EntryPoint.java:78)
    at org.lobobrowser.main.EntryPoint.main(EntryPoint.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at uno.Uno$3.run(Uno.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at uno.Uno.startMain(Uno.java:193)
    at uno.Uno.main(Uno.java:233)
Caused by: java.lang.ClassNotFoundException: jdk.net.NetworkPermission
    at uno.Uno.findClass(Uno.java:110)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 17 more

I had a look at the strings in Jar Launcher.app, and it seems to use /usr/bin/java (the same as above).

@hrj
Copy link
Member

hrj commented Dec 25, 2014

@adrianN Can you try updating to the latest java version (8u25). It is anyway recommended from a security standpoint; it might also help with the errors.

Also, it is strange that you get different errors on the command line compared to the Jar Launcher. Do you have two versions of java installed by any chance?

@digen
Copy link

digen commented Dec 26, 2014

@hrj I couldn't reproduce the issue on Mac OSX Yosemite ( 10.10.1 - 14B25).

$ java -version
openjdk version "1.8.0_25"
OpenJDK Runtime Environment (Zulu 8.4.0.1-macosx) (build 1.8.0_25-b17)
OpenJDK 64-Bit Server VM (Zulu 8.4.0.1-macosx) (build 25.25-b02, mixed mode)

Accessed the following websites without any issues,

  1. https://github.com
  2. https://reddit.com
  3. https://news.ycombinator.com
  4. https://google.com

@hrj
Copy link
Member

hrj commented Dec 26, 2014

Thanks @digen

This now seems to be a specific issue with @adrianN's setup.

I am closing this for now. If there's more information we can re-open.

@hrj
Copy link
Member

hrj commented Jan 1, 2015

Based on a discussion on Reddit it is now confirmed that the first release of Java 8 had a problem; some classes were missing. The latest versions of Java 8 don't seem to have this problem.

@adrianN Please try updating to Java 8u25 and let us know if the issue persists.

@hrj hrj removed the need-triage label Jan 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants