0.8.1, localized help links, unable to find valid certification path to requested target
The OpenLocalizedPage.getValidUrl failed to manage https links ->the non-localized page is opened instead
And a stacktrace is shown in the console at startup, after loading an HTTPS protected web page loaded by the TXM 0.8.1beta landing page.
Diagnostic
Current console log:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Stacktrace:
[1] org.txm.rccommands.OpenLocalizedWebPage. getValidURL OpenLocalizedWebPage.java, 94
[2] org.txm.rccommands.OpenWelcomePage.openWelcomePage OpenWelcomePage.java, 66
[3] org.txm.rcApplicationWorkbenchAdvisor$5. run ApplicationWorkbenchAdvisor.java, 609
[4] org.txm.rcApplication. start Application.java, 260
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)
...
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.txm.rcApplication.start(Application.java:260)
at org.eclipse.equinox.internal.apEclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
...
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
...
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1596)
... 47 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
...
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
... 53 more
Solution
*Use HttpsURLConnection.openconnection() to test “https” URLs
- don’t print the stacktrace
*print an error message with Log.fine() : “Error while testing the ”https:///a/b" web page: xyz exception message"
(from redmine: issue id 2801, created on 2020/04/30 by Matthieu Decorde)