Bug #2801
Mis à jour par Matthieu Decorde il y a plus de 5 ans
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.
h3. Diagnostic
Current console log:
<pre>
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.rcp.commands.OpenLocalizedWebPage. getValidURL OpenLocalizedWebPage.java, 94
[2] org.txm.rcp.commands.OpenWelcomePage.openWelcomePage OpenWelcomePage.java, 66
[3] org.txm.rcp.ApplicationWorkbenchAdvisor$5. run ApplicationWorkbenchAdvisor.java, 609
[4] org.txm.rcp.Application. 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.rcp.Application.start(Application.java:260)
at org.eclipse.equinox.internal.app.EclipseAppHandle.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
</pre>
h3. Solution
* A) don't print the stacktrace
* B) print an error message : "Error loading the "https:///a/b" web page: unable to find valid certification path to requested target."
* C) fix the certification when testing URLs availability
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.
h3. Diagnostic
Current console log:
<pre>
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.rcp.commands.OpenLocalizedWebPage. getValidURL OpenLocalizedWebPage.java, 94
[2] org.txm.rcp.commands.OpenWelcomePage.openWelcomePage OpenWelcomePage.java, 66
[3] org.txm.rcp.ApplicationWorkbenchAdvisor$5. run ApplicationWorkbenchAdvisor.java, 609
[4] org.txm.rcp.Application. 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.rcp.Application.start(Application.java:260)
at org.eclipse.equinox.internal.app.EclipseAppHandle.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
</pre>
h3. Solution
* A) don't print the stacktrace
* B) print an error message : "Error loading the "https:///a/b" web page: unable to find valid certification path to requested target."
* C) fix the certification when testing URLs availability