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

[cppccheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: cppcheck-plugin
    • Labels:
      None
    • Environment:
      Windows XP, Jenkins 1.498, cppcheck plug-in 1.13, Cppcheck 1.57
    • Similar Issues:

      Description

      If I use --enable=style or --enable=all I get this error:

      [Cppcheck] Starting the cppcheck analysis.
      [Cppcheck] Processing 1 files with the pattern 'cppcheck-result2.xml'.
      [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException

      • with linked exception:
        [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.]
        Build step 'Publish Cppcheck results' changed build result to FAILURE
        Build step 'Publish Cppcheck results' marked build as failure

      how I run cppcheck:

      cppcheck --enable=style --xml-version=2 %workspace%\Main\ 2> cppcheck-result2.xml

      this works fine: cppcheck --xml-version=2 %workspace%\Main\ 2> cppcheck-result2.xml

        Attachments

          Activity

            People

            • Assignee:
              mixalturek Michal Turek
              Reporter:
              hsnnn Eric Brito
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: