You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
Apache Maven 3.5.2
Steps to Reproduce
Switch to Java 9 or 10.
Check out wrensec-commons on the feature/fixes-for-22.x-jdk-8-builds branch (currently at b27bc0d).:
Attempt to build the project tests with mvn clean test -DignoreArtifactSigs.
Expected Results
Project builds successfully.
Tests complete successfully.
Actual Results
The build fails in chf-http-core, with the following error:
[ERROR] Tests run: 1101, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 18.137 s <<< FAILURE! - in TestSuite
[ERROR] testParseRfc850Date(org.forgerock.http.header.HeaderUtilTest) Time elapsed: 0.029 s <<< FAILURE!
java.lang.NullPointerException
at org.forgerock.http.header.HeaderUtilTest.testParseRfc850Date(HeaderUtilTest.java:151)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] HeaderUtilTest.testParseRfc850Date:151 ▒ NullPointer
[INFO]
[ERROR] Tests run: 1101, Failures: 1, Errors: 0, Skipped: 0
Additional Notes
This appears to be related to changes made for JEP 252 in Java 9 and later. If the failing tests are run through IntelliJ with -Djava.locale.providers=COMPAT,SPI passed to the JRE, the tests pass. Unfortunately, this workaround isn't a good option for us because it would mean requiring all applications that depend on Commons to modify the JVM args in order to run properly.
The text was updated successfully, but these errors were encountered:
Kortanul
changed the title
Date-related Tests fail under JDK9+
RFC 850 Date-related Tests fail under JDK9+
Dec 2, 2018
Kortanul
changed the title
RFC 850 Date-related Tests fail under JDK9+
RFC 850 Date-related Tests Fail under JDK9+
Dec 2, 2018
Affected Versions
feature/fixes-for-22.x-jdk-8-builds
Build Environment
Steps to Reproduce
feature/fixes-for-22.x-jdk-8-builds
branch (currently at b27bc0d).:mvn clean test -DignoreArtifactSigs
.Expected Results
Actual Results
The build fails in
chf-http-core
, with the following error:Additional Notes
This appears to be related to changes made for JEP 252 in Java 9 and later. If the failing tests are run through IntelliJ with
-Djava.locale.providers=COMPAT,SPI
passed to the JRE, the tests pass. Unfortunately, this workaround isn't a good option for us because it would mean requiring all applications that depend on Commons to modify the JVM args in order to run properly.The text was updated successfully, but these errors were encountered: