Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3214

Build hangs when FindBugs crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3-rc-1

      Description

      When FindBugs crashes with a problem of class Error the build hangs. In my case, the FindBugs crashed due to:

      java.lang.NoClassDefFoundError: org/apache/bcel/classfile/ClassFormatException
      	at org.gradle.api.plugins.quality.internal.findbugs.FindBugsExecuter.runFindbugs(FindBugsExecuter.java:41)
      	at org.gradle.api.plugins.quality.internal.findbugs.FindBugsWorkerServer.execute(FindBugsWorkerServer.java:45)
      	at org.gradle.api.plugins.quality.internal.findbugs.FindBugsWorkerServer.execute(FindBugsWorkerServer.java:35)
      	at org.gradle.api.plugins.quality.internal.findbugs.FindBugsWorkerServer.execute(FindBugsWorkerServer.java:26)
      	at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:78)
      	at org.gradle.process.internal.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:35)
      	at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:85)
      	at org.gradle.process.internal.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:41)
      	at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:48)
      	at org.gradle.process.internal.child.IsolatedApplicationClassLoaderWorker.call(IsolatedApplicationClassLoaderWorker.java:30)
      	at org.gradle.process.internal.launcher.GradleWorkerMain.run(GradleWorkerMain.java:32)
      	at org.gradle.process.internal.launcher.GradleWorkerMain.main(GradleWorkerMain.java:37)
      Caused by: java.lang.ClassNotFoundException: org.apache.bcel.classfile.ClassFormatException
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 12 more
      

        Attachments

          Activity

            People

            Assignee:
            szczepiq Szczepan Faber
            Reporter:
            szczepiq Szczepan Faber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: