timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-37226] Downloading JDK gives ERROR: SEVERE ERROR occurs #3415

Closed timja closed 8 years ago

timja commented 8 years ago

Jenkins configured to automatically download and install Java from standard download source.

17:10:07 Installing JDK jdk-8u102-oth-JPR
17:10:07 Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-windows-x64.exe
17:10:07 ERROR: SEVERE ERROR occurs
17:10:07 org.jenkinsci.lib.envinject.EnvInjectException: 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
17:10:07 at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:91)
17:10:07 at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:233)
17:10:07 at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46)
17:10:07 at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:572)
17:10:07 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)
17:10:07 at hudson.model.Run.execute(Run.java:1720)
17:10:07 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
17:10:07 at hudson.model.ResourceController.execute(ResourceController.java:98)
17:10:07 at hudson.model.Executor.run(Executor.java:404)
17:10:07 Caused by: 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
17:10:07 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
17:10:07 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
17:10:07 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
17:10:07 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
17:10:07 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
17:10:07 at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
17:10:07 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
17:10:07 at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
17:10:07 at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
17:10:07 at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
17:10:07 at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)
17:10:07 at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
17:10:07 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
17:10:07 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
17:10:07 at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
17:10:07 at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
17:10:07 at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
17:10:07 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
17:10:07 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
17:10:07 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
17:10:07 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
17:10:07 at hudson.tools.JDKInstaller.locate(JDKInstaller.java:470)
17:10:07 at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:137)
17:10:07 at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
17:10:07 at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
17:10:07 at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
17:10:07 at hudson.model.JDK.forNode(JDK.java:144)
17:10:07 at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:86)
17:10:07 ... 8 more
17:10:07 Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
17:10:07 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
17:10:07 at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
17:10:07 at sun.security.validator.Validator.validate(Validator.java:260)
17:10:07 at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
17:10:07 at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
17:10:07 at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
17:10:07 at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
17:10:07 ... 31 more
17:10:07 Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
17:10:07 at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
17:10:07 at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
17:10:07 at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
17:10:07 at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
17:10:07 ... 37 more


Originally reported by jesperjensen, imported from: Downloading JDK gives ERROR: SEVERE ERROR occurs
  • status: Closed
  • priority: Major
  • resolution: Not A Defect
  • resolved: 2016-09-29T06:38:29+00:00
  • imported: 2022/01/10
timja commented 8 years ago

danielbeck:

In the process of downloading, Jenkins gets redirected to an HTTPS URL, and it cannot validate the certificate. That's an issue between the site and the Java certificate store, and not with the application.