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

maven-spy log contains invalid XML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline-maven-plugin
    • Labels:
      None
    • Environment:
      Java 8
      Maven 3.3
      Jenkins 2.51
      Pipeline 2.5
      Pipeline Maven Integration Plugin 2.0
    • Similar Issues:

      Description

      Our maven-spy-*.log file is being generated with broken XML, for example:

      ...
      <ExecutionEvent type=">
      <ExecutionEventProjectStarted" class=" type="org.apache.maven.lifecycle.internal.DefaultExecutionEvent" _time="ProjectStarted"2017-03-28 12:05:43.464">
      ...

      This happens with other elements too; in this particular case, re-running the job leads to exactly the same malformed XML.

      This ultimately leads to an error:

      ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /media/ephemeral0/jenkins/workspace/iMain-Pipeline_release_1.44-HEHP3JF3JUC3QDIC42A5YMRMVQTJR3HJ4P7IFHLSMEGVJNWC55SA@tmp/withMaven21be2166/maven-spy-20170328-094339-928.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org 
      ERROR: org.xml.sax.SAXParseException; lineNumber: 246; columnNumber: 16; Element type "ExecutionEvent" must be followed by either attribute specifications, ">" or "/>".
      

       

        Attachments

          Issue Links

            Activity

            Hide
            ollierob Ollie Robertshaw added a comment -

            Attached log up to the failure. Afterwards would maybe require too much work to sanitize.

            Show
            ollierob Ollie Robertshaw added a comment - Attached log up to the failure. Afterwards would maybe require too much work to sanitize.
            Hide
            markl_lagendijk Mark Lagendijk added a comment -

            We get similar errors.

            ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /jenkins/workspace/on-release-pipeline_default-NBGOU47BBMAZ5ABRJSVGTSNLZCN3OA3VERV7IMJUQOJD2Q6NM26Q@tmp/withMavencf140cfe/maven-spy-20170406-225029-245.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            ERROR: org.xml.sax.SAXParseException; lineNumber: 196; columnNumber: 2; The content of elements must consist of well-formed character data or markup.

            ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /jenkins/workspace/on-release-pipeline_default-NBGOU47BBMAZ5ABRJSVGTSNLZCN3OA3VERV7IMJUQOJD2Q6NM26Q@tmp/withMaven31a14318/maven-spy-20170406-232907-99.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            ERROR: org.xml.sax.SAXParseException; lineNumber: 163; columnNumber: 6; The value of attribute "_time" associated with an element type "ExecutionEvent" must not contain the '<' character.

            ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /jenkins/workspace/on-release-pipeline_default-NBGOU47BBMAZ5ABRJSVGTSNLZCN3OA3VERV7IMJUQOJD2Q6NM26Q@tmp/withMavena4d8f023/maven-spy-20170406-223923-904.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org
            ERROR: org.xml.sax.SAXParseException; lineNumber: 152; columnNumber: 8; The content of elements must consist of well-formed character data or markup.

            Show
            markl_lagendijk Mark Lagendijk added a comment - We get similar errors. ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /jenkins/workspace/on-release-pipeline_default-NBGOU47BBMAZ5ABRJSVGTSNLZCN3OA3VERV7IMJUQOJD2Q6NM26Q@tmp/withMavencf140cfe/maven-spy-20170406-225029-245.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org ERROR: org.xml.sax.SAXParseException; lineNumber: 196; columnNumber: 2; The content of elements must consist of well-formed character data or markup. ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /jenkins/workspace/on-release-pipeline_default-NBGOU47BBMAZ5ABRJSVGTSNLZCN3OA3VERV7IMJUQOJD2Q6NM26Q@tmp/withMaven31a14318/maven-spy-20170406-232907-99.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org ERROR: org.xml.sax.SAXParseException; lineNumber: 163; columnNumber: 6; The value of attribute "_time" associated with an element type "ExecutionEvent" must not contain the '<' character. ERROR: [withMaven] WARNING Exception parsing the logs generated by the Jenkins Maven Event Spy /jenkins/workspace/on-release-pipeline_default-NBGOU47BBMAZ5ABRJSVGTSNLZCN3OA3VERV7IMJUQOJD2Q6NM26Q@tmp/withMavena4d8f023/maven-spy-20170406-223923-904.log, ignore file.  Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org ERROR: org.xml.sax.SAXParseException; lineNumber: 152; columnNumber: 8; The content of elements must consist of well-formed character data or markup.
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            This sounds like a thread safety issue. I completely ignored thread safety in the maven-event-spy. I tracked the task in JENKINS-43449

            Show
            cleclerc Cyrille Le Clerc added a comment - This sounds like a thread safety issue. I completely ignored thread safety in the maven-event-spy. I tracked the task in JENKINS-43449
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Fixed in 2.0.1

            Show
            cleclerc Cyrille Le Clerc added a comment - Fixed in 2.0.1
            Hide
            markl_lagendijk Mark Lagendijk added a comment -

            I can confirm that this is fixed (Y).

            Show
            markl_lagendijk Mark Lagendijk added a comment - I can confirm that this is fixed (Y).
            Hide
            cleclerc Cyrille Le Clerc added a comment -

            Thanks for the great news Mark Lagendijk!

            Show
            cleclerc Cyrille Le Clerc added a comment - Thanks for the great news Mark Lagendijk !

              People

              Assignee:
              cleclerc Cyrille Le Clerc
              Reporter:
              ollierob Ollie Robertshaw
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: