[
https://issues.apache.org/jira/browse/NIFI-6575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913664#comment-16913664
]
David Kegley commented on NIFI-6575:
------------------------------------
After lots more debugging the only thing I can say for certain about this is
that it occurs when a nested process group contains multiple output ports and
one of those output ports leads to a terminal output port at the root flow.
My use case for this is that I would like to have a single root output port
which is identified as the failure port. Any errors that occur during
processing would be routed back to the top level failure port so that the flow
would terminate
> nifi-stateless flows with nested process groups fail to initialize
> ------------------------------------------------------------------
>
> Key: NIFI-6575
> URL: https://issues.apache.org/jira/browse/NIFI-6575
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: David Kegley
> Priority: Major
> Attachments: 1_root.png, 2_nested_pg.png, 3_debug_proc.png
>
>
> Creating a nifi-stateless flow with nested process groups causes the
> following exception during StatelessFlow initialization because one of the
> flow components fails the validation checks.
>
> {code:java}
> Exception in thread "main" java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.nifi.stateless.NiFiStateless.main(NiFiStateless.java:120)
> Caused by: java.lang.IllegalArgumentException:
> DebugFlow[id=493e3f63-0d01-375f-a430-8d76ce272d9d] is not valid:
> at
> org.apache.nifi.stateless.core.StatelessProcessorWrapper.initialize(StatelessProcessorWrapper.java:112)
> at
> org.apache.nifi.stateless.core.StatelessProcessorWrapper.runRecursive(StatelessProcessorWrapper.java:138)
> at
> org.apache.nifi.stateless.core.StatelessPassThroughComponent.runRecursive(StatelessPassThroughComponent.java:62)
> at
> org.apache.nifi.stateless.core.StatelessFlow.runOnce(StatelessFlow.java:359)
> at org.apache.nifi.stateless.runtimes.Program.runLocal(Program.java:146)
> at org.apache.nifi.stateless.runtimes.Program.launch(Program.java:68)
> ... 5 more
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)