Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
708 views
in Technique[技术] by (71.8m points)

emacs - Java version issues with nREPL server and clojure, Tricky version/compatibility issue

This is the error specifically:

error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Could not transfer artifact refactor-nrepl:refactor-nrepl:jar:2.5.0 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 refactor-nrepl:refactor-nrepl:jar:2.5.0 from/to clojars (https://repo.clojars.org/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Failed to read artifact descriptor for refactor-nrepl:refactor-nrepl:jar:2.5.0

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.

error in process sentinel: Could not start nREPL server: Could not transfer artifact refactor-nrepl:refactor-nrepl:jar:2.5.0 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 refactor-nrepl:refactor-nrepl:jar:2.5.0 from/to clojars (https://repo.clojars.org/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Failed to read artifact descriptor for refactor-nrepl:refactor-nrepl:jar:2.5.0

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.

I'm not behind a proxy. What is the issue here exactly? I've gotten this as a new issue when I changed out my java version for an open jdk version 8. So, it's related to that. It DOES get farther then a previous java exception error I was getting before. I'm very certain this has something to do with it but am not sure what exactly is going on here.

question from:https://stackoverflow.com/questions/65623461/java-version-issues-with-nrepl-server-and-clojure-tricky-version-compatibility

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

What command did you try to execute?

When I do this:

clj -Sdeps '{:deps {refactor-nrepl {:mvn/version "2.5.0"}}}'

it works just fine (and gives me a REPL with that dependency).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...