Sbt update显示服务器访问错误:java.security.ProviderException:java.lang.NegativeArraySizeException

时间:2017-01-11 09:33:14

标签: java scala sbt

昨天一切正常,但今天我执行sbt update时我得到了:

[info] Resolving org.log4s#log4s_2.11;latest.release ...
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/org/log4s/log4s_2.11/maven-metadata.xml
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/org/log4s/log4s_2.11/
[warn]  module not found: org.log4s#log4s_2.11;latest.release
[warn] ==== local: tried
[warn]   /home/hkr/.ivy2/local/org.log4s/log4s_2.11/[revision]/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/log4s/log4s_2.11/[revision]/log4s_2.11-[revision].pom
[info] Resolving ch.qos.logback#logback-classic;latest.release ...
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/maven-metadata.xml
[error] Server access Error: java.security.ProviderException: java.lang.NegativeArraySizeException url=https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/

对于我的所有依赖项,搜索我发现了一些可能是CA Java证书的答案,但我已经安装了它们。

2 个答案:

答案 0 :(得分:3)

我有同样的问题,并且我将JDK从OpenJDK更改为OracleJDK。我从这里开始使用Fedora和SBT:http://www.scala-sbt.org/download.html

所以不需要升级Scala版本,特别是因为现在不是每个库都升级了。

答案 1 :(得分:1)

它最终正常运行,我必须将Scala更新为版本2.12.1并删除openjdk(Gentoo中的Icedtea)并安装oracle-jdk