Details
Description
When building NiFi, I ran into test failures:
[ERROR] Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.689 s <<< FAILURE! - in org.apache.nifi.dbcp.HikariCPConnectionPoolTest [ERROR] org.apache.nifi.dbcp.HikariCPConnectionPoolTest.testGetConnection Time elapsed: 1.113 s <<< ERROR! org.apache.nifi.processor.exception.ProcessException: Connection retrieval failed at org.apache.nifi.dbcp.HikariCPConnectionPoolTest.testGetConnection(HikariCPConnectionPoolTest.java:152) Caused by: java.sql.SQLException: Failed to create database '/tmp/HikariCPConnectionPoolTest-d9b0c324-86e6-4f15-818a-020c4de84ee2', see the next exception for details. Caused by: org.apache.derby.iapi.error.StandardException: Failed to create database '/tmp/HikariCPConnectionPoolTest-d9b0c324-86e6-4f15-818a-020c4de84ee2', see the next exception for details. Caused by: org.apache.derby.iapi.error.StandardException: Supplied locale description 'en_${USER.COUNTRY}' is invalid, expecting ln[_CO[_variant]] ln=lower-case two-letter ISO-639 language code, CO=upper-case two-letter ISO-3166 country codes, see java.util.Locale. [ERROR] org.apache.nifi.dbcp.HikariCPConnectionPoolTest.testCreateInsertSelect Time elapsed: 1.019 s <<< ERROR! org.apache.nifi.processor.exception.ProcessException: Connection retrieval failed at org.apache.nifi.dbcp.HikariCPConnectionPoolTest.testCreateInsertSelect(HikariCPConnectionPoolTest.java:172) Caused by: java.sql.SQLException: Failed to create database '/tmp/HikariCPConnectionPoolTest-e933e90f-c201-46d3-88f6-74bbcec53ab6', see the next exception for details. Caused by: org.apache.derby.iapi.error.StandardException: Failed to create database '/tmp/HikariCPConnectionPoolTest-e933e90f-c201-46d3-88f6-74bbcec53ab6', see the next exception for details. Caused by: org.apache.derby.iapi.error.StandardException: Supplied locale description 'en_${USER.COUNTRY}' is invalid, expecting ln[_CO[_variant]] ln=lower-case two-letter ISO-639 language code, CO=upper-case two-letter ISO-3166 country codes, see java.util.Locale.
My system locale was set to C.UTF-8. When changed to en_US.UTF-8, the build succeeded.
Steps to reproduce:
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
mvn package
Attachments
Issue Links
- is related to
-
NIFI-8478 Unable to build the project (XmlUtilsTest.testShouldHandleXXEInDocumentBuilder:97 assert msg =~ "SAXParseException.* DOCTYPE is disallowed when the feature")
- Resolved
-
NIFI-9884 JacksonCSVRecordReader ignores specified encoding
- Resolved
-
NIFI-9924 Address text encoding issues in nifi-standard-processors
- Resolved
-
NIFI-9925 Update PutUDP and SNMP Tests to allow execution in IPv6 environments
- Resolved
- relates to
-
NIFI-9902 Improve handling of charsets when performing string/byte conversions
- Resolved
- links to