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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • cppcheck-plugin
    • None
    • Windows XP, Jenkins 1.498, cppcheck plug-in 1.13, Cppcheck 1.57

      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

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

              Created:
              Updated:
              Resolved: