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

Nar loading should not impact the loading of NiFi overall

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.11.4
    • None
    • Extensions
    • Linux

    Description

      No matter what's broken about it, a bad nar should not be able to keep the rest of NiFi from running. Catch and handle this exception. And preferably give us more information about what the problem was than "unable to load" – was file not found, not a valid nar, in conflict with other classes, written on a Thursday...

       

      2020-08-31 23:58:20,960 ERROR [main] -> org.apache.nifi.NiFi -> Failure to launch NiFi due to java.lang.IllegalStateException: Unable to load NAR with co
      java.lang.IllegalStateException: Unable to load NAR with coordinates com.ibm.rtwa:nifi-random-nar:1.0-SNAPSHOT and working directory ./work/nar/extension
      at org.apache.nifi.nar.NarClassLoaders.load(NarClassLoaders.java:181)
      at org.apache.nifi.nar.NarClassLoaders.init(NarClassLoaders.java:119)
      at org.apache.nifi.NiFi.<init>(NiFi.java:134)
      at org.apache.nifi.NiFi.<init>(NiFi.java:72)
      at org.apache.nifi.NiFi.main(NiFi.java:301)

      Attachments

        Activity

          People

            Unassigned Unassigned
            keshlam Joseph Kesselman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified