activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "clebert suconic (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ARTEMIS-140) Passing in a path to create that isn't writable generates No such file or directory
Date Wed, 17 Jun 2015 02:55:00 GMT

     [ 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)

Mime
View raw message