[GRADLE-973] NullPointerException Created: 11/Jun/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Philip Crotwell Assignee: Adam Murdoch
Resolution: Fixed Votes: 0


 Description   

$ gradle makeScript
:seisFile:compileJava UP-TO-DATE
:seisFile:processResources UP-TO-DATE
:seisFile:classes UP-TO-DATE
:seisFile:jar UP-TO-DATE
:TauP:compileJava UP-TO-DATE
:TauP:processResources

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.
  • Exception is:
    java.lang.NullPointerException: null
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:92)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.walkDir(DefaultDirectoryWalker.java:115)
    at org.gradle.api.internal.file.DefaultDirectoryWalker.start(DefaultDirectoryWalker.java:74)
    at org.gradle.api.internal.file.FileSet.visit(FileSet.java:93)
    at org.gradle.api.internal.file.FileSet.visit(FileSet.java:40)
    at org.gradle.api.internal.file.AbstractFileTree.getFiles(AbstractFileTree.java:36)
    at org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:61)
    at org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapshot(DefaultFileSnapshotter.java:41)
    at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.<init>(DefaultTaskArtifactStateRepository.java:271)
    at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.<init>(DefaultTaskArtifactStateRepository.java:260)
    at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java:122)
    at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:127)
    at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:287)
    at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.isUpToDate(ShortCircuitTaskArtifactStateRepository.java:34)
    at org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:40)
    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:224)
    at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:165)
    at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:158)
    at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:77)
    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:177)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    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:54)

BUILD FAILED

Total time: 8.631 secs
das-admins-macbook-pro-15:~/dev/seis/TauP crotwell$



 Comments   
Comment by Philip Crotwell [ 11/Jun/10 ]

Found that I had a open file edited with aquaemacs (this is on mac osx), and so there was both the regular file as well as a .swp file and a weird link. Not sure why emacs uses this link, but it appears to be the item that caused gradle to crash. After saving in aquaemacs, gradle ran fine. Here is ls -l showing the files.

drwxr-xr-x 7 crotwell staff 238 Jun 11 11:19 .
lrwxr-xr-x 1 crotwell staff 46 Jun 11 11:19 .#_init_.py -> crotwell@das-admins-macbook-pro-15.local.21741
drwxr-xr-x 4 crotwell staff 136 Jun 10 09:03 ..
rw-rr- 1 crotwell staff 12288 Jun 11 10:45 ._init_.py.swp
drwxr-xr-x 8 crotwell staff 272 Jun 11 10:41 .svn
rw-rr- 1 crotwell staff 481 Jun 11 11:18 _init_.py
rw-rr- 1 crotwell staff 4228 Jun 11 09:10 distaz.py

Comment by Adam Murdoch [ 04/Jul/10 ]

I'm pretty sure this problem was fixed in 0.9-preview-2. Were you using 0.9-preview-1 when this problem happened? Could you try again using a newer preview?

Comment by Philip Crotwell [ 05/Jul/10 ]

I believe you are correct, I updated to preview3 afterward and have not seen this behavior since. Close it.

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