Skip to content

java.lang.ArithmeticException: / by zero #1

@tommy38hk

Description

@tommy38hk

When running the plugin
<plugin> <groupId>io.github.dodogeny</groupId> <artifactId>bastion-maven-community-plugin</artifactId> <version>1.0.0</version> <!-- Use latest stable version --> <configuration> <!-- Basic settings --> <nvdApiKey>${env.NVD_API_KEY}</nvdApiKey> <skip>false</skip> <failOnError>true</failOnError> <severityThreshold>MEDIUM</severityThreshold> <reportFormats>HTML,JSON</reportFormats> <communityStorageMode>JSON_FILE</communityStorageMode> <jsonFilePath>${project.build.directory}/security/multi-module-vulnerabilities.json</jsonFilePath> </configuration> <executions> <execution> <goals> <goal>scan</goal> </goals> </execution> </executions> </plugin>
The following error occured

Caused by: java.lang.ArithmeticException: / by zero
at java.base/java.math.BigDecimal.divideAndRound(BigDecimal.java:4642)
at java.base/java.math.BigDecimal.divide(BigDecimal.java:5715)
at java.base/java.math.BigDecimal.divide(BigDecimal.java:1636)
at freemarker.core.ArithmeticEngine$BigDecimalEngine.divide(ArithmeticEngine.java:257)
at freemarker.core.ArithmeticEngine$BigDecimalEngine.divide(ArithmeticEngine.java:237)
at freemarker.core.ArithmeticExpression._eval(ArithmeticExpression.java:64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions