简体   繁体   English

Java nREPL 服务器和 clojure 的版本问题,棘手的版本/兼容性问题

[英]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 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: 意外错误: java.security.InvalidAlgorithmParameterException: trustAnchors 参数必须为非空

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 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 参数必须为非空

Failed to read artifact descriptor for refactor-nrepl:refactor-nrepl:jar:2.5.0无法读取 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.如果您使用代理,请尝试设置“http_proxy”环境变量。

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 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:意外错误:java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须为非空

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 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 参数必须为非空

Failed to read artifact descriptor for refactor-nrepl:refactor-nrepl:jar:2.5.0无法读取 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.如果您使用代理,请尝试设置“http_proxy”环境变量。

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.当我将我的 java 版本更改为开放 jdk 版本 8 时,我将其作为一个新问题。所以,它与此有关。 It DOES get farther then a previous java exception error I was getting before.它确实比我之前遇到的以前的 java 异常错误更远。 I'm very certain this has something to do with it but am not sure what exactly is going on here.我很确定这与它有关,但不确定这里到底发生了什么。

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).它工作得很好(并给了我一个具有这种依赖关系的 REPL)。

SOLVED: It was Java bs.已解决:它是 Java bs。 Make sure to have your dependencies in a good position.确保将您的依赖项放在一个好的 position 中。 I was using the "recommended" version 8 and prior to that version 11 long term support versions.我使用的是“推荐”版本 8 和该版本 11 之前的长期支持版本。 Those sucked.那些烂透了。 I was using their OpenJDK equivalents, those sucked.我正在使用他们的 OpenJDK 等价物,那些很糟糕。 I switched to the OpenJDK latest version (15) and that did the trick.我切换到 OpenJDK 最新版本 (15) 并且成功了。 So basically, it was a whole dependency issue...sigh.所以基本上,这是一个完整的依赖问题......叹息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM