Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5446

Specify the file encoding option to UTF-8 in pom.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None
    • None

    Description

      TestJacksonCSVRecordReader.testUTF8 failed in my environment (CentOS 7).

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.nifi.csv.TestJacksonCSVRecordReader
      [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.272 s <<< FAILURE! - in org.apache.nifi.csv.TestJacksonCSVRecordReader
      [ERROR] testUTF8(org.apache.nifi.csv.TestJacksonCSVRecordReader)  Time elapsed: 1.007 s  <<< FAILURE!
      org.junit.ComparisonFailure: expected:<[???]> but was:<[???]>
      	at org.apache.nifi.csv.TestJacksonCSVRecordReader.testUTF8(TestJacksonCSVRecordReader.java:81)
      

      After a bit of research, the problem seems to be same as here.

      I specified the file-encoding option of UTF-8 in the command line arguments and the unit test succeeded.

      Attachments

        Issue Links

          Activity

            People

              tasanuma Takanobu Asanuma
              tasanuma Takanobu Asanuma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: