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

CppCheck - System throws error: javax.xml.bind.UnmarshalException, Premature end of file

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: cppcheck-plugin
    • Labels:
      None
    • Environment:
      Windows 7, Jenkins ver. 2.76, cppcheck plug-in 1.21, Cppcheck 1.80
    • Similar Issues:

      Description

      My environment is win 7,

      1. Here is the error file from Console output of Jenkins
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\CPPCHECK
      [CPPCHECK] $ cmd /c call C:\Windows\TEMP\jenkins6894265984033483171.bat

      C:\Program Files (x86)\Jenkins\workspace\CPPCHECK>start C:\"Program Files"\Cppcheck\cppcheck.exe C:\"Program Files"\Cppcheck\cppcheck-plugin-master err.xml "C:\Program Files (x86"\Jenkins\workspace\CPPCHECK\err.xml

      C:\Program Files (x86)\Jenkins\workspace\CPPCHECK>exit 0
      [Cppcheck] Starting the cppcheck analysis.
      [Cppcheck] Processing 1 files with the pattern 'err.xml'.
      [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException

      • with linked exception:
        [org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files%20(x86)/Jenkins/workspace/CPPCHECK/err.xml; lineNumber: 1; columnNumber: 1; Premature end of file.]
        Build step 'Publish Cppcheck results' changed build result to FAILURE
        Build step 'Publish Cppcheck results' marked build as failure
        Finished: FAILURE
        I checked the err.xml file. It's empty.There is no data

       

      2. I also tried to run via cmd. There is no error on windows batch window but err.xml file is still empty

       

        Attachments

          Activity

          Hide
          mdoubez Michael Doubez added a comment -

          Hello,

          Your ticket is unclear:

          • is your issue the fact that err.xml is empty ?
            In this case, please see how to use cppcheck (http://cppcheck.sourceforge.net/manual.pdf)
          • is your issue the failure of the build ?
            It is normal for an empty file unless you ticked "Ignore blank file"
          Show
          mdoubez Michael Doubez added a comment - Hello, Your ticket is unclear: is your issue the fact that err.xml is empty ? In this case, please see how to use cppcheck ( http://cppcheck.sourceforge.net/manual.pdf) is your issue the failure of the build ? It is normal for an empty file unless you ticked "Ignore blank file"

            People

            • Assignee:
              marcosteffan Marco Steffan
              Reporter:
              snowwhite Dung Tran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: