You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Aldrin Piri (JIRA)" <ji...@apache.org> on 2017/01/11 15:13:58 UTC

[jira] [Created] (NIFI-3319) TLS toolkit throws NPE when accessed from root level

Aldrin Piri created NIFI-3319:
---------------------------------

             Summary: 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


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.4#6332)