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

org.dom4j.DocumentException in PerforceChangeLogSet.parse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • p4-plugin
    • None
    • Platform: All, OS: All

      (followup of https://hudson.dev.java.net/issues/show_bug.cgi?id=1087)
      (hudson 1.160 w. perforce 1.0.5 on jdk 1.6)

      When starting hudson, I currently receive the stacks like the one listed below.
      (pls add the filename to the Exception, if possible).

      I will attach one of the potentially "bad" changelog.xml files, I've found in
      one build directory.

      We have colleagues in Czechia, who seem to add comments in their language, and
      maybe this is not UTF-8 - I'm not sure.

      It seems that the problem is located in the class PerforceChangeLogSet itself,
      it also creates the xml-files....


      java.io.IOException: Failed to parse changelog file.
      at
      hudson.plugins.perforce.PerforceChangeLogSet.parse(PerforceChangeLogSet.java:137)
      at
      hudson.plugins.perforce.PerforceChangeLogParser.parse(PerforceChangeLogParser.java:18)
      at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:298)
      at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:280)
      at hudson.model.User.getBuilds(User.java:240)
      at hudson.WebAppMain$1$1.doRun(WebAppMain.java:121)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:18)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      Caused by: org.dom4j.DocumentException: Invalid byte 2 of 4-byte UTF-8 sequence.
      Nested exception: Invalid
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      at org.dom4j.io.SAXReader.read(SAXReader.java:343)
      at
      hudson.plugins.perforce.PerforceChangeLogSet.parse(PerforceChangeLogSet.java:81)
      ... 8 more

        1. changelog.xml
          2 kB
        2. p4_output
          3 kB
        3. PerforceChangeLogSet.patch
          1 kB

            digerata digerata
            gerhard6 gerhard6
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: