You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrade from Dependency Check 8.2.1 to 9.0.10 the build of a project with multiple subprojects that use Dependency Check the build pipeline fails with the error below. Downgrade back to 8.2.1 does not work due to NVD API changes.
Version of dependency-check used
The problem occurs using version 9.0.10 of the Gradle plugin.
Log file
Could not register JMX bean.
javax.management.InstanceAlreadyExistsException: org.apache.commons.jcs3:type=JCSAdminBean
at java.management/com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:436)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1865)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:960)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:895)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:320)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:523)
at org.apache.commons.jcs3.engine.control.CompositeCacheManager.initialize(CompositeCacheManager.java:271)
at org.apache.commons.jcs3.engine.control.CompositeCacheManager.getUnconfiguredInstance(CompositeCacheManager.java:212)
at org.apache.commons.jcs3.JCS.getCacheManager(JCS.java:116)
at org.apache.commons.jcs3.JCS.getInstance(JCS.java:159)
at org.owasp.dependencycheck.data.cache.DataCacheFactory.getPomCache(DataCacheFactory.java:155)
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.initialize(CentralAnalyzer.java:123)
at org.owasp.dependencycheck.Engine.lambda$loadAnalyzers$1(Engine.java:241)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.owasp.dependencycheck.Engine.loadAnalyzers(Engine.java:240)
at org.owasp.dependencycheck.Engine.initializeEngine(Engine.java:207)
at org.owasp.dependencycheck.Engine.<init>(Engine.java:196)
at org.owasp.dependencycheck.Engine.<init>(Engine.java:168)
at org.owasp.dependencycheck.Engine.<init>(Engine.java:158)
at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze.analyze(AbstractAnalyze.groovy:88)
...
Describe the bug
After upgrade from Dependency Check 8.2.1 to 9.0.10 the build of a project with multiple subprojects that use Dependency Check the build pipeline fails with the error below. Downgrade back to 8.2.1 does not work due to NVD API changes.
Version of dependency-check used
The problem occurs using version 9.0.10 of the Gradle plugin.
Log file
To Reproduce
Go to https://github.com/veita/dependency-check-cache-bug and follow the steps described there.
Expected behavior
Build should not throw an exception.
The text was updated successfully, but these errors were encountered: