We have some WSDL generated java files, and recently when attempting to run parallel builds within Hudson, gradle-0.9-rc-1 failed with the below stack trace. Not sure if it's because of the parallel builds, or some other disk access race condition. I've not been able to replicate it again, but if I do, I'll be sure to update this JIRA.
FAILURE: Build aborted because of an internal error.
- What went wrong:
Build aborted because of an unexpected internal error. Please file an issue at: www.gradle.org.
- Try:
Run with -d option to get additional debug info.
org.gradle.api.UncheckedIOException: Could not read entry '<http://hudson:8080/hudson/job/FAKE_NAME/fake/path/to/dynamically/generated/java/files/XYZ.java'> from cache '/home/hudson/.gradle/caches/0.9-rc-1/outputFileStates/cache.bin'.
at org.gradle.cache.btree.BTreePersistentIndexedCache.get(BTreePersistentIndexedCache.java:125)
at org.gradle.api.internal.changedetection.OutputFilesSnapshotter.snapshot(OutputFilesSnapshotter.java:63)
at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.snapshot(DefaultTaskArtifactStateRepository.java:254)
at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.update(DefaultTaskArtifactStateRepository.java:350)
at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.update(ShortCircuitTaskArtifactStateRepository.java:43)
at org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:52)
at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57)
at org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35)
at org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32)
at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:231)
at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167)
at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160)
at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78)
at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:161)
at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:153)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:107)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:75)
at org.gradle.launcher.Main.execute(Main.java:93)
at org.gradle.launcher.Main.main(Main.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.launcher.GradleMain.main(GradleMain.java:49)
Caused by: java.lang.ClassCastException: null
at java.lang.Class.cast(Class.java:2990)
at org.gradle.cache.btree.CachingBlockStore.read(CachingBlockStore.java:80)
at org.gradle.cache.btree.FreeListBlockStore.read(FreeListBlockStore.java:78)
at org.gradle.cache.btree.StateCheckBlockStore.read(StateCheckBlockStore.java:61)
at org.gradle.cache.btree.BTreePersistentIndexedCache$IndexBlock.get(BTreePersistentIndexedCache.java:441)
at org.gradle.cache.btree.BTreePersistentIndexedCache.get(BTreePersistentIndexedCache.java:115)
... 24 common frames omitted
|