[GRADLE-359] crash after running hello world Created: 12/Jan/09  Updated: 04/Jan/13  Resolved: 31/Aug/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.5.2
Fix Version/s: None

Type: Bug
Reporter: Amol Takate Assignee: Hans Dockter
Resolution: Fixed Votes: 0

Attachments: File build.gradle    

 Description   

Hi,

Please run the attached gradle file.
You will get crash:::
-----------------------------------
D:\dev\Catlogic\Leo-common>gradle

Build aborted because of an internal error.
Run with -d option to get additonal debug info. Please file an issue at: www.
dle.org

org.gradle.api.UncheckedIOException: java.io.IOException: Unable to delete fi
D:\dev\Catlogic\Leo-common\.gradle\cache\build.gradle\cache.properties
at org.gradle.util.GFileUtils.deleteDirectory(GFileUtils.java:192)
at org.gradle.groovy.scripts.DefaultScriptCompilationHandler.writeToC
e(DefaultScriptCompilationHandler.java:70)
at org.gradle.groovy.scripts.DefaultScriptProcessor.loadViaCache(Defa
ScriptProcessor.java:65)
at org.gradle.groovy.scripts.DefaultScriptProcessor.createScript(Defa
ScriptProcessor.java:41)
at org.gradle.api.internal.project.BuildScriptProcessor.createScript(
ldScriptProcessor.java:48)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractP
ect.java:504)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractP
ect.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(Invoker
per.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp
java:758)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Sc
tBytecodeAdapter.java:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(Sc
tBytecodeAdapter.java:198)
at org.gradle.configuration.BuildConfigurer$_closure1.doCall(BuildCon
urer.groovy:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMetho
losureMetaClass.java:248)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.Closure.call(Closure.java:292)
at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(Converte
osure.java:48)
at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHan
r.java:72)
at $Proxy0.execute(Unknown Source)
at org.gradle.api.internal.project.AbstractProject.applyActions(Abstr
Project.java:476)
at org.gradle.api.internal.project.AbstractProject.allprojects(Abstra
roject.java:471)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(Invoker
per.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp
java:758)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Sc
tBytecodeAdapter.java:170)
at org.gradle.configuration.BuildConfigurer.process(BuildConfigurer.g
vy:51)
at org.gradle.Gradle.runInternal(Gradle.java:115)
at org.gradle.Gradle.run(Gradle.java:93)
at org.gradle.Main.execute(Main.java:232)
at org.gradle.Main.main(Main.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gradle.BootstrapMain.main(BootstrapMain.java:53)
Caused by: java.io.IOException: Unable to delete file: D:\dev\Catlogic\Leo-co
n\.gradle\cache\build.gradle\cache.properties
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977
at org.gradle.util.GFileUtils.deleteDirectory(GFileUtils.java:190)
... 54 common frames omitted

BUILD FAILED

Total time: 0.966 secs



 Comments   
Comment by Hans Dockter [ 12/Jan/09 ]

This looks like the same issue (http://jira.codehaus.org/browse/GRADLE-354) which I thought would be fixed with 0.5.2.

You can run the build with gradle -r hello. This rebuilds the cache. Stuff should work then. Could you tell us the output of gradle -v?

Comment by Hans Dockter [ 31/Aug/09 ]

I consider this a fixed with 0.6.

Generated at Wed Jun 30 11:28:08 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.