Return-Path: X-Original-To: apmail-activemq-issues-archive@minotaur.apache.org Delivered-To: apmail-activemq-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 483B618458 for ; Wed, 17 Jun 2015 00:42:02 +0000 (UTC) Received: (qmail 26039 invoked by uid 500); 17 Jun 2015 00:42:02 -0000 Delivered-To: apmail-activemq-issues-archive@activemq.apache.org Received: (qmail 26013 invoked by uid 500); 17 Jun 2015 00:42:02 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 26003 invoked by uid 99); 17 Jun 2015 00:42:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 00:42:02 +0000 Date: Wed, 17 Jun 2015 00:42:02 +0000 (UTC) From: "John D. Ament (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ARTEMIS-140) Passing in a path to create that isn't writable generates No such file or directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 John D. Ament created ARTEMIS-140: ------------------------------------- Summary: 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 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.(FileOutputStream.java:213) at java.io.FileOutputStream.(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.(FileOutputStream.java:213) at java.io.FileOutputStream.(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)