Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] [egit-dev] Code yielding exception under eclipse, but not if executed "barely"

On Sun, Jan 16, 2011 at 02:38, Jan Finis <finis@xxxxxxxxx> wrote:
>
> When I write a test that calls this push operation to push a test branch to
> github, everything works. However, when I run EXACTLY THE SAME test push
> code from a test eclipse instance I get the following exception:
>
> Caused by: org.eclipse.jgit.errors.TransportException:
> https://github.com/gexicide/testor.git: cannot open git-receive-pack
...
> 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

Its your JRE.  Somehow under the test Eclipse the JRE doesn't have
access to the SSL root certificates.  JGit is just relying on the host
JRE's URLConnection to perform SSL handshaking with the remote peer
when using https://, and the test Eclipse has managed to break the
JRE's SSL root certificate list.  I'm not sure how/why.  Is it using
the same JRE?  Sometimes on Linux the root certificates aren't
installed into the JRE.

-- 
Shawn.


Back to the top