GithubHelp home page GithubHelp logo

A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForWorker$SpotBugsExecutor about spotbugs-gradle-plugin HOT 5 OPEN

pankajrc11 avatar pankajrc11 commented on September 27, 2024
A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForWorker$SpotBugsExecutor

from spotbugs-gradle-plugin.

Comments (5)

hazendaz avatar hazendaz commented on September 27, 2024 1

@pankajrc11 6.0.2 is the latest, can you try that one?

from spotbugs-gradle-plugin.

hazendaz avatar hazendaz commented on September 27, 2024

from spotbugs-gradle-plugin.

pankajrc11 avatar pankajrc11 commented on September 27, 2024

I am using latest version 6.0.0-beta.2 with java 8 still getting now getting below error

Task :spotbugsMain FAILED
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

  • What went wrong:
    Execution failed for task ':spotbugsMain'.

A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForHybrid$SpotBugsExecutor
Verification failed: SpotBugs ended with exit code 1.

  • Try:

from spotbugs-gradle-plugin.

KengoTODA avatar KengoTODA commented on September 27, 2024
  1. To support Android developers, v6 now requires Java 11 or later. It is OK to run SpotBugs itself on Java8 (by jvmtoolchain), but make sure the Gradle itself is running on Java 11 or later.
  2. Make sure your project has dom4j.jar in its classpath. Generally it should be introduced by SpotBugs, but your build script may exclude them explicitly.

from spotbugs-gradle-plugin.

HoffmannTom avatar HoffmannTom commented on September 27, 2024

I have the same error, tested with spotbugs 6.0.17
The stacktrace is:

Caused by: org.gradle.api.GradleException: Verification failed: SpotBugs ended with exit code 1.
        at com.github.spotbugs.snom.internal.SpotBugsRunnerForHybrid$SpotBugsExecutor.execute(SpotBugsRunnerForHybrid.kt:125)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)

I am using Java 21. Unfortunately, I can't find any further error information.

from spotbugs-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.