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

StandardPublicPort throws NullPointerException when it reports a bulletin event

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.2
    • 1.10.0
    • Core Framework
    • None

    Description

      NIFI-2933 changed StandardPublicPort to use the 'processGroup' variable passed as its constructor argument at the EventReporter.reportEvent() method, but that variable is null when a public port is instantiated.

      EventReporter.reportEvent() should get the current ProcessGroup by calling getProcessGroup() method each time.

      If an error occurred while a public port is processing request, it fails to report a bulletin event due to this NullPointerException. Due to this issue, public ports can not report error detail to users with bulletin messages like following screenshot.

      Attachments

        1. image-2019-07-12-18-45-11-524.png
          103 kB
          Koji Kawamura

        Issue Links

          Activity

            People

              ijokarumawak Koji Kawamura
              ijokarumawak Koji Kawamura
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m