Null value in entry: dependencyCacheDir=null


(blackdrag) #1

Hi from the Groovy Project here,

As you can see in I run into
this problem of

The :groovy-bsf:compileJava task failed.
null value in entry: dependencyCacheDir=null

can somebody explain me why this happens and what it means? Google was
not too friendly with me in that respect.

bye Jochen

I've hit this again in 3.2.1. Is that expected?
(Lari Hotari) #2

Hi Jochen,

Thanks for reporting this problem.
I assume that removing the .gradle directory in the root project directory would fix the problem. However it seems that this might be a real bug that needs attention.

Please take a backup of that directory (.gradle in the root project directory) before removing it since it could possibly help later investigation. You might also want to upgrade the project to use latest stable version which is currently 3.0 .

Just for further reference, the NPE happened at this location (3.0-20160715000024) .

Caused by: java.lang.NullPointerException: null value in entry: dependencyCacheDir=nullClose stacktrace
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution$3.create(
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution$3.create(
at org.gradle.cache.internal.DefaultCacheAccess.useCache(
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(
at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution.getOutputFilesSnapshot(
at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.getOutputFiles(
at org.gradle.api.internal.tasks.DefaultTaskOutputs.getPreviousFiles(
at org.gradle.language.base.internal.tasks.SimpleStaleClassCleaner.execute(
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(
at org.gradle.api.tasks.compile.JavaCompile.compile(
at org.gradle.api.tasks.compile.JavaCompile.compile(

@lptr , could you take a look at this when you come back?


(blackdrag) #3

3.0-20160715000024 is older than 3.0… oh right, that was released about a week ago :wink: Anyway, removing the .gradle directory does indeed fix the problem for me.