Bryan Bende created NIFI-14006:
----------------------------------

             Summary: Retrieving runtime manifest from REST API produces 
unexpected error when clustered
                 Key: NIFI-14006
                 URL: https://issues.apache.org/jira/browse/NIFI-14006
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Bryan Bende
            Assignee: Bryan Bende


When calling /nifi-api/flow/runtime-manifest in a cluster, it produces a 
response with an unexpected error. The logs show an issue with trying to 
unmarshall a replicated response and expecting it to be JSON, but it is empty 
string.
{code:java}
2024-11-13 13:15:32,041 ERROR [NiFi Web Server-65] 
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.RuntimeManifestEntity. Returning Internal Server 
Error response.
java.lang.RuntimeException: Failed to parse response as entity of type class 
org.apache.nifi.web.api.entity.RuntimeManifestEntity
        at 
org.apache.nifi.cluster.coordination.http.replication.io.ReplicatedResponse.readEntity(ReplicatedResponse.java:139)
        at 
org.apache.nifi.cluster.coordination.http.endpoints.RuntimeManifestEndpointMerger.merge(RuntimeManifestEndpointMerger.java:54)
        at 
org.apache.nifi.cluster.coordination.http.StandardHttpResponseMapper.mapResponses(StandardHttpResponseMapper.java:250)
        at 
org.apache.nifi.cluster.coordination.http.replication.StandardAsyncClusterResponse.getMergedResponse(StandardAsyncClusterResponse.java:219)
        at 
org.apache.nifi.cluster.coordination.http.replication.StandardAsyncClusterResponse.awaitMergedResponse(StandardAsyncClusterResponse.java:236)
        at 
org.apache.nifi.web.api.ApplicationResource.replicateNodeResponse(ApplicationResource.java:1012)
        at 
org.apache.nifi.web.api.ApplicationResource.replicateNodeResponse(ApplicationResource.java:984)
        at 
org.apache.nifi.web.api.ApplicationResource.replicate(ApplicationResource.java:975)
        at 
org.apache.nifi.web.api.ApplicationResource.replicate(ApplicationResource.java:959)
        at 
org.apache.nifi.web.api.ApplicationResource.replicate(ApplicationResource.java:934)
        at 
org.apache.nifi.web.api.FlowResource.getRuntimeManifest(FlowResource.java:1702)
...
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No 
content to map due to end-of-input
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` 
disabled); line: 1]
        at 
com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
        at 
com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:5008)
        at 
com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4885)
        at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3036)
        at 
com.fasterxml.jackson.core.JsonParser.readValueAs(JsonParser.java:2470)
        at 
org.apache.nifi.cluster.coordination.http.replication.io.ReplicatedResponse.readEntity(ReplicatedResponse.java:137)
        ... 108 common frames omitted {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to