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

Support core warning when collecting data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: support-core-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.32.2 / Windows 2008 / JDK 8 latest
    • Similar Issues:

      Description

      Even if I remove the GC collect from the support page, this event still occurs in logs.
      Tks,

      ./Frederic

      WARNING: [Support Bundle] null does not exist, cannot collect gc logging files.
       ERROR: 'Character reference "&#'
       Feb 02, 2017 10:32:22 AM com.cloudbees.jenkins.support.configfiles.OtherConfigFilesComponent addContents
       WARNING: could not add the audit-trail.xml configuration file to the support bundle because of: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&#
      

        Attachments

          Issue Links

            Activity

            Hide
            fredericmeyrou Frédéric Meyrou added a comment -

            Complete Stack :

             

            ERROR: 'Character reference "&#'
            Apr 03, 2017 2:19:58 PM com.cloudbees.jenkins.support.SupportPlugin writeBundle
            WARNING: Could not attach 'jenkins-root-configuration-files/audit-trail.xml' to support bundle
            java.io.IOException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&#
            at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:23)
            at com.cloudbees.jenkins.support.api.FileContent.writeTo(FileContent.java:63)
            at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:358)
            at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:272)
            at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:757)
            at java.lang.Thread.run(Thread.java:745)
            Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&#
            at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:749)
            at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
            at com.cloudbees.jenkins.support.configfiles.SecretHandler.findSecrets(SecretHandler.java:87)
            at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:21)
            ... 5 more
            Caused by: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&#
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
            at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
            at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668)
            at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
            ... 8 more

            Show
            fredericmeyrou Frédéric Meyrou added a comment - Complete Stack :   ERROR: 'Character reference "&#' Apr 03, 2017 2:19:58 PM com.cloudbees.jenkins.support.SupportPlugin writeBundle WARNING: Could not attach 'jenkins-root-configuration-files/audit-trail.xml' to support bundle java.io.IOException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&# at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:23) at com.cloudbees.jenkins.support.api.FileContent.writeTo(FileContent.java:63) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:358) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:272) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:757) at java.lang.Thread.run(Thread.java:745) Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&# at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:749) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351) at com.cloudbees.jenkins.support.configfiles.SecretHandler.findSecrets(SecretHandler.java:87) at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:21) ... 5 more Caused by: org.xml.sax.SAXParseException; lineNumber: 45; columnNumber: 3180; Character reference "&# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737) ... 8 more
            Hide
            batmat Baptiste Mathus added a comment -

            So I think this is not related to GC logging, and you already said that yourself BTW, so I'm a bit confused by the title.

            Also, could you please possibly confirm if 1) you're still seeing this and 2) what is the support-core plugin version you have installed. Thanks Frédéric Meyrou!

            Show
            batmat Baptiste Mathus added a comment - So I think this is not related to GC logging, and you already said that yourself BTW, so I'm a bit confused by the title. Also, could you please possibly confirm if 1) you're still seeing this and 2) what is the support-core plugin version you have installed. Thanks Frédéric Meyrou !
            Hide
            fredericmeyrou Frédéric Meyrou added a comment -

            Dear Baptiste,

            I think you are right.

            Since I removed the plugin https://plugins.jenkins.io/audit-trail

            I don't have that message anymore, so it might be related to audit-trail instead.

            I think you can close this issue, even if not solved as audit trail is not very well maintained.

            The best to you.

            ./Fred

            Show
            fredericmeyrou Frédéric Meyrou added a comment - Dear Baptiste, I think you are right. Since I removed the plugin https://plugins.jenkins.io/audit-trail I don't have that message anymore, so it might be related to audit-trail instead. I think you can close this issue, even if not solved as audit trail is not very well maintained. The best to you. ./Fred
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/test/java/com/cloudbees/jenkins/support/configfiles/SecretHandlerTest.java
            http://jenkins-ci.org/commit/support-core-plugin/c60bb654737c74026d831ef010bd40bf317b5368
            Log:
            JENKINS-41653 malformed xml files are not included. Test validating the issue.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/test/java/com/cloudbees/jenkins/support/configfiles/SecretHandlerTest.java http://jenkins-ci.org/commit/support-core-plugin/c60bb654737c74026d831ef010bd40bf317b5368 Log: JENKINS-41653 malformed xml files are not included. Test validating the issue.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java
            http://jenkins-ci.org/commit/support-core-plugin/2f01d2c785f005eb5377cd8652a23116a8f1df46
            Log:
            JENKINS-41653 added fallback method in case xml is wrong

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java http://jenkins-ci.org/commit/support-core-plugin/2f01d2c785f005eb5377cd8652a23116a8f1df46 Log: JENKINS-41653 added fallback method in case xml is wrong
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java
            http://jenkins-ci.org/commit/support-core-plugin/484b700e203ef1cafcc26b8696de92e92f9f3bfa
            Log:
            JENKINS-41653 static pattern compilation

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java http://jenkins-ci.org/commit/support-core-plugin/484b700e203ef1cafcc26b8696de92e92f9f3bfa Log: JENKINS-41653 static pattern compilation
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Emilio Escobar
            Path:
            src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java
            http://jenkins-ci.org/commit/support-core-plugin/653b6c76774250533b4fade34a86b4c4e501908c
            Log:
            JENKINS-41653 better safe than sorry

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Emilio Escobar Path: src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java http://jenkins-ci.org/commit/support-core-plugin/653b6c76774250533b4fade34a86b4c4e501908c Log: JENKINS-41653 better safe than sorry
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Baptiste Mathus
            Path:
            src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java
            src/test/java/com/cloudbees/jenkins/support/configfiles/SecretHandlerTest.java
            http://jenkins-ci.org/commit/support-core-plugin/ef1f4092bda8cf4fd4cbe22dd34c77cbd91a287c
            Log:
            Merge pull request #120 from escoem/JENKINS-41653

            JENKINS-41653 Support core warning when collecting data

            Compare: https://github.com/jenkinsci/support-core-plugin/compare/eabbb45750fc...ef1f4092bda8

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Baptiste Mathus Path: src/main/java/com/cloudbees/jenkins/support/configfiles/SecretHandler.java src/test/java/com/cloudbees/jenkins/support/configfiles/SecretHandlerTest.java http://jenkins-ci.org/commit/support-core-plugin/ef1f4092bda8cf4fd4cbe22dd34c77cbd91a287c Log: Merge pull request #120 from escoem/ JENKINS-41653 JENKINS-41653 Support core warning when collecting data Compare: https://github.com/jenkinsci/support-core-plugin/compare/eabbb45750fc...ef1f4092bda8
            Hide
            escoem Emilio Escobar added a comment -

            released as 2.43

            Show
            escoem Emilio Escobar added a comment - released as 2.43
            Hide
            jglick Jesse Glick added a comment -

            FTR, observed in 2.41:

            …	WARNING	c.c.j.support.SupportPlugin#writeBundle: Could not attach 'jenkins-root-configuration-files/….xml' to support bundle
            javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException
            	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746)
            	at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)
            	at com.cloudbees.jenkins.support.configfiles.SecretHandler.findSecrets(SecretHandler.java:87)
            	at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:21)
            	at com.cloudbees.jenkins.support.api.FileContent.writeTo(FileContent.java:63)
            	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359)
            	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273)
            	at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761)
            	at java.lang.Thread.run(Thread.java:748)
            Caused by: java.lang.ArrayIndexOutOfBoundsException
            ---------
            java.lang.ArrayIndexOutOfBoundsException
            Caused: java.io.IOException
            	at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:23)
            	at com.cloudbees.jenkins.support.api.FileContent.writeTo(FileContent.java:63)
            	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359)
            	at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273)
            	at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761)
            	at java.lang.Thread.run(Thread.java:748)
            
            Show
            jglick Jesse Glick added a comment - FTR, observed in 2.41: … WARNING c.c.j.support.SupportPlugin#writeBundle: Could not attach 'jenkins-root-configuration-files/….xml' to support bundle javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351) at com.cloudbees.jenkins.support.configfiles.SecretHandler.findSecrets(SecretHandler.java:87) at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:21) at com.cloudbees.jenkins.support.api.FileContent.writeTo(FileContent.java:63) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ArrayIndexOutOfBoundsException --------- java.lang.ArrayIndexOutOfBoundsException Caused: java.io.IOException at com.cloudbees.jenkins.support.configfiles.XmlRedactedSecretFileContent.getInputStream(XmlRedactedSecretFileContent.java:23) at com.cloudbees.jenkins.support.api.FileContent.writeTo(FileContent.java:63) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:359) at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:273) at com.cloudbees.jenkins.support.SupportPlugin$PeriodicWorkImpl$1.run(SupportPlugin.java:761) at java.lang.Thread.run(Thread.java:748)

              People

              Assignee:
              escoem Emilio Escobar
              Reporter:
              fredericmeyrou Frédéric Meyrou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: