Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1903

Test Task failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-milestone-5
    • Fix Version/s: None

      Description

      Some of our test tasks are failing with the following exception
      The following debug output starts shortly before the issue occurs.
      The problem seems to have started sometime after we switched to milestone5, but it doesn't seem to be directly related to milestone5 as the builds did work for awhile after the transition. There does not appear to be any single commit in our repository that is triggering the failure.

      10:50:23.710 [DEBUG] [org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching request to worker: [Request consumer: c194cc2e-7e18-4833-a3fb-38c8c63bfbc4, payload: [MethodInvocation method: output()]]

      10:50:23.720 [DEBUG] [org.gradle.messaging.remote.internal.WorkerProtocol] Dispatching request to worker: [Request consumer: c194cc2e-7e18-4833-a3fb-38c8c63bfbc4, payload: [MethodInvocation method: started()]]

      10:50:23.721 [DEBUG] [org.gradle.api.tasks.testing.Test] Started test method makeAbsolute(com.MakeTest)

      10:50:27.404 [DEBUG] [org.gradle.messaging.remote.internal.Router] Removing route acf68dda-d996-4316-9d34-195f750399df due to end of stream.

      10:50:27.405 [DEBUG] [org.gradle.messaging.remote.internal.Router] Removing route 5087554e-f242-4764-90f2-7a4dd2812468 due to end of stream.

      10:50:27.405 [DEBUG] [org.gradle.messaging.remote.internal.ReceiveProtocol] Producer unavailable: [ProducerUnavailable id: acf68dda-d996-4316-9d34-195f750399df]

      10:50:27.405 [DEBUG] [org.gradle.messaging.remote.internal.SendProtocol] Consumer unavailable: [ConsumerUnavailable id: 5087554e-f242-4764-90f2-7a4dd2812468]

      10:50:27.455 [ERROR] [org.gradle.messaging.remote.internal.MessageHub] Could not dispatch message [EndOfStreamEvent]. Discarding message.

      org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:50184'.

      at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:99)

      at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35)

      at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)

      at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)

      at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

      at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)

      at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

      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(Unknown Source)

      at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)

      at sun.nio.ch.IOUtil.write(Unknown Source)

      at sun.nio.ch.SocketChannelImpl.write(Unknown Source)

      at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:214)

      at java.io.DataOutputStream.flush(Unknown Source)

      at java.io.ObjectOutputStream$BlockDataOutputStream.flush(Unknown Source)

      at java.io.ObjectOutputStream.flush(Unknown Source)

      at org.gradle.messaging.remote.internal.Message.send(Message.java:31)

      at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35)

      at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:96)

      ... 9 more

      10:50:27.504 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process finished for Gradle Worker 1.

      10:50:27.507 [DEBUG] [org.gradle.messaging.remote.internal.SendProtocol] All consumers stopped. Stopping now.

      10:50:27.509 [DEBUG] [org.gradle.messaging.remote.internal.ReceiveProtocol] No producers. Stopping now.

      10:50:27.509 [DEBUG] [org.gradle.messaging.remote.internal.Router] Received route unavailable. Message: [ProducerUnavailable id: fa37b9bc-a794-457c-96a8-58027a40b76e]

      10:50:27.512 [DEBUG] [org.gradle.messaging.remote.internal.Router] Received route unavailable. Message: [ConsumerUnavailable id: c194cc2e-7e18-4833-a3fb-38c8c63bfbc4]

      10:50:27.512 [DEBUG] [org.gradle.messaging.remote.internal.WorkerProtocol] Received worker stopped: [EndOfStreamEvent]

      10:50:27.522 [DEBUG] [org.gradle.api.tasks.testing.Test] Finished tests

      10:50:27.523 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':Common:test'

      10:50:27.534 [ERROR] [org.gradle.BuildExceptionReporter]

      10:50:27.535 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.

      10:50:27.536 [ERROR] [org.gradle.BuildExceptionReporter]

      10:50:27.536 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:

      10:50:27.536 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':Common:test'.

      10:50:27.537 [ERROR] [org.gradle.BuildExceptionReporter] Cause: Gradle Worker 1 finished with (non-zero) exit value 1.

      10:50:27.537 [ERROR] [org.gradle.BuildExceptionReporter]

      10:50:27.537 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:

      10:50:27.538 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':Common:test'.

      10:50:27.538 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71)

      10:50:27.538 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48)

      10:50:27.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)

      10:50:27.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)

      10:50:27.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)

      10:50:27.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)

      10:50:27.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)

      10:50:27.539 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)

      10:50:27.540 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)

      10:50:27.540 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:243)

      10:50:27.540 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:192)

      10:50:27.540 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:177)

      10:50:27.540 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:83)

      10:50:27.541 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:36)

      10:50:27.541 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:70)

      10:50:27.541 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$300(DefaultBuildExecuter.java:23)

      10:50:27.541 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:80)

      10:50:27.541 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)

      10:50:27.572 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:70)

      10:50:27.572 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:63)

      10:50:27.572 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:157)

      10:50:27.572 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)

      10:50:27.572 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)

      10:50:27.573 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:42)

      10:50:27.573 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.execute(RunBuildAction.java:28)

      10:50:27.573 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)

      10:50:27.573 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)

      10:50:27.573 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:233)

      10:50:27.573 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:217)

      10:50:27.574 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:48)

      10:50:27.574 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)

      10:50:27.574 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)

      10:50:27.574 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.Execution.execute(Execution.java:28)

      10:50:27.574 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)

      10:50:27.574 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.main(Main.java:39)

      10:50:27.575 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      10:50:27.575 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      10:50:27.575 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      10:50:27.575 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Unknown Source)

      10:50:27.575 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:51)

      10:50:27.575 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)

      10:50:27.576 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:24)

      10:50:27.576 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Gradle Worker 1 finished with (non-zero) exit value 1.

      10:50:27.576 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:335)

      10:50:27.576 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.DefaultWorkerProcess.waitForStop(DefaultWorkerProcess.java:145)

      10:50:27.576 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.testing.worker.ForkingTestClassProcessor.stop(ForkingTestClassProcessor.java:77)

      10:50:27.576 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.endBatch(RestartEveryNTestClassProcessor.java:60)

      10:50:27.577 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.stop(RestartEveryNTestClassProcessor.java:54)

      10:50:27.577 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      10:50:27.577 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      10:50:27.577 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      10:50:27.577 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Unknown Source)

      10:50:27.578 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)

      10:50:27.578 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)

      10:50:27.578 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)

      10:50:27.578 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)

      10:50:27.578 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

      10:50:27.578 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)

      10:50:27.579 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)

      10:50:27.579 [ERROR] [org.gradle.BuildExceptionReporter] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

      10:50:27.579 [ERROR] [org.gradle.BuildExceptionReporter] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      10:50:27.579 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.Thread.run(Unknown Source)

      10:50:27.579 [ERROR] [org.gradle.BuildExceptionReporter]

      10:50:27.579 [LIFECYCLE] [org.gradle.BuildResultLogger]

      10:50:27.580 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED

      10:50:27.580 [LIFECYCLE] [org.gradle.BuildResultLogger]

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            declercq Andrew Declercq
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: