Mark Payne created NIFI-3111:
--------------------------------
Summary: Clarify error message that is generated when @OnScheduled
method cannot be invoked
Key: NIFI-3111
URL: https://issues.apache.org/jira/browse/NIFI-3111
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Reporter: Mark Payne
Assignee: Mark Payne
Priority: Minor
Whenever a Processor throws an Exception from a method annotated with
@OnScheduled, we get an error message and bulletin such as:
MyProcessor[id=ac88775c-0158-1000-4de6-52946f9264b5]
MyProcessor[id=ac88775c-0158-1000-4de6-52946f9264b5] failed to invoke
@OnScheduled method due to java.lang.RuntimeException: Failed while executing
one of processor's OnScheduled task.; processor will not be scheduled to run
for 30 seconds: java.lang.RuntimeException: Failed while executing one of
processor's OnScheduled task.
This is repetition (contains Processor's toString() twice) and also contains
the RuntimeException's toString() twice without actually indicating what the
problem is. More details are logged in nifi-app.log but the bulletin should be
more specific.
I have not verified yet, but a similar problem likely exists with @OnStopped,
@OnUnscheduled, @OnScheduled, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)