1. 按照教程create broker时,遇到如下问题:
$ artemis create jms-data
Creating ActiveMQ Artemis instance at: F:\www\spring-intergration-jms\jms-data
--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: Cannot invoke "java.io.Console.readPassword()" b
at org.apache.activemq.artemis.cli.commands.InputAbstract.inputPassword(
at org.apache.activemq.artemis.cli.commands.Create.getPassword(Create.ja
at org.apache.activemq.artemis.cli.commands.Create.run(Create.java:640)
at org.apache.activemq.artemis.cli.commands.Create.execute(Create.java:5
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:102)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:129)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134)
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50)
1.1 能看懂是什么问题,但是没有解决思路,必应了也没查到办法,但是看到可以带参数,于是我的解决办法如下:
$ artemis create jms-data --user admin --password admin
--allow-anonymous | --require-login: is a mandatory property!
Allow anonymous access?, valid values are Y,N,True,False
n
Auto tuning journal ...
done! Your system can make 0.04 writes per millisecond, your journal-buffer-timeout will be 25964000
希望能对遇到相同问题的人有个帮助,顺便也请大牛解释下,谢谢。
ps:我的环境是windows,java环境是:
$ java -version
java version "15.0.1" 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
我在win7上使用Cgwin64 Terminal安装出现一样的问题,换成cmd安装就好了
Sign in to make a reply
赵柯的教授
1. 按照教程create broker时,遇到如下问题:
$ artemis create jms-data
Creating ActiveMQ Artemis instance at: F:\www\spring-intergration-jms\jms-data
--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: Cannot invoke "java.io.Console.readPassword()" b
at org.apache.activemq.artemis.cli.commands.InputAbstract.inputPassword(
at org.apache.activemq.artemis.cli.commands.Create.getPassword(Create.ja
at org.apache.activemq.artemis.cli.commands.Create.run(Create.java:640)
at org.apache.activemq.artemis.cli.commands.Create.execute(Create.java:5
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:102)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:129)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134)
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50)
1.1 能看懂是什么问题,但是没有解决思路,必应了也没查到办法,但是看到可以带参数,于是我的解决办法如下:
$ artemis create jms-data --user admin --password admin
Creating ActiveMQ Artemis instance at: F:\www\spring-intergration-jms\jms-data
--allow-anonymous | --require-login: is a mandatory property!
Allow anonymous access?, valid values are Y,N,True,False
n
Auto tuning journal ...
done! Your system can make 0.04 writes per millisecond, your journal-buffer-timeout will be 25964000
希望能对遇到相同问题的人有个帮助,顺便也请大牛解释下,谢谢。
ps:我的环境是windows,java环境是:
$ java -version
java version "15.0.1" 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)