[
https://issues.apache.org/jira/browse/NIFI-7224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054091#comment-17054091
]
ASF subversion and git services commented on NIFI-7224:
-------------------------------------------------------
Commit ac4d52b6ca7c4a11a8f3a303aebac3e3ebed6144 in nifi's branch
refs/heads/master from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ac4d52b ]
NIFI-7224 Protecting against possible NPE in ImportFlowVersion command in CLI
Signed-off-by: Pierre Villard <[email protected]>
This closes #4121.
> Unable to import a "Download flow" JSON file into Registry
> ----------------------------------------------------------
>
> Key: NIFI-7224
> URL: https://issues.apache.org/jira/browse/NIFI-7224
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Andrew M. Lim
> Assignee: Bryan Bende
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)