[
https://issues.apache.org/jira/browse/NIFI-6935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17012386#comment-17012386
]
M Tien commented on NIFI-6935:
------------------------------
I could not reproduce this with OpenJDK Java 1.8.0_232. Check the value of your
\{{$JAVA_HOME}} variable — it should not include \{{jre/}}. See
[https://fedoraproject.org/wiki/JDK_on_Fedora] for instructions on setting
\{{$JAVA_HOME}} if this is the case.
{code:java}
[osboxes@localhost nifi-1.10.0]$ cd nifi-commons/nifi-socket-utils/
[osboxes@localhost nifi-socket-utils]$ mvn clean install -T2.0C
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with
nexus-staging-maven-plugin
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 2
[INFO]
[INFO] -----------------< org.apache.nifi:nifi-socket-utils >------------------
[INFO] Building nifi-socket-utils 1.10.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ nifi-socket-utils
---
[INFO] Deleting
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @
nifi-socket-utils ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @
nifi-socket-utils ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles)
@ nifi-socket-utils ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
nifi-socket-utils ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @
nifi-socket-utils ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 24 source files to
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/target/classes
[WARNING]
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/src/main/java/org/apache/nifi/io/nio/ChannelListener.java:[206,19]
[deprecation] closeQuietly(Closeable) in IOUtils has been deprecated
[WARNING]
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/src/main/java/org/apache/nifi/io/nio/ChannelListener.java:[208,15]
[deprecation] closeQuietly(Selector) in IOUtils has been deprecated
[WARNING]
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/src/main/java/org/apache/nifi/io/nio/ChannelListener.java:[212,19]
[deprecation] closeQuietly(Closeable) in IOUtils has been deprecated
[WARNING]
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/src/main/java/org/apache/nifi/io/nio/ChannelListener.java:[214,15]
[deprecation] closeQuietly(Selector) in IOUtils has been deprecated
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @
nifi-socket-utils ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @
nifi-socket-utils ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/target/test-classes
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (groovy-tests) @
nifi-socket-utils ---
[INFO] Changes detected - recompiling the module!
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ nifi-socket-utils
---
[INFO]
[INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ nifi-socket-utils ---
[INFO] Building jar:
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/target/nifi-socket-utils-1.10.0.jar
[INFO]
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @
nifi-socket-utils ---
[INFO] Skipping because packaging 'jar' is not pom.
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @
nifi-socket-utils ---
[INFO] Installing
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/target/nifi-socket-utils-1.10.0.jar
to
/home/osboxes/.m2/repository/org/apache/nifi/nifi-socket-utils/1.10.0/nifi-socket-utils-1.10.0.jar
[INFO] Installing
/home/osboxes/Desktop/nifi-1.10.0/nifi-commons/nifi-socket-utils/pom.xml to
/home/osboxes/.m2/repository/org/apache/nifi/nifi-socket-utils/1.10.0/nifi-socket-utils-1.10.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.625 s (Wall Clock)
[INFO] Finished at: 2020-01-09T20:34:13-05:00
[INFO] ------------------------------------------------------------------------
[osboxes@localhost nifi-socket-utils]$ echo $JAVA_HOME[osboxes@localhost
nifi-socket-utils]$ which java
/usr/bin/java
[osboxes@localhost nifi-socket-utils]$ ls -l /usr/bin/java
lrwxrwxrwx. 1 root root 22 Jan 9 19:26 /usr/bin/java -> /etc/alternatives/java
[osboxes@localhost nifi-socket-utils]$ ls -l /etc/alternatives/java
lrwxrwxrwx. 1 root root 72 Jan 9 19:26 /etc/alternatives/java ->
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/bin/java
[osboxes@localhost nifi-socket-utils]$ ls -l
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/security/cacerts
lrwxrwxrwx. 1 root root 96 Oct 16 10:51
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/security/cacerts
->
/etc/java/java-1.8.0-openjdk/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/lib/security/cacerts
[osboxes@localhost nifi-socket-utils]$ {code}
> nifi-socket-utils test failures on linux
> ----------------------------------------
>
> Key: NIFI-6935
> URL: https://issues.apache.org/jira/browse/NIFI-6935
> Project: Apache NiFi
> Issue Type: Task
> Components: Security
> Environment: Fedora 31
> Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117;
> 2019-08-27T11:06:16-04:00)
> Maven home: /development/apache-maven-3.6.2
> Java version: 1.8.0_191, vendor: Oracle Corporation, runtime:
> /usr/java/jdk1.8.0_191-amd64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "5.3.14-300.fc31.x86_64", arch: "amd64", family:
> "unix"
> -AND-
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /development/apache-maven-3.6.3
> Java version: 1.8.0_232, vendor: Oracle Corporation, runtime:
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "5.4.7-200.fc31.x86_64", arch: "amd64", family:
> "unix"
> Reporter: Joe Witt
> Assignee: M Tien
> Priority: Major
>
> [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.72
> s <<< FAILURE! - in org.apache.nifi.io.socket.SSLContextFactoryTest
> [ERROR]
> testShouldVerifyKeystoreWithDifferentKeyPassword(org.apache.nifi.io.socket.SSLContextFactoryTest)
> Time elapsed: 0.04 s <<< ERROR!
> java.io.FileNotFoundException:
> /usr/java/jdk1.8.0_191-amd64/jre/jre/lib/security/cacerts (No such file or
> directory)
> at
> org.apache.nifi.io.socket.SSLContextFactoryTest.testShouldVerifyKeystoreWithDifferentKeyPassword(SSLContextFactoryTest.groovy:138)
> [ERROR]
> testShouldVerifyKeystoreWithSameKeyPassword(org.apache.nifi.io.socket.SSLContextFactoryTest)
> Time elapsed: 0.003 s <<< ERROR!
> java.io.FileNotFoundException:
> /usr/java/jdk1.8.0_191-amd64/jre/jre/lib/security/cacerts (No such file or
> directory)
> at
> org.apache.nifi.io.socket.SSLContextFactoryTest.testShouldVerifyKeystoreWithSameKeyPassword(SSLContextFactoryTest.groovy:113)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)