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

Source code files for displaying warnings are empty in some cases

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • warnings-plugin
    • None
    • Jenkins: V1.493
      Warnings-Plugin: V4.18
      Static Analysis Utilities: V1.48
      OS: Windows XP, Mac OS X

    Description

      In some situations the source code files, displaying the warnings are empty.

      Reason:

      In some setups the default encoding was not set. This caused an exception in the class HealthAwareRecorder.java in

      private void print(final FileOutputStream outputStream, final String message,
      final Object... arguments) throws IOException

      { IOUtils.write(String.format(message, arguments), outputStream, getDefaultEncoding()); }

      The default encoding was an empty string and therefore the write function threw the IOException "Unknown Encoding".
      This resulted in jumping out of the logging function to print the statement, that the path to the source file is wrong.

      Fixed/Workaround by setting the Default Encoding in the configuration setting to "UTF-8"

      Attachments

        Issue Links

          Activity

            schneim Markus Schneider created issue -
            scm_issue_link SCM/JIRA link daemon made changes -
            Field Original Value New Value
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            drulli Ulli Hafner made changes -
            Link This issue is duplicated by JENKINS-15952 [ JENKINS-15952 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 147035 ] JNJira + In-Review [ 192204 ]

            People

              drulli Ulli Hafner
              schneim Markus Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: