question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cache properties `dependencycheck-cache.properties` could not be found

See original GitHub issue

I am trying to update from 6.0.5 to 6.1.1, and am getting the following error: I see that it’s from

try (InputStream in = FileUtils.getResourceAsStream(CACHE_PROPERTIES)) {

but i don’t see it in the jar file (at least not the main one). Is this something i’m supposed to add to the classpath myself?

[dependency-check] Unable to create an Input Stream for dependencycheck.properties

[2021-02-17T04:23:08.286Z] [dependency-check] Did not find settings file 'dependencycheck.properties'.

[2021-02-17T04:23:08.286Z] [dependency-check] Unable to create an Input Stream for dependencycheck-cache.properties

[2021-02-17T04:23:08.286Z] 

[2021-02-17T04:23:08.286Z] BUILD FAILED

[2021-02-17T04:23:08.286Z] /scratch/gbuora/workspace/jenkins/workspace/Microservice_Cluster/build.xml:381: java.lang.RuntimeException: Cache properties `dependencycheck-cache.properties` could not be found

[2021-02-17T04:23:08.286Z] 	at org.owasp.dependencycheck.data.cache.DataCacheFactory.<init>(DataCacheFactory.java:99)

[2021-02-17T04:23:08.286Z] 	at org.owasp.dependencycheck.analyzer.CentralAnalyzer.initialize(CentralAnalyzer.java:123)

[2021-02-17T04:23:08.286Z] 	at org.owasp.dependencycheck.Engine.lambda$loadAnalyzers$1(Engine.java:226)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremylongcommented, Feb 19, 2021

Fix will be included in 6.1.2

1reaction
cstswcommented, Feb 18, 2021

@chhil The differences in our stacktraces may result from the fact, that I don’t let my build fail if the dependency-check task fails (failonerror="false"). (This is due to the fact that I’ve included it in my nightly build and I dont’t want it to fail just because some cve-database may not be downloadable once in a while. Jenkins marks my build as unstable when this happens so that I can react to it if dependency-check fails continuously.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cache.properties (The system cannot find the file specified)
Navigate to C:\Users\user\.gradle\caches\2. · Copy the folder scripts , scripts-remapped and paste it somewhere safe just in case anything went wrong you will...
Read more >
00041: Layer's cache properties do not allow local caching
A layer contained in your basemap layer is a web map service whose cache options are set to Do Not Cache. Layers with...
Read more >
DbclassCache.properties.* - IBM
The dbclassCache.properties file contains a list of the Sterling Order Management Software tables and the associated DBCache class. Every table listed will ......
Read more >
CacheSetProperties - Adobe Support
Description. Sets the cache properties for the object cache, the page cache, or both. If a cache does not yet exist, creates it....
Read more >
Configuration cache - Gradle User Manual
The configuration cache does not support all core Gradle plugins and and features ... You can also enable the cache persistently in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found