You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/23 18:23:44 UTC

[jira] [Commented] (ARTEMIS-991) Null dereference after hitting Ctrl+d when prompted for password in `artemis create`

    [ https://issues.apache.org/jira/browse/ARTEMIS-991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15880973#comment-15880973 ] 

ASF GitHub Bot commented on ARTEMIS-991:
----------------------------------------

GitHub user jbertram opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1041

    ARTEMIS-991 handle odd password input

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-991

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1041.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1041
    
----
commit 5f2243e570dd02595373a53330ebfe19aa79a4a1
Author: Justin Bertram <jb...@apache.org>
Date:   2017-02-23T18:22:50Z

    ARTEMIS-991 handle odd password input

----


> Null dereference after hitting Ctrl+d when prompted for password in `artemis create`
> ------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-991
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-991
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.0.0
>            Reporter: Jiri Danek
>            Assignee: Justin Bertram
>            Priority: Trivial
>             Fix For: 2.0.0
>
>
> when running {{bin/artemis create}}
> respond to {{Please provide the default password:}} with Ctrl+d, which results in a NullPointerException.
> {noformat}
> Creating ActiveMQ Artemis instance at: /home/jdanek/Downloads/A-MQ7/deleteme
> --user: is a mandatory property!
> Please provide the default username:
> admin
> --password: is mandatory with this configuration:
> Please provide the default password:
> java.lang.NullPointerException
>         at java.lang.String.<init>(String.java:166)
>         at org.apache.activemq.artemis.cli.commands.InputAbstract.inputPassword(InputAbstract.java:109)
>         at org.apache.activemq.artemis.cli.commands.Create.getPassword(Create.java:474)
>         at org.apache.activemq.artemis.cli.commands.Create.run(Create.java:640)
>         at org.apache.activemq.artemis.cli.commands.Create.execute(Create.java:545)
>         at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:148)
>         at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:95)
>         at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:122)
>         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.activemq.artemis.boot.Artemis.execute(Artemis.java:129)
>         at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)