Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
808 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 Reply

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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...