[GRADLE-1903] Test Task failure Created: 08/Nov/11 Updated: 10/Feb/17 Resolved: 10/Feb/17 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-5 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Andrew Declercq | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 7 |
Attachments: | error_stacktrace.txt |
Description |
Some of our test tasks are failing with the following exception 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] |
Comments |
Comment by Glen Stampoultzis [ 03/May/12 ] |
I sometimes see this error as well on milestone-8a |
Comment by Wojtek [ 13/Jun/12 ] |
I had issue on milestone-8a. |
Comment by Ryan Nelson [ 30/Jul/12 ] |
We're seeing this on the 1.0 release. Failing at the end of test execution. Running a clean build resolved it. Stack trace attached. |
Comment by Adam Murdoch [ 27/Dec/12 ] |
This should be fixed now. Can you try with a recent nightly build from http://gradle.org/nightly and let us know if the problem has gone or not? |
Comment by Andrew Declercq [ 03/Jan/13 ] |
We attempted the build again on Windows with last nights build and we are still seeing the same failure/exception. |
Comment by Adam Murdoch [ 04/Jan/13 ] |
There are two failures in the logging output. The first one starts with: 10:50:27.455 [ERROR] [org.gradle.messaging.remote.internal.MessageHub] Could not dispatch message [EndOfStreamEvent]. Discarding message. The second one is the build failure: 10:50:27.536 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':Common:test'. If you're still seeing the first failure message, then you're not using the new nightly build for some reason, because that code is gone. If the first failure message is gone, but you're still seeing the second failure, then could you post the logging output you are getting now? |
Comment by Andrew Declercq [ 10/Jan/13 ] |
This is the error message from the run using the nightly build (1-3-2013 I believe) :test FAILURE: Build failed with an exception.
BUILD FAILED Total time: 1 mins 41.452 secs |
Comment by Farrukh Najmi [ 24/Nov/15 ] |
I am running into this 100% of the time in my new project that runs older junit tests (src tree pulled from an eclipse ant project). I would really appreciate any updates on this issue. Update: |
Comment by Benjamin Muschko [ 15/Nov/16 ] |
As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub. We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to. Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:
We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle! |
Comment by Benjamin Muschko [ 10/Feb/17 ] |
Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved. |