Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
While retaining a source/target comptability of 1.8, NiFi needs to be buildable on Java 11.
The following issues have been encountered while attempting to run a Java 1.8-built NiFi on Java 11:
Issue | Solution |
---|---|
groovy-eclipse-compiler not working with Java 10 | |
Antler3 issue with ambiguous method calls | Explicit cast to ValidationContext needed in TestHL7Query.java |
jaxb2-maven-plugin not compatible with Java 9 | Switched to maven-jaxb-plugin |
groovy-eclipse-batch:2.4.13-01 could not find JDK base classes | Updated to groovy-eclipse-batch:2.5.4-01 and groovy-all:2.5.4 (See |
maven-surefire-plugin:2.20.1 throws null pointer exceptions | Updated to maven-surefire-plugin:2.22.0 |
okhttp client builder requires X509TrustManager on Java 9+ | Added methods to return TrustManager instances with the SSLContext created by SSLContextFactory and updated HttpNotificationService to use the paired TrustManager |
nifi-runtime groovy tests aren't running | Added usage of build-helper-maven-plugin to explicitly add src/test/groovy to force groovy compilation of test sources. groovy-eclipse-compiler skips src/test/groovy if src/test/java doesn't exist, which is the case for nifi-runtime. (See |
hbase-client depends on jdk.tools:jdk.tools | Excluded this dependency (needs live testing) |
HBase client 1.1.2 does not allow running on Java 9+ | Updated to HBase client 1.1.11, passes unit tests (See |
powermock:1.6.5 does not support Java 10 | Updated to powermock:2.0.2 and mockito:2.28.2 (See |
com.yammer.metrics:metrics-core:2.2.0 does not support Java 10 | Upgrading com.yammer.metrics:metrics-core:2.2.0 to io.dropwizard.metrics:metrics-jvm:4.0.0 (See |
Attachments
Issue Links
- is blocked by
-
NIFI-5820 NiFi built with Java 1.8 needs to run on Java 11
- Resolved
-
NIFI-6178 Certificates generated for "localhost" need to have IP as a SAN in Java 11
- Resolved
-
NIFI-5254 Upgrade to Groovy 2.5.0
- Resolved
-
NIFI-5373 Create Metrics API and default implementation
- Resolved
-
NIFI-6196 Upgrade version of Jetty
- Resolved
-
NIFI-6360 Update Mockito and PowerMock to 2.x
- Resolved
- is related to
-
NIFI-5749 NiFi requirements include "Java 8 or later", but doesn't compile with Java 9
- Resolved
- relates to
-
NIFI-5212 Configure JettyServer with custom TLS protocols and cipher suites
- Resolved
-
NIFI-5341 Groovy tests in nifi-runtime aren't running with the build
- Resolved
-
NIFI-1478 Audit SSLContextFactory and SSLSocketFactory usage throughout application
- Resolved
-
HBASE-17944 Removed unused JDK version parsing from ClassSize.
- Closed
- links to