• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-ng-plugin
    • None
    • Jenkins 2.138.3
      Warnings NG 1.0.0-beta5
      Redhat 7 Host
      Tomcat 9.0.8
      JDK 1.8.0_172

      We've traditionally used the individual plugins (PMD, Findbugs) but came across this when one of our projects moved from Findbugs to Spotbugs.  We really like how the report looks and we're keen to use it in place of the older plugins...

      I've run into some trouble using the Findbugs option on the new plugin.  When I try to collect findbugs information I get this:
      [FindBugs] [ERROR] Parsing of file 'xxxxx' failed due to an exception:

      org.dom4j.DocumentException: Sax error Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
      at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391)
      at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
      at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
      at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
      at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
      at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
      at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
      at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
      at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
      at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
      at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
      at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3085)
      at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:369)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
       

      The strange part is if I copy the findbugs xml files to a different job I don't get the error.  The plugin does complain about not being able to find the source but it still process the data and gives me a nice report.  I guess the issue is being triggered when the plugin attempts to parse through the source code.

       

      just an addition here.  I'm seeing the same issue when I try and use spotbugs...  I know that isn't a surprise, but I thought I'd post it.
      [SpotBugs] [ERROR] Parsing of file '...' failed due to an exception: 14:41:22 14:41:22 org.dom4j.DocumentException: Sax error Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found*14:41:22* at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391)14:41:22 at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)14:41:22 at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)14:41:22 at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)14:41:22 at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)14:41:22 at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)14:41:22 at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)14:41:22 at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)14:41:22 at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)14:41:22 at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)14:41:22 at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)14:41:22 at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)14:41:22 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3085)14:41:22 at hudson.remoting.UserRequest.perform(UserRequest.java:212)14:41:22 at hudson.remoting.UserRequest.perform(UserRequest.java:54)14:41:22 at hudson.remoting.Request$2.run(Request.java:369)14:41:22 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)14:41:22 at java.util.concurrent.FutureTask.run(FutureTask.java:266)14:41:22 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)14:41:22 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)14:41:22 at java.lang.Thread.run(Thread.java:748)14:41:22 Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found*14:41:22* java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser*14:41:22* at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230)14:41:22 at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)14:41:22 at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388)14:41:22 ... 20 more

          [JENKINS-54700] Findbugs SAXParser not found

          Matt Wilson created issue -

          I think I ran into the same issue in the 1.0.0-beta5 when collecting SpotBugs results:

          [SpotBugs] Using default pattern '**/target/spotbugsXml.xml' since user defined pattern is not set
          [SpotBugs] [ERROR] Parsing of file '<path-to-project>/target/spotbugsXml.xml' failed due to an exception: 
          
          org.dom4j.DocumentException: Sax error  Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
          	at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391)
          	at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
          	at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
          	at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
          	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          	at hudson.remoting.Request$2.run(Request.java:369)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          	at java.lang.Thread.run(Thread.java:748)
          Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
          java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
          	at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230)
          	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
          	at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388)
          	... 20 more
          Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
          	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
          	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:845)
          	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:889)
          	at sun.reflect.GeneratedMethodAccessor5348.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:498)
          	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
          	at hudson.remoting.Request$2.run(Request.java:369)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
          	at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
          	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
          	... 4 more
          	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
          		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
          		at hudson.remoting.Request.call(Request.java:202)
          		at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)
          		at com.sun.proxy.$Proxy5.fetch3(Unknown Source)
          		at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209)
          		at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          		at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          		at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82)
          		at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228)
          		at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
          		at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388)
          		at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
          		at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
          		at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
          		at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084)
          		at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          		at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          		at hudson.remoting.Request$2.run(Request.java:369)
          		at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          		... 4 more
          Nested exception: 
          org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
          java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
          	at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230)
          	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
          	at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388)
          	at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
          	at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
          	at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
          	at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
          	at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
          	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          	at hudson.remoting.Request$2.run(Request.java:369)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          	at java.lang.Thread.run(Thread.java:748)
          Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
          	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
          	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080)
          	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:845)
          	at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:889)
          	at sun.reflect.GeneratedMethodAccessor5348.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:498)
          	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
          	at hudson.remoting.Request$2.run(Request.java:369)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
          	at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
          	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
          	... 4 more
          	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
          		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
          		at hudson.remoting.Request.call(Request.java:202)
          		at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)
          		at com.sun.proxy.$Proxy5.fetch3(Unknown Source)
          		at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209)
          		at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          		at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          		at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82)
          		at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228)
          		at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)
          		at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388)
          		at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
          		at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
          		at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
          		at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
          		at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
          		at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084)
          		at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          		at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          		at hudson.remoting.Request$2.run(Request.java:369)
          		at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          		... 4 more
          
          

          Christian Asselmeyer added a comment - I think I ran into the same issue in the 1.0.0-beta5 when collecting SpotBugs results: [SpotBugs] Using default pattern '**/target/spotbugsXml.xml' since user defined pattern is not set [SpotBugs] [ERROR] Parsing of file '<path-to-project>/target/spotbugsXml.xml' failed due to an exception: org.dom4j.DocumentException: Sax error Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355) at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97) at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70) at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101) at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388) ... 20 more Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:845) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:889) at sun.reflect.GeneratedMethodAccessor5348.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) ... 4 more Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.Request.call(Request.java:202) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286) at com.sun.proxy.$Proxy5.fetch3(Unknown Source) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82) at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355) at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97) at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70) at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101) at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) ... 4 more Nested exception: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355) at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97) at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70) at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101) at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:845) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:889) at sun.reflect.GeneratedMethodAccessor5348.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) ... 4 more Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.Request.call(Request.java:202) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286) at com.sun.proxy.$Proxy5.fetch3(Unknown Source) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:209) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:82) at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:228) at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388) at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368) at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355) at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111) at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97) at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70) at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101) at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68) at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3084) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) ... 4 more

          For me, collecting SpotBugs results works again after downgrading back to 1.0.0-beta4.

          Christian Asselmeyer added a comment - For me, collecting SpotBugs results works again after downgrading back to 1.0.0-beta4.

          Downgrading to 1.0.0-beta4 did not solve the problem in my case

          Tomasz Lisowski added a comment - Downgrading to 1.0.0-beta4 did not solve the problem in my case

          tomasz_lisowski I also had to downgrade analysis-model-api to 1.0.0-beta13 to get the Warning NG 1.0.0-beta4 working properly.

          Christian Asselmeyer added a comment - tomasz_lisowski I also had to downgrade analysis-model-api to 1.0.0-beta13 to get the Warning NG 1.0.0-beta4 working properly.
          Matt Wilson made changes -
          Description Original: We've traditionally used the individual plugins (PMD, Findbugs) but came across this when one of our projects moved from Findbugs to Spotbugs.  We really like how the report looks and we're keen to use it in place of the older plugins...

          I've run into some trouble using the Findbugs option on the new plugin.  When I try to collect findbugs information I get this:
          [FindBugs] [ERROR] Parsing of file 'xxxxx' failed due to an exception:

          org.dom4j.DocumentException: Sax error Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
          at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391)
          at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
          at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
          at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
          at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
          at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
          at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
          at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
          at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
          at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
          at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
          at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
          at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3085)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
           

          The strange part is if I copy the findbugs xml files to a different job I don't get the error.  The plugin does complain about not being able to find the source but it still process the data and gives me a nice report.  I guess the issue is being triggered when the plugin attempts to parse through the source code.
          New: We've traditionally used the individual plugins (PMD, Findbugs) but came across this when one of our projects moved from Findbugs to Spotbugs.  We really like how the report looks and we're keen to use it in place of the older plugins...

          I've run into some trouble using the Findbugs option on the new plugin.  When I try to collect findbugs information I get this:
           [FindBugs] [ERROR] Parsing of file 'xxxxx' failed due to an exception:

          org.dom4j.DocumentException: Sax error Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
           at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391)
           at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)
           at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)
           at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)
           at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)
           at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)
           at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)
           at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)
           at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)
           at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)
           at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)
           at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)
           at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3085)
           at hudson.remoting.UserRequest.perform(UserRequest.java:212)
           at hudson.remoting.UserRequest.perform(UserRequest.java:54)
           at hudson.remoting.Request$2.run(Request.java:369)
           at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
           Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
            

          The strange part is if I copy the findbugs xml files to a different job I don't get the error.  The plugin does complain about not being able to find the source but it still process the data and gives me a nice report.  I guess the issue is being triggered when the plugin attempts to parse through the source code.

           

          just an addition here.  I'm seeing the same issue when I try and use spotbugs...  I know that isn't a surprise, but I thought I'd post it.
          [SpotBugs] [ERROR] Parsing of file '...' failed due to an exception: *14:41:22* *14:41:22* org.dom4j.DocumentException: Sax error Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser not found*14:41:22* at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:391)*14:41:22* at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:368)*14:41:22* at edu.umd.cs.findbugs.SortedBugCollection.readXML(SortedBugCollection.java:355)*14:41:22* at edu.hm.hafner.analysis.parser.FindBugsParser.readXml(FindBugsParser.java:230)*14:41:22* at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:175)*14:41:22* at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:111)*14:41:22* at edu.hm.hafner.analysis.parser.FindBugsParser.parse(FindBugsParser.java:97)*14:41:22* at edu.hm.hafner.analysis.IssueParser.parse(IssueParser.java:70)*14:41:22* at io.jenkins.plugins.analysis.core.util.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:101)*14:41:22* at io.jenkins.plugins.analysis.core.util.FilesScanner.scanFiles(FilesScanner.java:85)*14:41:22* at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:68)*14:41:22* at io.jenkins.plugins.analysis.core.util.FilesScanner.invoke(FilesScanner.java:29)*14:41:22* at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3085)*14:41:22* at hudson.remoting.UserRequest.perform(UserRequest.java:212)*14:41:22* at hudson.remoting.UserRequest.perform(UserRequest.java:54)*14:41:22* at hudson.remoting.Request$2.run(Request.java:369)*14:41:22* at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)*14:41:22* at java.util.concurrent.FutureTask.run(FutureTask.java:266)*14:41:22* at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)*14:41:22* at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)*14:41:22* at java.lang.Thread.run(Thread.java:748)*14:41:22* Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found*14:41:22* java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser*14:41:22* at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:230)*14:41:22* at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:191)*14:41:22* at edu.umd.cs.findbugs.SortedBugCollection.doReadXML(SortedBugCollection.java:388)*14:41:22* ... 20 more
          Ulli Hafner made changes -
          Link New: This issue relates to JENKINS-51404 [ JENKINS-51404 ]
          Ulli Hafner made changes -
          Link New: This issue relates to JENKINS-38728 [ JENKINS-38728 ]

          Ulli Hafner added a comment -

          I added Xerces again (now 2.11.0). Actually I still do not know who actually is changing the sax parser property, so this is only a workaround for a problem somewhere else (other plugin, configuration?).

          A warning is now logged if your system has a non empty sax parser property (see commit#c1b80e6. Can you please check the log output on your system?

          Ulli Hafner added a comment - I added Xerces again (now 2.11.0). Actually I still do not know who actually is changing the sax parser property, so this is only a workaround for a problem somewhere else (other plugin, configuration?). A warning is now logged if your system has a non empty sax parser property (see commit#c1b80e6 . Can you please check the log output on your system?

          Matt Wilson added a comment -

          Thanks for the update!

          Your change seems to have corrected my spotbugs reporting issue.  Output looks pretty nice.

          I did a scan of my logs for "System property org.xml.sax.driver has been set but should be empty"

          and just "org.xml.sax.driver"

          both returned nothing.  Let me know if you need more info.

          Matt Wilson added a comment - Thanks for the update! Your change seems to have corrected my spotbugs reporting issue.  Output looks pretty nice. I did a scan of my logs for "System property org.xml.sax.driver has been set but should be empty" and just "org.xml.sax.driver" both returned nothing.  Let me know if you need more info.

            drulli Ulli Hafner
            mwilson Matt Wilson
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: