[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Ulli Hafner resolved as Fixed Jenkins / JENKINS-54700 Findbugs SAXParser not found Change By: Ulli Hafner Status: Open Resolved Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Ulli Hafner commented on JENKINS-54700 Re: Findbugs SAXParser not found Hmm, that is strange. I hoped that something else would show up. That message means that the JDK default SAX parser is used and not the Xerces bundled library. But maybe the message changes later on if another tool changes the property. Is anyone else getting such messages? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Christian Asselmeyer commented on JENKINS-54700 Re: Findbugs SAXParser not found I updated to 1.0.0-beta8 and now the agent log shows these messages: Dec 18, 2018 1:35:07 PM edu.hm.hafner.analysis.parser.FindBugsParser logSaxProperties WARNING: Default SAX parser will be used to parse FindBugs/SpotBugs file. Dec 18, 2018 1:35:10 PM edu.hm.hafner.analysis.parser.FindBugsParser logSaxProperties WARNING: Default SAX parser will be used to parse FindBugs/SpotBugs file. Dec 18, 2018 1:35:10 PM edu.hm.hafner.analysis.parser.FindBugsParser logSaxProperties WARNING: Default SAX parser will be used to parse FindBugs/SpotBugs file. Dec 18, 2018 1:35:10 PM edu.hm.hafner.analysis.parser.FindBugsParser logSaxProperties WARNING: Default SAX parser will be used to parse FindBugs/SpotBugs file. ... Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Ulli Hafner commented on JENKINS-54700 Re: Findbugs SAXParser not found Did you look at the agent log? It is accessible from [jenkins]/computers/[node]/log. In warnings-ng 1.0.0-beta7 and analysis-model-api-beta16 I added a log line if everything is ok as well, so there must be some output from my plugin now. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Christian Asselmeyer commented on JENKINS-54700 Re: Findbugs SAXParser not found I can report the same. SpotBugs reporting works again with 1.0.0-beta6, greping logs for org.xml.sax.driver does not yield any results. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Matt Wilson commented on JENKINS-54700 Re: Findbugs SAXParser not found 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. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Ulli Hafner commented on JENKINS-54700 Re: Findbugs SAXParser not found 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? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Matt Wilson updated an issue Jenkins / JENKINS-54700 Findbugs SAXParser not found Change By: Matt Wilson 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 'x' 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
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Christian Asselmeyer commented on JENKINS-54700 Re: Findbugs SAXParser not found 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. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Tomasz Lisowski commented on JENKINS-54700 Re: Findbugs SAXParser not found Downgrading to 1.0.0-beta4 did not solve the problem in my case Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Christian Asselmeyer commented on JENKINS-54700 Re: Findbugs SAXParser not found For me, collecting SpotBugs results works again after downgrading back to 1.0.0-beta4. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Christian Asselmeyer commented on JENKINS-54700 Re: Findbugs SAXParser not found 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 '/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
[JIRA] (JENKINS-54700) Findbugs SAXParser not found
Title: Message Title Matt Wilson created an issue Jenkins / JENKINS-54700 Findbugs SAXParser not found Issue Type: Bug Assignee: Ulli Hafner Components: warnings-ng-plugin Created: 2018-11-19 15:16 Environment: Jenkins 2.138.3 Warnings NG 1.0.0-beta5 Redhat 7 Host Tomcat 9.0.8 JDK 1.8.0_172 Priority: Major Reporter: Matt Wilson 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 'x' 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