Gradle构建/测试失败-kryo.KryoException:缓冲区溢出 [英] Gradle build / test failed - kryo.KryoException: Buffer overflow

查看:525
本文介绍了Gradle构建/测试失败-kryo.KryoException:缓冲区溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

While running a Gradle build, tests are failing.

PS:


1. Gradle使用的是正确的JDK (1.6)建立。

2.我在JDK 1.7中进行了尝试,同样出现了同样的错误。

3.当我在linux / windows上本地构建(使用JDK 1.6)时,看不到此错误。

4.机器,但其中一台正在运行我这个错误。

PS:

1. Gradle is using the correct JDK (1.6) to build.
2. I tried this with JDK 1.7, same error comes there as well.
3. I don't see this error when I build it locally (with JDK 1.6) on a linux/windows
4. machine but one of the machine is giving me this error.

我的?s

1.如何解决com.esotericsoftware.kryo.KryoException:缓冲区溢出错误。

2.为什么Gradle进程失败,即使build.gradle中的测试部分说:

My ?s
1. What can be done to fix the com.esotericsoftware.kryo.KryoException: Buffer overflow error.
2. Why Gradle process failed, even when test section in build.gradle says:

   test {

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

感谢任何提示/帮助。错误快照如下所示:

Any hints/help appreciated. Error snapshot is shown below:

: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版本。

It's an internal error. Best chance is to try with the latest Gradle version.

这篇关于Gradle构建/测试失败-kryo.KryoException:缓冲区溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆