I'm trying to use leiningen for the first time. I'm getting the dreaded "the
trustAnchors parameter must be non-empty" java error.
I'm running Debian/testing (buster/sid at the time of this writing). I
installed 2.8.1 via apt-get and have also tried running lein downloaded from
the leiningen.org site.
I have run both "sudo update-ca-certificates -f" and "
/var/lib/dpkg/info/ca-certificates-java.postinst configure" as suggested by
several people on stack exchange. You can see that it indeed updates the
cacerts file:
% java -XshowSettings:properties -version 2>&1 | grep home
java.home = /usr/lib/jvm/java-9-openjdk-amd64
% ls -l /usr/lib/jvm/java-9-openjdk-amd64/lib/security/cacerts
lrwxrwxrwx 1 root root 27 Mar 25 09:39
/usr/lib/jvm/java-9-openjdk-amd64/lib/security/cacerts ->
/etc/ssl/certs/java/cacerts
% ls -l /etc/ssl/certs/java/cacerts
-rw-r--r-- 1 root root 191828 Apr 1 15:00 /etc/ssl/certs/java/cacerts
My box is not behind a proxy or a firewall (though it has iptables blocking
inbound traffic as most hosts do).
There should be nothing unusual about my debian setup.
I continue to get this error:
lein repl
Could not transfer artifact org.clojure:tools.nrepl:jar:0.2.12 from/to central
(https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected
error: java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
Could not transfer artifact org.clojure:tools.nrepl:jar:0.2.12 from/to clojars
(https://repo.clojars.org/): java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter
must be non-empty
Could not transfer artifact clojure-complete:clojure-complete:jar:0.2.4 from/to
central (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException: the
trustAnchors parameter must be non-empty
Could not transfer artifact clojure-complete:clojure-complete:jar:0.2.4 from/to
clojars (https://repo.clojars.org/): java.lang.RuntimeException: Unexpected
error: java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
Could not transfer artifact org.clojure:tools.nrepl:pom:0.2.12 from/to central
(https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected
error: java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
Could not transfer artifact clojure-complete:clojure-complete:pom:0.2.4 from/to
central (https://repo1.maven.org/maven2/): java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException: the
trustAnchors parameter must be non-empty
This could be due to a typo in :dependencies, file system permissions, or
network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
...
Attachment:
signature.asc
Description: PGP signature