Issue Type: Bug Bug
Affects Versions: current
Assignee: Ulli Hafner
Components: warnings
Created: 29/Dec/12 10:54 AM
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"

Environment: Jenkins: V1.493
Warnings-Plugin: V4.18
Static Analysis Utilities: V1.48
OS: Windows XP, Mac OS X
Project: Jenkins
Priority: Minor Minor
Reporter: Markus Schneider
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to