Github user mosermw commented on the issue:
https://github.com/apache/nifi/pull/2767
The situation I'm trying to catch uses a regular expression that looks
legitimate, so can't be caught while validating configuration, but then blows
up when the input flowfile causes the Pattern matcher to produce too many
matches while using recursive code. I do think this falls into a Category 3
issue. I simplified the code to catch StackOverflowError and comment why the
catch exists.---
