[
https://issues.apache.org/jira/browse/NIFI-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy LoPresto resolved NIFI-3319.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
> 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
> Fix For: 1.2.0
>
>
> 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)