[
https://issues.apache.org/jira/browse/NIFI-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15865402#comment-15865402
]
ASF subversion and git services commented on NIFI-3319:
-------------------------------------------------------
Commit 17cb2e284daf22a4b87864a5462ebc24c23e3f31 in nifi's branch
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=17cb2e2 ]
NIFI-3319 Made TLS toolkit default output directory calculation more robust.
This closes #1502.
Signed-off-by: Andy LoPresto <[email protected]>
> TLS toolkit throws NPE when accessed from root level
> ----------------------------------------------------
>
> Key: NIFI-3319
> URL: https://issues.apache.org/jira/browse/NIFI-3319
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Affects Versions: 1.1.1
> Reporter: Aldrin Piri
> Assignee: Bryan Rosander
>
> If accessing the TLS toolkit from a root level ( '/' on those using the *.sh
> tooling, presumably the same would occur in *.bat envs), an NPE is thrown due
> to how the Default Output Directory is calculated.
> {code}
> public static final String DEFAULT_OUTPUT_DIRECTORY = "../" +
> Paths.get(".").toAbsolutePath().normalize().getFileName().toString();
> {code}
> Stacktrace
> {noformat}
> / # /opt/nifi/bin/tls-toolkit.sh standalone -h
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.nifi.toolkit.tls.TlsToolkitMain.doMain(TlsToolkitMain.java:107)
> at
> org.apache.nifi.toolkit.tls.TlsToolkitMain.main(TlsToolkitMain.java:53)
> Caused by: java.lang.NullPointerException
> at
> org.apache.nifi.toolkit.tls.standalone.TlsToolkitStandaloneCommandLine.<clinit>(TlsToolkitStandaloneCommandLine.java:62)
> ... 6 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)