[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc closed an issue as Fixed Closing the issue. The issue is to identify the outdated "xerces jar file" brought by another plugin. Jenkins / JENKINS-57833 All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log Change By: Cyrille Le Clerc Status: Open Closed 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.15337.1563455640615%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Vincent Letarouilly commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log Martin Dönicke Thanks, that did the trick for us too ! 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.15089.1563437280389%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Martin Dönicke commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log We had the same issue after updating the the pipeline-maven-plugin find -iname "xerces*.jar" ./plugins/analysis-core/WEB-INF/lib/xercesImpl-2.11.0.jar ./plugins/emma/WEB-INF/lib/xercesImpl-2.9.1.jar ./plugins/jdepend/WEB-INF/lib/xercesImpl-2.11.0.jar ./plugins/build-pipeline-plugin/WEB-INF/lib/xercesImpl-2.9.1.jar ./plugins/discard-old-build/WEB-INF/lib/xercesImpl-2.6.2.jar Removing the plugin discard-old-build (since we didn't use it anyway) has solved the issue on our side. 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.25923.1560343620300%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log Markus Till can you please search for any xerces jar file in the plugins that you have loaded in your instance. It is typically outdated versions of xerces that cause issues with the DocumentBuilderFactory. Can you on the master run "find -iname "xerces"" under "JENKINS_HOME/plugins". It looks like $ cd /plugins # verify that we are in the right folder verifying the number of jar files we found $ find -iname "*.jar" | wc - $ find -iname "*xerces*.jar" Result typically looks like: $ find -iname "*.jar" | wc -l 1262 $ find -iname "xerces*.jar" ./analysis-core/WEB-INF/lib/xercesImpl-2.11.0.jar $ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.25312.1560269460187%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc edited a comment on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log > But why is "source not found" the expected behavoir? shouldn't there be a valid class loaded?"source not found" means that it is provided by the JVM jar(s) directly and this is what we desire. Sometimes, it's an old/outdated XML parsing implementation that it loaded and you get a source such as ".../xercesImpl-2.6.2.jar". It is often caused by plugins forgetting to exclude old versions of Xerces from their dependencies. > openjdk version "1.8.0_212"This is a JDK that works well. The problem is likely to be a plugin that pull an outdated version of XercesImpl {noformat}class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -> file:/var/jenkins_home/plugins/registry_reporter/WEB-INF/lib/xercesImpl-2.6.2.jar{noformat}https://issues.jenkins-ci.org/browse/JENKINS-47486?focusedCommentId=318000&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-318000 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22795.1559833740306%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log > But why is "source not found" the expected behavoir? shouldn't there be a valid class loaded? "source not found" means that it is provided by the JVM jar(s) directly and this is what we desire. Sometimes, it's an old/outdated XML parsing implementation that it loaded and you get a source such as ".../xercesImpl-2.6.2.jar". It is often caused by plugins forgetting to exclude old versions of Xerces from their dependencies. class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -> file:/var/jenkins_home/plugins/registry_reporter/WEB-INF/lib/xercesImpl-2.6.2.jar https://issues.jenkins-ci.org/browse/JENKINS-47486?focusedCommentId=318000&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-318000 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22789.1559833680128%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Markus Till edited a comment on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log the one bundeld with the offical docker image openjdk version "1.8.0_212"OpenJDK Runtime Environment (build 1.8.0_212-b04)OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22774.1559833260112%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Markus Till commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log the one bundeld with the offical docker image 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22772.1559833200213%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Markus Till commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log seems adding the -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl to the JAVA_OPTS seem to work. But I'm still confused why this is needed. 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22768.1559833140130%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log Which jvm version are you using? 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22714.1559829420120%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Markus Till commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log I don't really get how to resolve this. Should I add -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl to the starting Jenkins Process or to the maven run? 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22684.1559827860109%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Markus Till commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log I get the following output. But why is "source not found" the expected behavoir? shouldn't there be a valid class loaded? DocumentBuilderFactory: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@57dc5f4f class com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -> source not found 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.22681.1559827560119%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc edited a comment on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log * AbstractMethodError on {{javax.xml.parsers.DocumentBuilderFactory#setFeature}}* Problem known with Jenkins:** http://developerblogging.blogspot.com/2013/04/javalangabstractmethoderror.html?showComment=1474397227627#c364770691419154768* Seems to be a conflicting outdated version of DocumentBuilderFactory* Probably similar to https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-WhydoIseemessages%22javax.xml.parsers.FactoryConfigurationError:Providerforclassjavax.xml.parsers.DocumentBuilderFactorycannotbecreated%22Can you please run the following groovy script in the Jenkins Script Console ("Manage Jenkins / Script Console") to understand from which jar the DocumentBuilderFactory was loaded?{code}import javax.xml.parsers.DocumentBuilderFactoryDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();println "DocumentBuilderFactory: " + dbfClass klass = dbf.classjava.security.CodeSource codeSource = klass.getProtectionDomain().getCodeSource() if (codeSource == null) { println(klass.toString() + " -> source not found")} else { println(klass.toString() + " -> " + codeSource.getLocation());}{code} Sample output when things go right:{noformat}DocumentBuilderFactory: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@52728a9bclass com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -> source not found{noformat} Reference:https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.7.1/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java#L83{code}DocumentBuilder documentBuilder;try {DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();// https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md#jaxp-documentbuilderfactory-saxparserfactory-and-dom4jdbf.setExpandEntityReferences(false);dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); // <== CAUSING AbstractMethodError{code} Add Comment
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc commented on JENKINS-57833 Re: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log AbstractMethodError on javax.xml.parsers.DocumentBuilderFactory#setFeature Problem known with Jenkins: http://developerblogging.blogspot.com/2013/04/javalangabstractmethoderror.html?showComment=1474397227627#c364770691419154768 Seems to be a conflicting outdated version of DocumentBuilderFactory Probably similar to https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-WhydoIseemessages%22javax.xml.parsers.FactoryConfigurationError:Providerforclassjavax.xml.parsers.DocumentBuilderFactorycannotbecreated%22 Can you please run the following groovy script in the Jenkins Script Console ("Manage Jenkins / Script Console") to understand from which jar the DocumentBuilderFactory was loaded? import javax.xml.parsers.DocumentBuilderFactory DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); println "DocumentBuilderFactory: " + dbf Class klass = dbf.class java.security.CodeSource codeSource = klass.getProtectionDomain().getCodeSource() if (codeSource == null) { println(klass.toString() + " -> source not found") } else { println(klass.toString() + " -> " + codeSource.getLocation()); } Reference: https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.7.1/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java#L83 DocumentBuilder documentBuilder; try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); // https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.md#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j dbf.setExpandEntityReferences(false); dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); // <== CAUSING AbstractMethodError
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Cyrille Le Clerc assigned an issue to Cyrille Le Clerc Jenkins / JENKINS-57833 All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log Change By: Cyrille Le Clerc Assignee: Alvaro Lobato Cyrille Le Clerc 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.21208.1559666160327%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57833) All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log
Title: Message Title Markus Till updated an issue Jenkins / JENKINS-57833 All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing event spy log Change By: Markus Till Summary: All builds with maven pipeline plugin fail with java.lang.AbstractMethodError while parsing maven event spy log 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199790.1559631863000.20468.1559633040712%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.