3 Replies Latest reply on May 17, 2015 2:24 PM by simplex-software

    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed executing addon-install-from-git

    simplex-software

      Greetings,

       

      I'm using Forge 2.12.1 comming with JBDS 8.0.0.GA. Running the following command:

       

      addon-install-from-git --url https://github.com/forge/addon-arquillian.git --coordinate org.arquillian.forge:arquillian-addon

       

      raises the following:

       

      ***INFO*** Installing Addon from Git     [0/4] ...

      ***INFO*** Installing Addon from Git:Cloning repository in C:\Users\nicolas\AppData\Local\Temp\1431080144342-0     [0/4] ...

      ***ERROR*** Error while executing 'addon-install-from-git'

      org.eclipse.jgit.api.errors.TransportException: https://github.com/forge/addon-arquillian.git: cannot open git-upload-pack

          at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)

          at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)

          at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)

          at org.jboss.forge.addon.git.GitUtilsImpl.clone(GitUtilsImpl.java:71)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

          at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

          at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

          at org.jboss.forge.addon.git.GitUtilsImpl_$$_javassist_a6b499d1-39ee-4676-9140-80dfe9aa8a3f.clone(GitUtilsImpl_$$_javassist_a6b499d1-39ee-4676-9140-80dfe9aa8a3f.java)

          at org.jboss.forge.addon.manager.impl.ui.AddonGitBuildAndInstallCommand.cloneTo(AddonGitBuildAndInstallCommand.java:174)

          at org.jboss.forge.addon.manager.impl.ui.AddonGitBuildAndInstallCommand.execute(AddonGitBuildAndInstallCommand.java:109)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

          at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

          at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

          at org.jboss.forge.addon.manager.impl.ui.AddonGitBuildAndInstallCommand_$$_javassist_03835a4c-92e7-4563-8399-4a9811e11503.execute(AddonGitBuildAndInstallCommand_$$_javassist_03835a4c-92e7-4563-8399-4a9811e11503.java)

          at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:90)

          at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

          at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)

          at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

      Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/forge/addon-arquillian.git: cannot open git-upload-pack

          at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:497)

          at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:306)

          at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)

          at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)

          at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1111)

          at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)

          ... 28 more

      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

          at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

          at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)

          at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)

          at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)

          at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)

          at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)

          at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)

          at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)

          at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)

          at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)

          at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)

          at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)

          at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)

          at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)

          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)

          at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)

          at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)

          at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)

          at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)

          at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:460)

          ... 33 more

      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:385)

          at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)

          at sun.security.validator.Validator.validate(Validator.java:260)

          at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)

          at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)

          at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)

          at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)

          ... 48 more

      Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

          at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)

          at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)

          at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)

          ... 54 more

      ***ERROR*** https://github.com/forge/addon-arquillian.git: cannot open git-upload-pack

       

      Any suggestion ?

       

      Many thanks in advance,

       

      Nicolas

        • 1. Re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed executing addon-install-from-git
          gastaldi

          Hi nicolas,

           

          It looks like your cacerts is outdated. Are you using the latest JDK 8?

           

          Best Regards,

           

          George Gastaldi

          • 2. Re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed executing addon-install-from-git
            simplex-software

            Hi George,

             

            Sorry for the delay in answering your question. No, I'm using Java 7 as shown below:

             

            java version "1.7.0_51"

            Java(TM) SE Runtime Environment (build 1.7.0_51-b13)

            Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

             

            However, on another machine, with the following java:

             

            java version "1.7.0_11"

            Java(TM) SE Runtime Environment (build 1.7.0_11-b21)

            Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

             

            the same command:

             

            addon-install-from-git --url https://github.com/forge/addon-arquillian.git --coordinate org.arquillian.forge:arquillian-addon

             

            raises the following exception:

             

            [workspace8]$ addon-install-from-git  --url https://github.com/forge/addon-arquillian.git --coordinate  org.arquillian.forge.arquillian-addon

            ***INFO*** Installing Addon from Git     [0/4] ...

            ***INFO*** Installing Addon from Git:Cloning repository in C:\Users\nicolas\AppData\Local\Temp\1431878798599-0     [0/4] ...

            ***INFO*** Installing Addon from Git:Installing project into local repository     [1/4] ...

            [WARNING]

            [WARNING] Some problems were encountered while building the effective settings

            [WARNING] Unknown attribute 'schemaLocation' for tag 'settings' (position: START_TAG seen ...rg/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">... @3:114)  @ C:\Users\nicolas\.m2\settings.xml, line 3, column 114

            [WARNING]

            [INFO] Scanning for projects...

            [INFO]                                                                        

            [INFO] ------------------------------------------------------------------------

            [INFO] Building Arquillian Forge Addon 1.0.0-SNAPSHOT

            [INFO] ------------------------------------------------------------------------

            [INFO]

            [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ arquillian-addon ---

            [INFO]

            [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java-version) @ arquillian-addon ---

            [INFO]

            [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-version) @ arquillian-addon ---

            [INFO]

            [INFO] --- buildnumber-maven-plugin:1.3:create-timestamp (get-build-timestamp) @ arquillian-addon ---

            [INFO]

            [INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ arquillian-addon ---

            [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"

            [INFO] Working directory: C:\Users\nicolas\AppData\Local\Temp\1431878798599-0

            [INFO] Storing buildNumber: UNKNOWN at timestamp: 1431878811672

            [WARNING] Cannot get the branch information from the git repository:

            Detecting the current branch failed: 'git' n'est pas reconnu en tant que commande interne

            ou externe, un programme ex‚cutable ou un fichier de commandes.

             

            [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"

            [INFO] Working directory: C:\Users\nicolas\AppData\Local\Temp\1431878798599-0

            [INFO] Storing buildScmBranch: UNKNOWN_BRANCH

            [INFO]

            [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ arquillian-addon ---

            [INFO] Using 'UTF-8' encoding to copy filtered resources.

            [INFO] Copying 5 resources

            [INFO]

            [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ arquillian-addon ---

            [INFO] Changes detected - recompiling the module!

            [INFO] Compiling 30 source files to C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\classes

            [INFO]

            [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ arquillian-addon ---

            [INFO] Not copying test resources

            [INFO]

            [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ arquillian-addon ---

            [INFO] Not compiling test sources

            [INFO]

            [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ arquillian-addon ---

            [INFO] Tests are skipped.

            [INFO]

            [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ arquillian-addon ---

            [INFO] Building jar: C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\arquillian-addon-1.0.0-SNAPSHOT.jar

            [INFO]

            [INFO] --- maven-source-plugin:2.3:jar-no-fork (attach-sources) @ arquillian-addon ---

            [INFO] Building jar: C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\arquillian-addon-1.0.0-SNAPSHOT-sources.jar

            [INFO]

            [INFO] --- maven-jar-plugin:2.5:jar (create-forge-addon) @ arquillian-addon ---

            [INFO] Building jar: C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\arquillian-addon-1.0.0-SNAPSHOT-forge-addon.jar

            [INFO]

            [INFO] --- maven-install-plugin:2.5.1:install (default-install) @ arquillian-addon ---

            [INFO] Installing C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\arquillian-addon-1.0.0-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\org\arquillian\forge\arquillian-addon\1.0.0-SNAPSHOT\arquillian-addon-1.0.0-SNAPSHOT.jar

            [INFO] Installing C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\pom.xml to C:\Users\nicolas\.m2\repository\org\arquillian\forge\arquillian-addon\1.0.0-SNAPSHOT\arquillian-addon-1.0.0-SNAPSHOT.pom

            [INFO] Installing C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\arquillian-addon-1.0.0-SNAPSHOT-sources.jar to C:\Users\nicolas\.m2\repository\org\arquillian\forge\arquillian-addon\1.0.0-SNAPSHOT\arquillian-addon-1.0.0-SNAPSHOT-sources.jar

            [INFO] Installing C:\Users\nicolas\AppData\Local\Temp\1431878798599-0\target\arquillian-addon-1.0.0-SNAPSHOT-forge-addon.jar to C:\Users\nicolas\.m2\repository\org\arquillian\forge\arquillian-addon\1.0.0-SNAPSHOT\arquillian-addon-1.0.0-SNAPSHOT-forge-addon.jar

            [INFO] ------------------------------------------------------------------------

            [INFO] BUILD SUCCESS

            [INFO] ------------------------------------------------------------------------

            [INFO] Total time: 6.489 s

            [INFO] Finished at: 2015-05-17T18:06:56+02:00

            [INFO] Final Memory: 241M/729M

            [INFO] ------------------------------------------------------------------------

            ***INFO*** Installing Addon from Git:Removing previous addon installation (org.arquillian.forge.arquillian-addon,1.0.0-SNAPSHOT)     [2/4] ...

            ***INFO*** Installing Addon from Git:Installing addon (org.arquillian.forge.arquillian-addon,1.0.0-SNAPSHOT)     [3/4] ...

            ***ERROR*** Addon org.arquillian.forge.arquillian-addon,1.0.0-SNAPSHOT could not be installed: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.arquillian.forge.arquillian-addon:jar:forge-addon:1.0.0-SNAPSHOT in redhat-earlyaccess-all-repository (http://maven.repository.redhat.com/earlyaccess/all/)

            [workspace8]$

             

            Obviusly, it has to do with the maven repositories settings. Here is the relevant part of this file:

             

                      <repository>
                          <id>earlyaccess</id>
                          <url>http://maven.repository.redhat.com/earlyaccess/all/</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </repository>
                      <repository>
                          <id>earlyaccess</id>
                          <url>http://maven.repository.redhat.com/techpreview/all/</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </repository>

             

            So, what could be the problemhere ? I would like tomention that, in order to isolate things, I'm executing the whole stuff from home, i.e. without any HTTP proxy.

             

            Many thanks in advance for your help.

             

            Kind regards,

             

            Nicolas

            • 3. Re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed executing addon-install-from-git
              simplex-software

              I have re-installed my Java as there probably was a problem with my security directory. After re-install, I have the same exception on the both machines, as shown below:

               

              ***INFO*** Installing Addon from Git:Cloning repository in C:\Users\nicolas\AppData\Local\Temp\1431886723443-0 [0/4] ...

               

              ***INFO*** Installing Addon from Git:Installing project into local repository [1/4] ...

               

              ***INFO*** Installing Addon from Git:Removing previous addon installation (org.arquillian.forge.arquillian-addon,1.0.0-SNAPSHOT) [2/4] ...

               

              ***INFO*** Installing Addon from Git:Installing addon (org.arquillian.forge.arquillian-addon,1.0.0-SNAPSHOT) [3/4] ...

               

              ***ERROR*** Addon org.arquillian.forge.arquillian-addon,1.0.0-SNAPSHOT could not be installed: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.arquillian.forge.arquillian-addon:jar:forge-addon:1.0.0-SNAPSHOT in redhat-techpreview-all-repository (http://maven.repository.redhat.com/techpreview/all/)

               

               

              Looking in the mentioned repository (http://maven.repository.redhat.com/techpreview/all) there is no any org.arquillian artifact. So no the question is about the maven settings and the right repositories.

               

              Kind regards,

               

              Nicolas