Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3111

Clarify error message that is generated when @OnScheduled method cannot be invoked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Core Framework
    • None

    Description

      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.

      Attachments

        Activity

          People

            markap14 Mark Payne
            markap14 Mark Payne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: