Fix SSL handshake failed in BrowserComponent

86 views
Skip to first unread message

Fuad Nassar

unread,
Jul 13, 2020, 4:36:38 AM7/13/20
to CodenameOne Discussions
My BrowserComponent displaying HTML content to add online payment in my app. 
when i uses Test merchant ID there are no problems, but when using real merchant ID, i got this error:

Received exception: SSL handshake failed
java.lang.Throwable: SSL handshake failed
at javafx.scene.web.WebEngine$LoadWorker.describeError(WebEngine.java:1436)
at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1375)
at javafx.scene.web.WebEngine$LoadWorker.access$1200(WebEngine.java:1253)
at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1240)
at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2434)
at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2278)
at com.sun.webkit.network.URLLoader.twkDidFail(Native Method)
at com.sun.webkit.network.URLLoader.notifyDidFail(URLLoader.java:868)
at com.sun.webkit.network.URLLoader.lambda$didFail$100(URLLoader.java:851)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
java.lang.Throwable: SSL handshake failed
at javafx.scene.web.WebEngine$LoadWorker.describeError(WebEngine.java:1436)
at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1375)
at javafx.scene.web.WebEngine$LoadWorker.access$1200(WebEngine.java:1253)
at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1240)
at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2434)
at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2278)
at com.sun.webkit.network.URLLoader.twkDidFail(Native Method)
at com.sun.webkit.network.URLLoader.notifyDidFail(URLLoader.java:868)
at com.sun.webkit.network.URLLoader.lambda$didFail$100(URLLoader.java:851)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)



Shai Almog

unread,
Jul 13, 2020, 11:22:15 PM7/13/20
to CodenameOne Discussions
Did you try this on a device e.g. Android.
We're in the process of launching the CEF browser support over the next couple of weeks. I'll also send out an email about this as it's pretty important. That might resolve this issue by just being a better browser than damn FX. But it should also include better debugging tools for issues like that.

Amine

unread,
Mar 12, 2021, 5:00:56 PM3/12/21
to CodenameOne Discussions
I have the same problem

Amine

unread,
Mar 12, 2021, 5:02:20 PM3/12/21
to CodenameOne Discussions
Hy,
Did you resolve the error, i have the same

Shai Almog

unread,
Mar 12, 2021, 11:46:55 PM3/12/21
to CodenameOne Discussions
That often means your server has a bad certificate or communication problem.
Reply all
Reply to author
Forward
0 new messages