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

Unable to import a "Download flow" JSON file into Registry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0, 1.11.4
    • None
    • None

    Description

      Selecting "Download flow" for a process group which generated the file:

      simple_download_flow.json

      Tried to import this into Registry:
      ./cli.sh demo quick-import -i /Users/andrew.lim/Downloads/simple_download_flow.json

      But got this error:

      ERROR: Error executing command 'quick-import' : null

      Added -verbose and see this stack trace:
      org.apache.nifi.toolkit.cli.api.CommandException: Error executing command 'quick-import' : null
      at org.apache.nifi.toolkit.cli.impl.command.composite.AbstractCompositeCommand.execute(AbstractCompositeCommand.java:84)
      at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processCommand(CommandProcessor.java:252)
      at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processGroupCommand(CommandProcessor.java:233)
      at org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.process(CommandProcessor.java:188)
      at org.apache.nifi.toolkit.cli.CLIMain.runSingleCommand(CLIMain.java:145)
      at org.apache.nifi.toolkit.cli.CLIMain.main(CLIMain.java:72)
      Caused by: java.lang.NullPointerException
      at org.apache.nifi.toolkit.cli.impl.command.registry.flow.ImportFlowVersion.doExecute(ImportFlowVersion.java:92)
      at org.apache.nifi.toolkit.cli.impl.command.composite.QuickImport.importFlowVersion(QuickImport.java:150)
      at org.apache.nifi.toolkit.cli.impl.command.composite.QuickImport.doExecute(QuickImport.java:124)
      at org.apache.nifi.toolkit.cli.impl.command.composite.QuickImport.doExecute(QuickImport.java:48)
      at org.apache.nifi.toolkit.cli.impl.command.composite.AbstractCompositeCommand.execute(AbstractCompositeCommand.java:80)
      ... 5 more

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              andrewmlim Andrew M. Lim
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                  0.5h