[
https://issues.apache.org/jira/browse/APEXCORE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florian Schmidt updated APEXCORE-772:
-------------------------------------
Description:
When using the dump-properties-file in the apex cli an exception is thrown
{code}
apex> dump-properties-file test.out
./malhar-examples-yahoo-finance-3.8.0-SNAPSHOT.apa YahooFinanceExample
com.datatorrent.stram.cli.ApexCli$CliException: No application in jar file
matches 'YahooFinanceExample'
at
com.datatorrent.stram.cli.ApexCli$DumpPropertiesFileCommand.execute(ApexCli.java:3153)
at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1520)
{code}
even though the YahooFinanceExample exists in this .apa
Additionally if the {{./}} is not added to the path of the .apa file, the
following NullPointerException is thrown:
{code}
apex> dump-properties-file test.out
malhar-examples-yahoo-finance-3.8.0-SNAPSHOT.apa YahooFinanceExample
java.lang.NullPointerException
at
org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:544)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:691)
at
com.datatorrent.stram.client.StramAppLauncher.init(StramAppLauncher.java:347)
at
com.datatorrent.stram.client.StramAppLauncher.<init>(StramAppLauncher.java:229)
at com.datatorrent.stram.cli.ApexCli.getStramAppLauncher(ApexCli.java:481)
at com.datatorrent.stram.cli.ApexCli.access$7500(ApexCli.java:153)
at
com.datatorrent.stram.cli.ApexCli$DumpPropertiesFileCommand.execute(ApexCli.java:3149)
at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1520)
{code}
was:
When using the dump-properties-file in the apex cli an exception is thrown
{code}
apex> dump-properties-file test.out
./malhar-examples-yahoo-finance-3.8.0-SNAPSHOT.apa YahooFinanceExample
com.datatorrent.stram.cli.ApexCli$CliException: No application in jar file
matches 'YahooFinanceExample'
at
com.datatorrent.stram.cli.ApexCli$DumpPropertiesFileCommand.execute(ApexCli.java:3153)
at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1520)
{code}
even though the YahooFinanceExample exists in this .apa
Additionally if the {{./}} is not added to the path of the .apa file, the
following NullPointerException is thrown:
{code}
apex> dump-properties-file test.out
malhar-examples-yahoo-finance-3.8.0-SNAPSHOT.apa YahooFinanceExample
java.lang.NullPointerException
at
org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:544)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:691)
at com.datatorrent.stram.client.StramAppLauncher.init(StramAppLauncher.java:347)
at
com.datatorrent.stram.client.StramAppLauncher.<init>(StramAppLauncher.java:229)
at com.datatorrent.stram.cli.ApexCli.getStramAppLauncher(ApexCli.java:481)
at com.datatorrent.stram.cli.ApexCli.access$7500(ApexCli.java:153)
at
com.datatorrent.stram.cli.ApexCli$DumpPropertiesFileCommand.execute(ApexCli.java:3149)
at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1520)
{code}
> dump-properties-file in cli not working when not in connected mode
> ------------------------------------------------------------------
>
> Key: APEXCORE-772
> URL: https://issues.apache.org/jira/browse/APEXCORE-772
> Project: Apache Apex Core
> Issue Type: Bug
> Affects Versions: 3.6.0
> Reporter: Florian Schmidt
>
> When using the dump-properties-file in the apex cli an exception is thrown
> {code}
> apex> dump-properties-file test.out
> ./malhar-examples-yahoo-finance-3.8.0-SNAPSHOT.apa YahooFinanceExample
> com.datatorrent.stram.cli.ApexCli$CliException: No application in jar file
> matches 'YahooFinanceExample'
> at
> com.datatorrent.stram.cli.ApexCli$DumpPropertiesFileCommand.execute(ApexCli.java:3153)
> at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1520)
> {code}
> even though the YahooFinanceExample exists in this .apa
> Additionally if the {{./}} is not added to the path of the .apa file, the
> following NullPointerException is thrown:
> {code}
> apex> dump-properties-file test.out
> malhar-examples-yahoo-finance-3.8.0-SNAPSHOT.apa YahooFinanceExample
> java.lang.NullPointerException
> at
> org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:544)
> at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)
> at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:691)
> at
> com.datatorrent.stram.client.StramAppLauncher.init(StramAppLauncher.java:347)
> at
> com.datatorrent.stram.client.StramAppLauncher.<init>(StramAppLauncher.java:229)
> at com.datatorrent.stram.cli.ApexCli.getStramAppLauncher(ApexCli.java:481)
> at com.datatorrent.stram.cli.ApexCli.access$7500(ApexCli.java:153)
> at
> com.datatorrent.stram.cli.ApexCli$DumpPropertiesFileCommand.execute(ApexCli.java:3149)
> at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1520)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)