Error in building Randoop

143 views
Skip to first unread message

Islam Elgendy

unread,
May 23, 2020, 10:26:33 AM5/23/20
to Randoop discussions
Hi,

I'm trying to build the code for Randoop. I have cloned the project from GitHub, and the first instruction to build the project is: ./gradlew build manual
it keeps on building for almost 7 mins, and a lot of tests pass, then at 57%, specifically at (randoop.main.minimizer.MinimizerTests > testWithMulitpleTestCases), the build fails with an exception.

The exception details are as follows:

Attempt 1 failed:
    command: [.\gradlew, -q, printJunitJarPath]
    exit status: -559038737  (failure)
    standard output:
    error output:
    Attempt 2 failed:
    command: [.\gradlew, -q, printJunitJarPath]
    exit status: -559038737  (failure)
    standard output:
    error output:
    Attempt 3 failed:
    command: [.\gradlew, -q, printJunitJarPath]
    exit status: -559038737  (failure)
    standard output:
    error output:
    Failed to run: ./gradlew -q printJunitJarPath
    Working directory: [path]
      [path]\.project
      [path]\.settings
      [path]\.travis-build.sh
      [path]\.travis.yml
      [path]\agent
      [path]\azure-pipelines.yml
      [path]\bin
      [path]\build
      [path]\build.gradle
      [path]\src
    user.dir: [path]\build\resources

Unexpected exception thrown.
org.gradle.internal.remote.internal.MessageIOException: Could not write '/127.0.0.1:52115'.
        at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:140)
        at org.gradle.internal.remote.internal.hub.MessageHub$ConnectionDispatch.run(MessageHub.java:331)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
        at sun.nio.ch.SocketDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:51)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
        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)
        ... 7 more
> Task :test FAILED
41 tests completed, 2 failed, 1 skipped
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> Process 'Gradle Test Executor 1' finished with non-zero exit value 1
  This problem might be caused by incorrect test process configuration.
  Please refer to the test execution section in the User Manual at https://docs.gradle.org/6.1.1/userguide/java_testing.html#sec:test_execution

Any idea how to fix this? 

image.png

Michael Ernst

unread,
May 23, 2020, 12:57:23 PM5/23/20
to Islam Elgendy, Randoop discussions
It looks like you are using Windows.  I don't use that OS, but I just made commit 02471b86 that might solve your problem.  If not, could you provide a patch?

Mike

--
You received this message because you are subscribed to the Google Groups "Randoop discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to randoop-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/randoop-discuss/66a0d8b2-4a32-41c0-81b8-4b522ec84fa0%40googlegroups.com.

Islam Elgendy

unread,
May 23, 2020, 4:49:05 PM5/23/20
to Randoop discussions
Hi Mike,

Thanks for your reply. 
I have pulled the latest update of the project. Unfortunately, the error is the same as before (Same exception). I'm not sure if it has to do with my OS (Windows 10).

Best,
Islam
To unsubscribe from this group and stop receiving emails from it, send an email to randoop...@googlegroups.com.

Islam Elgendy

unread,
May 25, 2020, 9:31:00 AM5/25/20
to Randoop discussions
Can you explain more about what do you mean by "provide a patch"?

Michael Ernst

unread,
May 25, 2020, 9:58:02 AM5/25/20
to Islam Elgendy, Randoop discussions
To provide a patch means to make changes to the source code that correct a problem.  Good luck!

Mike


To unsubscribe from this group and stop receiving emails from it, send an email to randoop-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/randoop-discuss/c082828e-e57b-4256-9177-54eb9f2aba61%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages