Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24743

Findbug and PMD are broken in Jenkins 1.565.2

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Component/s: findbugs-plugin, pmd-plugin
    • Labels:
      None
    • Environment:
      windows server 2012 R2 and windows7
    • Similar Issues:

      Description

      I have upgraded Jenkins to version 1.565.2 and after that when we are running Findbugs and PMD jobs they are failing with nullpointer exception code snippet is shown below

      [FINDBUGS] Collecting findbugs analysis files...
      ERROR: Publisher hudson.plugins.findbugs.FindBugsPublisher aborted due to exception
      java.lang.NullPointerException
      at org.apache.commons.digester3.Digester.getXMLReader(Digester.java:799)
      at org.apache.commons.digester3.Digester.parse(Digester.java:1642)
      at org.apache.commons.digester3.Digester.parse(Digester.java:1701)
      at hudson.plugins.findbugs.parser.FindBugsParser.preParse(FindBugsParser.java:229)
      at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:187)
      at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:172)
      at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:140)
      at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:300)
      at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:258)
      at hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:209)
      at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:178)
      at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:328)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Unknown Source)
      [PMD] Collecting PMD analysis files...
      ERROR: Publisher hudson.plugins.pmd.PmdPublisher aborted due to exception
      java.lang.NullPointerException
      at org.apache.commons.digester3.Digester.getXMLReader(Digester.java:799)
      at org.apache.commons.digester3.Digester.parse(Digester.java:1642)
      at org.apache.commons.digester3.Digester.parse(Digester.java:1701)
      at hudson.plugins.pmd.parser.PmdParser.parse(PmdParser.java:70)
      at hudson.plugins.analysis.core.AbstractAnnotationParser.parse(AbstractAnnotationParser.java:53)
      at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:300)
      at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:258)
      at hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:209)
      at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:178)
      at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2474)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:328)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          How do you connect slave and master? Is your slave a Windows client with the same java version? Is the slave.jar up-to-date? Would it be possible to build my plug-in (run unit tests) on your slave in order to see if this is a general problem or a problem caused by Jenkins classloader?

          Show
          drulli Ulli Hafner added a comment - How do you connect slave and master? Is your slave a Windows client with the same java version? Is the slave.jar up-to-date? Would it be possible to build my plug-in (run unit tests) on your slave in order to see if this is a general problem or a problem caused by Jenkins classloader?
          Hide
          skl Sylwia Kludacz added a comment -

          The problem seems to be related to slave node and I was able to run the same job on different slave successfully. What exactly on the slave node is causing this issue I don't know yet as it is using the same java version as server. Will need to investigate this further

          Show
          skl Sylwia Kludacz added a comment - The problem seems to be related to slave node and I was able to run the same job on different slave successfully. What exactly on the slave node is causing this issue I don't know yet as it is using the same java version as server. Will need to investigate this further
          Hide
          integer Kanstantsin Shautsou added a comment -

          Jar may exist but will be not used.
          Please check that you have no plugins that do classloading before core classloading.

          Show
          integer Kanstantsin Shautsou added a comment - Jar may exist but will be not used. Please check that you have no plugins that do classloading before core classloading.
          Hide
          drulli Ulli Hafner added a comment -

          Is this still a problem, then please reopen. I can't reproduce it.

          Show
          drulli Ulli Hafner added a comment - Is this still a problem, then please reopen. I can't reproduce it.
          Hide
          skl Sylwia Kludacz added a comment -

          This problem has been resolved now and it was related to xerces on Jenkins server. There were two instances of the xercesImpl.jar file on the server, one in the endorsed directory and one in the ext directory.
          It looks like Jenkins was loading the one from the endorsed directory first, the endorsed directory didn’t have the xml-apis.jar file which has dependency links from the xercesImpl.jar library.
          By deleting the lib from the endorsed folder it resolved the issue.

          Show
          skl Sylwia Kludacz added a comment - This problem has been resolved now and it was related to xerces on Jenkins server. There were two instances of the xercesImpl.jar file on the server, one in the endorsed directory and one in the ext directory. It looks like Jenkins was loading the one from the endorsed directory first, the endorsed directory didn’t have the xml-apis.jar file which has dependency links from the xercesImpl.jar library. By deleting the lib from the endorsed folder it resolved the issue.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              bhnau_pathak bhanu pathak
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: