You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Rosander (JIRA)" <ji...@apache.org> on 2017/02/13 20:37:41 UTC
[jira] [Assigned] (NIFI-3319) TLS toolkit throws NPE when accessed
from root level
[ https://issues.apache.org/jira/browse/NIFI-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Rosander reassigned NIFI-3319:
------------------------------------
Assignee: Bryan Rosander
> 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)