gpt4 book ai didi

exception - Gradle 构建/测试失败 - kryo.KryoException : Buffer overflow

转载 作者:行者123 更新时间:2023-11-28 20:30:52 25 4
gpt4 key购买 nike

在运行 Gradle 构建时,测试失败。

附言:

1. Gradle 使用正确的 JDK (1.6) 进行构建。
2. 我用 JDK 1.7 试过这个,同样的错误也出现在那里。
3. 当我在 linux/windows 上本地构建它时(使用 JDK 1.6)我没有看到这个错误
4. 机器,但其中一台机器给我这个错误。

我的?
1. 如何修复 com.esotericsoftware.kryo.KryoException: Buffer overflow 错误。
2. 为什么 Gradle 进程失败,即使 build.gradle 中的测试部分说:

   test {

ignoreFailures=true
//more code here for test section...
//..
}

感谢任何提示/帮助。错误截图如下:

:test
Unexpected exception thrown.
org.gradle.messaging.remote.internal.MessageIOException: Could not read message from '/0:0:0:0:0:0:0:1:53371'.
at org.gradle.messaging.remote.internal.inet.SocketConnection.receive(SocketConnection.java:88)
at org.gradle.messaging.remote.internal.hub.MessageHub$ConnectionReceive.run(MessageHub.java:230)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.esotericsoftware.kryo.KryoException: Buffer underflow.
at com.esotericsoftware.kryo.io.Input.require(Input.java:162)
at com.esotericsoftware.kryo.io.Input.readByte(Input.java:255)
at org.gradle.messaging.remote.internal.hub.InterHubMessageSerializer$MessageReader.read(InterHubMessageSerializer.java:64)
at org.gradle.messaging.remote.internal.hub.InterHubMessageSerializer$MessageReader.read(InterHubMessageSerializer.java:53)
at org.gradle.messaging.remote.internal.inet.SocketConnection.receive(SocketConnection.java:83)
... 5 more
> Building > :test > 84 tests completed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> Process 'Gradle Worker 6' finished with non-zero exit value 139

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

最佳答案

这是一个内部错误。最好的机会是尝试使用最新的 Gradle 版本。

关于exception - Gradle 构建/测试失败 - kryo.KryoException : Buffer overflow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26721837/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com