You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (JIRA)" <ji...@apache.org> on 2015/06/17 04:55:00 UTC
[jira] [Closed] (ARTEMIS-140) Passing in a path to create that
isn't writable generates No such file or directory
[ https://issues.apache.org/jira/browse/ARTEMIS-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
clebert suconic closed ARTEMIS-140.
-----------------------------------
Resolution: Fixed
Done by John Ament
> Passing in a path to create that isn't writable generates No such file or directory
> -----------------------------------------------------------------------------------
>
> Key: ARTEMIS-140
> URL: https://issues.apache.org/jira/browse/ARTEMIS-140
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: John D. Ament
> Priority: Minor
> Fix For: 1.0.1
>
>
> If you enter an invalid path, e.g. /rawr which on my machine isn't writable, you get the following stack. We should handle it better
> {code}
> java.io.FileNotFoundException: /rawr/bin/artemis (No such file or directory)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
> at org.apache.activemq.artemis.cli.commands.Create.write(Create.java:689)
> at org.apache.activemq.artemis.cli.commands.Create.write(Create.java:671)
> at org.apache.activemq.artemis.cli.commands.Create.run(Create.java:550)
> at org.apache.activemq.artemis.cli.commands.Create.execute(Create.java:419)
> at org.apache.activemq.artemis.cli.Artemis.main(Artemis.java:67)
> 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:483)
> at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:116)
> Exception in thread "main" java.io.FileNotFoundException: /rawr/bin/artemis (No such file or directory)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
> at org.apache.activemq.artemis.cli.commands.Create.write(Create.java:689)
> at org.apache.activemq.artemis.cli.commands.Create.write(Create.java:671)
> at org.apache.activemq.artemis.cli.commands.Create.run(Create.java:550)
> at org.apache.activemq.artemis.cli.commands.Create.execute(Create.java:419)
> at org.apache.activemq.artemis.cli.Artemis.main(Artemis.java:67)
> 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:483)
> at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:116)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)