This message was deleted.
# community-support
s
This message was deleted.
f
Copy code
Successfully started process 'Gradle Test Executor 28'

Unexpected exception thrown.
org.gradle.internal.remote.internal.MessageIOException: Could not write '/127.0.0.1:61213'.
        at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:140)
        at org.gradle.internal.remote.internal.hub.MessageHub$ConnectionDispatch.run(MessageHub.java:333)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: Connection reset by peer
        at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
        at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:54)
        at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:132)
        at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:76)
        at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:53)
        at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:532)
        at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.writeWithNonBlockingRetry(SocketConnection.java:279)
        at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.writeBufferToChannel(SocketConnection.java:267)
        at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:261)
        at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:138)
        ... 6 more

> Task :testlib:test FAILED
So I am trying to do a
gradle test --tests "someTestName"
to see if some test can be launched, and this test is a bit specially configured, as it uses some eclipse osgi stuff and could also loads some jni stuff, so it could be something will cause the test JVM to fail, I guess, but while setting up the tests and configuring the dependencies, I have no idea what is missing. If I launch gradle test then I just got this weird internal error. (And no other stack trace or anything which could tell me more stuff.)
If I change the test to be something quite simple, still using some osgi stuff but only using some simple modules there, the gradle test can work without problems. But then when I put some "heavier stuff" into the test, I then get into the situation above.
I saw somewhere mentions if memory too low it could cause things like this, so I tried to set
maxHeapSize = "8096m"
in test config, but still no good result yet, so perhaps something else is not working at the moment...