softwaremill / scala-clippy

Good advice for Scala compiler errors
Apache License 2.0
312 stars 20 forks source link

Unable to load/store local Clippy advice: sun.security.validator.ValidatorException #59

Open hongxuchen opened 7 years ago

hongxuchen commented 7 years ago

When using Clippy on my Mac I encountered an exception like below:

[info] Unable to load/store local Clippy advice due to: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The JVM information is:

$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I believe the root cause is not Clippy's since it works fine on another computer of mine (which is running on Linux with Java 8 and the same Clippy global settings). Unfortunately I really don't know how to add the certification correctly after googling. Can you provide some hints?

I also noticed another issue regarding Clippy advice #49 but that seems different.

jan0sch commented 7 years ago

I also have this problem using the following jdk version on FreeBSD 11:

java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

I circumvented it by using the InstallCert.java "trick" e.g. downloading and adding the certificate to the cacerts of the openjdk.