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

MalformedByteSequenceException in Mercurial plugin while creating changelog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      jenkins 2.222.3 running on SLES
      mercurial plugin 2.10
    • Similar Issues:

      Description

      We face exceptions as the one given below often, but cannot reproduce it. The next run usually performs w/o any glitch.

      com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
      	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:701)
      	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:408)
      	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1895)
      	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1551)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2821)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
      	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
      	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
      	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
      	at org.apache.commons.digester.Digester.parse(Digester.java:1871)
      	at hudson.plugins.mercurial.MercurialChangeLogParser.parse(MercurialChangeLogParser.java:56)

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Are there non-ASCII characters in the changelog when this occurs? It is possible there is a file encoding issue, though https://github.com/jenkinsci/mercurial-plugin/blob/b663406cd35f555b1ed406adfaeb2a0c4548a12a/src/main/java/hudson/plugins/mercurial/MercurialSCM.java#L668-L669 is supposed to address that.

          Show
          jglick Jesse Glick added a comment - Are there non-ASCII characters in the changelog when this occurs? It is possible there is a file encoding issue, though https://github.com/jenkinsci/mercurial-plugin/blob/b663406cd35f555b1ed406adfaeb2a0c4548a12a/src/main/java/hudson/plugins/mercurial/MercurialSCM.java#L668-L669 is supposed to address that.
          Hide
          maial Alexander Mai added a comment - - edited

          No (well, at least not visible ones)

          In the last two days the number of failures is increasing for unknown reasons. The last update to the jenkins installation was already some weeks ago.
          I've discovered https://issues.jenkins.io/browse/JENKINS-43176 - maybe it's related.

          Since there are many difference pipelines running on the system a workaround to modify pipelines would be a lot of work todo.

          Show
          maial Alexander Mai added a comment - - edited No (well, at least not visible ones) In the last two days the number of failures is increasing for unknown reasons. The last update to the jenkins installation was already some weeks ago. I've discovered https://issues.jenkins.io/browse/JENKINS-43176 - maybe it's related. Since there are many difference pipelines running on the system a workaround to modify pipelines would be a lot of work todo.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            maial Alexander Mai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: