Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-991

Null dereference after hitting Ctrl+d when prompted for password in `artemis create`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 1.5.4, 2.0.0
    • Broker
    • None

    Description

      when running bin/artemis create

      respond to Please provide the default password: with Ctrl+d, which results in a NullPointerException.

      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)
      

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: