You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Witt (Jira)" <ji...@apache.org> on 2020/08/14 17:14:00 UTC

[jira] [Commented] (NIFI-7741) Apache NiFi build fails with Java 8 OpenJ9 JVM

    [ https://issues.apache.org/jira/browse/NIFI-7741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17177951#comment-17177951 ] 

Joe Witt commented on NIFI-7741:
--------------------------------

$ mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /development/apache-maven-3.6.3
Java version: 1.8.0_265, vendor: Eclipse OpenJ9, runtime: /usr/lib/jvm/jdk8u265-b01/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.7.9-200.fc32.x86_64", arch: "amd64", family: "unix"


[ERROR] Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.905 s <<< FAILURE! - in org.apache.nifi.security.util.crypto.PasswordBasedEncryptorGroovyTest
[ERROR] testBcryptDecryptShouldSupportLegacyKeyDerivationProcess(org.apache.nifi.security.util.crypto.PasswordBasedEncryptorGroovyTest)  Time elapsed: 0.904 s  <<< FAILURE!
org.codehaus.groovy.runtime.powerassert.PowerAssertionError: 
assert recovered == PLAINTEXT
       |         |  |
       |         |  'This is a plaintext message. '
       |         false
       '�Y��q!����N�~�o
                       >@�DА\\��'
	at org.apache.nifi.security.util.crypto.PasswordBasedEncryptorGroovyTest.testBcryptDecryptShouldSupportLegacyKeyDerivationProcess(PasswordBasedEncryptorGroovyTest.groovy:445)



> Apache NiFi build fails with Java 8 OpenJ9 JVM
> ----------------------------------------------
>
>                 Key: NIFI-7741
>                 URL: https://issues.apache.org/jira/browse/NIFI-7741
>             Project: Apache NiFi
>          Issue Type: Improvement
>         Environment: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
> Java version: 1.8.0_265, vendor: Eclipse OpenJ9, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-8-openj9.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac"
>            Reporter: Joe Witt
>            Priority: Major
>
> This has also been verified on a linux installation of openj9 as well.
> [ERROR] Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.037 s <<< FAILURE! - in org.apache.nifi.util.ReflectionUtilsTest
> [ERROR] validateFailureWithWrongArgumentType(org.apache.nifi.util.ReflectionUtilsTest)  Time elapsed: 0.007 s  <<< ERROR!
> java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.reflect.InvocationTargetException>
> 	at org.apache.nifi.util.ReflectionUtilsTest.validateFailureWithWrongArgumentType(ReflectionUtilsTest.java:71)
> Caused by: java.lang.ClassCastException: java.lang.String incompatible with java.lang.Integer
> 	at org.apache.nifi.util.ReflectionUtilsTest.validateFailureWithWrongArgumentType(ReflectionUtilsTest.java:71)
> [~markap14] Looked into it and it appears the OpenJ9 JVM throws a ClassCastException instead of an IllegalArgumentException as is supposed to be the case as per Javadocs of Java.  Unclear if this is a known/filed JDK bug for OpenJ9.
> I have another test which fails in this configuration as well on Linux.  Will share that information shortly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)