Hi. Anyone experienced NullPointerExceptions in PutSplunk? The only thing logged is the following:
2020-11-11 12:04:06,340 ERROR [Timer-Driven Process Thread-60] o.a.nifi.processors.splunk.PutSplunk PutSplunk[id=<uuid>] PutSplunk[id=<uuid>] failed to process session due to java.lang.NullPointerException; Processor Administratively Yielded for 1 sec: java.lang.NullPointerException java.lang.NullPointerException: null The root cause of the NPE is probably something external to NiFi and isn't the main problem. The problem is that the flowfile isn't finalized correctly, so it's not sent to the failure relationship. It's just stuck in the incoming connection until the processor gets restarted and starts processing the incoming connection from the start again, so the incoming connection slowly builds up with these until it's full. We've experienced the problem on NiFi versions from 1.7 (probably earlier) all the way up to latest 1.12.1. Is this a bug in PutSplunk not correctly handling this exception? Not fluent in java, but guessing maybe this happens around line 207 in the PutSplunk code? https://github.com/apache/nifi/blob/aa741cc5967f62c3c38c2a47e712b7faa6fe19ff/nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors/src/main/java/org/apache/nifi/processors/splunk/PutSplunk.java#L207 Any tips or hints would be greatly appreciated. Regards, Anders
