[eclipse] Unable to read repository at...
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Hi,
I am using STS 3.7.2.RELEASE (tried Juno Service Release 2 also).
When I tried to install PMD bellow expetion is show.
Unable to read repository at https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/content.xml.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Please help me on this.
The error indicates that the Java runtime doesn't trust the SSL certificate sourceforge is using. Since sourceforge is now redirecting to https always, the working to use an unsecured URL is not possible anymore.
Can you verify, that your eclipse installation is running with the latest Java runtime or JDK? (java 8 update 101/102). The Java runtime bundles the certificate store and should contain the root certificate for GeoTrust, that sourceforge is using.
You might need to configure eclipse to use the new java version.
Also, verify that you can open the URL with your web browser: https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ - if this doesn't work, you might have a network / firewall problem - and a java update won't help.
Hi Andreas,
I am uding Java 8. pls find the conf details from eclipse.
java.net.preferIPv4Stack=true
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_102-b14
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=1.8
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
java.version=1.8.0_102
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.8
java.vm.vendor=Oracle Corporation
java.vm.version=25.102-b14
line.separator=
I am able to install other plugins, i dont think it is a firewall problem.
Means, that java could not trust the TLS connection to the update site (https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site).
There are a couple of possibilities, that come into mind:
To verify #1, have a look at the file
jre/lib/security/cacertsin your jdk/jre installation:If it doesn't yield the lines Owner and Issuer, then your Java installation doesn't know about the GeoTrust certificate.
I've just tried to install pmd-eclipse with Luna SR2, and I didn't have a problem downloading pmd-eclipse...
To verify #3, open https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site - is the connection symbol green? (e.g. encryption is safe?)
Thanks for the reply Andreas.
I could install other plugins such as Eclemma, Moreunit, etc.
Also I have checked the JRE path and cacerts file, the content is junk but i could search "GeoTrust Global CA" from there.
Do you think it is the problem with network?
You might try to use "http://netassist.dl.sourceforge.net/project/pmd/pmd-eclipse/update-site/" - this is a specific mirror... or from "http://freefr.dl.sourceforge.net/project/pmd/pmd-eclipse/update-site/", which is another mirror.
If this works, then problem is somehow with #2 - the mirrors...
Thanks Andreas..
This link worked for me -- http://netassist.dl.sourceforge.net/project/pmd/pmd-eclipse/update-site/
Alternatively, the update site is also available as a zip archive for offline installations. The zip archive is available from the releases on github:
https://github.com/pmd/pmd-eclipse-plugin/releases
Just ran into the same issue when trying to install eclipse-cs (checkstyle).
Here is more info:
https://sourceforge.net/p/forge/site-support/14016/ and https://www.topjavablogs.com/news/how-to-trust-lets-encrypt-certificate-with-java