NullPointerException when writing report
See original GitHub issuePlease delete any un-needed section from the following issue template:
Reporting Bugs/Errors
We get a NullPointerException when running org.owasp:dependency-check-maven:3.3.0:aggregate
Log
https://gist.github.com/Jidehem/e9b89cb7bd61d2a1973a2f3ec38cb6dc
Log summary
Failed to execute goal org.owasp:dependency-check-maven:3.3.0:aggregate (default-cli) on project shared-parent
[…]
Caused by: java.lang.NullPointerException at org.owasp.dependencycheck.Engine.writeReports(Engine.java:1115) at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.runCheck(BaseDependencyCheckMojo.java:1135) at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.execute(BaseDependencyCheckMojo.java:697) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
We have the same issue using version 3.2.1. Main candidates:
- breaking change in newer version
- switch to using an oracle database instead of downloading files
- Enable artifactory analyser I’ll test with earlier versions and check why it worked before. And test only one of the change above if I am allowed to…
Configuration
Maven plugin configuration can be seen here: https://gist.github.com/Jidehem/e9b89cb7bd61d2a1973a2f3ec38cb6dc#file-maven-properties
StackTrace Analysis
According to code https://github.com/jeremylong/DependencyCheck/blob/master/core/src/main/java/org/owasp/dependencycheck/Engine.java, the “database” field is null.
Any idea why this field may be null ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
We have now encountered the same issue on 4.0.2 gradle plugin. We are using local embedded database for the data.
I found the spot where the exception message was being hidden. This will be resolved in the 5.0.0 release.