Support Questions

Find answers, ask questions, and share your expertise

NiFi Cluster NullPointerException issue when restarting nodes

New Contributor



I have a 3-node cluster with openjdk11. When I restarted the NiFi nodes, it had the following NullPointerException. However, if I update JAVA_HOME to Java8 for all nodes. The error couldn't be reproduced any more.


2021-01-21 15:31:40,540 ERROR [NiFi Web Server-54] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.RuntimeException: Failed to parse response as entity of type class org.apache.nifi.web.api.entity.FlowConfigurati
onEntity. Returning Internal Server Error response.
java.lang.RuntimeException: Failed to parse response as entity of type class org.apache.nifi.web.api.entity.FlowConfigurationEntity
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Text '15:31:40 CST' could not be parsed: null (through reference chain: org.apache.nifi.web.api.entity.FlowConfigurationEntity["flowConfiguration"]->org.apache.nifi.web.api.dto.FlowConfigurationDTO["currentTime"])
        at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(
        at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(
        at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(
        at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(
        at com.fasterxml.jackson.databind.ObjectMapper._readValue(
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(
        at com.fasterxml.jackson.core.JsonParser.readValueAs(
        at org.apache.nifi.cluster.coordination.http.replication.okhttp.JacksonResponse.readEntity(
        ... 123 common frames omitted
Caused by: java.time.format.DateTimeParseException: Text '15:31:40 CST' could not be parsed: null
        at java.base/java.time.format.DateTimeFormatter.createError(
        at java.base/java.time.format.DateTimeFormatter.parse(
Does anyone happen to know the issue?

Super Collaborator

The first thing to check is if your version of the platform supports your version of OpenJDK.


For instance, if you are on HDF 3.5 or below, then OpenJDK does not appear to be supported:


However, if you are on the latest Flow Management version in CDP, then OpenJDK 11.0.8 and above should be fine, as per 


If you confirmed that you are within the right combination of platform and JDK version and the problem still persists I would recommend to log a support ticket (I did not find other occurances of this error).

- Dennis Jaheruddin

If this answer helped, please mark it as 'solved' and/or if it is valuable for future readers please apply 'kudos'.

New Contributor

Thanks for the reply. I don't think I used HDF. I just installed the nifi 1.12.1 binary into three physical machines. 

Master Guru



This is more likely an issue in the specific Java 11 version your are using.

Somethings you may want to try:
1. Try a different update version of Java 11
2. add the following line to the NiFi bootstrap.conf file:

java.arg.<some unused number>=-Djava.locale.providers=COMPAT

Note: A restart of NiFi is needed with any config file change except logback.xml.

Hope this helps,