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

Andy LoPresto commented on NIFI-7660:
-------------------------------------

It looks like this is due to u262 adding TLS v1.3 support for Java 8, which 
would negate the purpose of the specific unit test. However, I am still having 
trouble reproducing this locally. Will make some diagnostic changes to the test 
and hopefully figure out what is happening on the CI/CD machines remotely. 

Oracle announcement: 
https://www.oracle.com/java/technologies/javase/8u261-relnotes.html#JDK-8145252
Azul release notes: 
https://docs.azul.com/zulu/zulurelnotes/Zulu_ReleaseNotes.pdf
JDK ticket for backporting TLS v1.3: 
https://bugs.openjdk.java.net/browse/JDK-8248721

> Change of Exception with latest Java 8
> --------------------------------------
>
>                 Key: NIFI-7660
>                 URL: https://issues.apache.org/jira/browse/NIFI-7660
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>         Environment: Apache Maven 3.6.3 
> (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
> Java version: 1.8.0_262, vendor: Azul Systems, Inc., runtime: 
> /Users/runner/hostedtoolcache/jdk/8.0.262/x64/jre
> Default locale: en_JP, platform encoding: UTF-8
> OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "mac"
>            Reporter: Pierre Villard
>            Assignee: Andy LoPresto
>            Priority: Major
>             Fix For: 1.12.0
>
>
> {code:java}
> [ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 1.083 
> s <<< FAILURE! - in org.apache.nifi.web.server.JettyServerGroovyTest
> 2231[ERROR] 
> testShouldNotSupportTLSv1_3OnJava8(org.apache.nifi.web.server.JettyServerGroovyTest)
>   Time elapsed: 0.689 s  <<< FAILURE!
> 2232java.lang.AssertionError: Closure 
> org.apache.nifi.web.server.JettyServerGroovyTest$_testShouldNotSupportTLSv1_3OnJava8_closure17@42435b98
>  should have failed with an exception of type 
> java.lang.IllegalArgumentException, instead got Exception 
> javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version
> 2233  at 
> org.apache.nifi.web.server.JettyServerGroovyTest.testShouldNotSupportTLSv1_3OnJava8(JettyServerGroovyTest.groovy:322)
> 2234
> 2235[ERROR] Failures: 
> 2236[ERROR]   
> JettyServerGroovyTest.testShouldNotSupportTLSv1_3OnJava8:322->GroovyTestCase.shouldFail:221
>  Closure 
> org.apache.nifi.web.server.JettyServerGroovyTest$_testShouldNotSupportTLSv1_3OnJava8_closure17@42435b98
>  should have failed with an exception of type 
> java.lang.IllegalArgumentException, instead got Exception 
> javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version
> 2237[ERROR] Tests run: 22, Failures: 1, Errors: 0, Skipped: 1
> 2238[ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on 
> project nifi-jetty: There are test failures.
> 2239[ERROR] 
> 2240[ERROR] Please refer to 
> /home/runner/work/nifi/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/target/surefire-reports
>  for the individual test results.
> {code}



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

Reply via email to