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

NPE during validation of Controller Service that relies on another Controller Service at the controller level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.0.0, 1.0.0-Beta
    • None
    • None

    Description

      In the controller level:
      Create valid StandardSSLContextService
      Create DistributedMapCacheClientService that relies on the SSL CS
      start StandardSSLContextService
      see a validation error for DistributedMapCacheClientService saying:

      "" is invalid because Failed to run validation due to java.lang.NullPointerException

      This is due to this line[1]. It attempts to get the identifier of the process group but since it's associated with the controller and not a process group it fails with an NPE.

      https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/processor/StandardValidationContext.java#L101

      Attachments

        Activity

          People

            joewitt Joe Witt
            jpercivall Joe Percivall
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: