[GRADLE-3546] Null value in entry: dependencyCacheDir=null Created: 31/Aug/16  Updated: 21/Sep/16  Resolved: 21/Sep/16

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

Type: Bug
Reporter: Stefan Wolf Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0

Issue Links:
Related
Related to GRADLE-3545 NullPointerException when running two... Resolved

 Description   

See https://discuss.gradle.org/t/null-value-in-entry-dependencycachedir-null/19191

Here is the build scan: https://scans.gradle.com/s/fyv3pmflxg6zg

The NPE happened at this location) (3.0-20160715000024) .

Caused by: java.lang.NullPointerException: null value in entry: dependencyCacheDir=nullClose stacktrace
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)
at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:206)
at com.google.common.collect.ImmutableSortedMap$Builder.put(ImmutableSortedMap.java:371)
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution$3.create(CacheBackedTaskHistoryRepository.java:281)
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution$3.create(CacheBackedTaskHistoryRepository.java:276)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:192)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:102)
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCacheFactory.java:183)
at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:56)
at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository$LazyTaskExecution.getOutputFilesSnapshot(CacheBackedTaskHistoryRepository.java:276)
at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.getOutputFiles(DefaultTaskArtifactStateRepository.java:126)
at org.gradle.api.internal.tasks.DefaultTaskOutputs.getPreviousFiles(DefaultTaskOutputs.java:247)
at org.gradle.language.base.internal.tasks.SimpleStaleClassCleaner.execute(SimpleStaleClassCleaner.java:33)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:32)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:169)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:150)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:98)


 Comments   
Comment by Stefan Wolf [ 31/Aug/16 ]

That is probably caused by some leftovers of an older Gradle version. We could silently ignore the entries. Currently, I would wait if we get more reports like that and if we can reproduce it locally, this is why I moved the "Fix version" to 3.2-rc-1.

Generated at Wed Jun 30 12:51:37 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.