You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by francesco <fr...@unimore.it> on 2014/01/15 09:28:02 UTC

Hawtio send message User name [null] or password is invalid

My activemq-5.9.0 uses LDAPLogin in activemq.xml and both older /admin
console and newer /hawtio console are secured with LDAP.

When I publish a message, older /admin console uses the credentials in
./conf/credentials.properties in order to authenticate itself (everything
works).

Hawtio instead fails with a:
[ActiveMQ VMTransport: vm://localhost#9] [WARN] [2014-01-15 09:19:59,321]
o.a.a.b.TransportConnection: Failed to add Connection
ID:filch-36184-1389772907025-11:1
java.lang.SecurityException: User name [null] or password is invalid.
	at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)
~[activemq-broker-5.9.0.jar:5.9.0]
[...]
	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
~[na:1.7.0_06]
	at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
~[na:1.7.0_06]
	at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:73)
~[activemq-broker-5.9.0.jar:5.9.0]
	... 11 common frames omitted
[ActiveMQ BrokerService[localhost] Task-10] [INFO] [2014-01-15 09:20:01,323]
o.a.a.b.TransportConnection: Stopping vm://localhost#8 because Failed with
SecurityException: User name [null] or password is invalid.

How can I instruct hawtio to authenticate when sending messages? BTW, why
activemq allows hawtio to browse destinations while forbidding it to post?

thank you for the clarifications!

Francesco



--
View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Hawtio send message User name [null] or password is invalid

Posted by francesco <fr...@unimore.it>.
Claus Ibsen's answer solved my issue. You need to insert credentials in the
hawtio web console. I don't remember details, but in the web app you can
store config info: put the username and password,

see you

Francesco 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293p4704084.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Hawtio send message User name [null] or password is invalid

Posted by stewchicken <st...@gmail.com>.
Hey did you get the problem solved? if yes could you please share solution
with me?
i have exact same problem. Thanks!



--
View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293p4704069.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Hawtio send message User name [null] or password is invalid

Posted by Trilok Agrawal <ag...@gmail.com>.
Hi, I am using Fuse 6.1 and credentials for Active MQ in preference. Still I
am getting this error.

10:52:36,045 | INFO  | pool-17-thread-1 | BrokerService                    |
146 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Apache
ActiveMQ 5.9.0.redhat-610379 (amq, ID:ITLAP01-55937-1409548955913-2:1) is
starting
10:52:36,111 | INFO  | pool-17-thread-1 | TransportServerThreadSupport     |
146 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Listening
for connections at: tcp://ITLAP01:61616?maximumConnections=1000
10:52:36,111 | INFO  | pool-17-thread-1 | TransportConnector               |
146 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Connector
openwire started
10:52:36,112 | INFO  | pool-17-thread-1 | BrokerService                    |
146 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Apache
ActiveMQ 5.9.0.redhat-610379 (amq, ID:ITLAP01-55937-1409548955913-2:1)
started
10:52:36,112 | INFO  | pool-17-thread-1 | BrokerService                    |
146 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | For help or
more information please see: http://activemq.apache.org
10:52:36,126 | INFO  | pool-17-thread-1 | ActiveMQServiceFactory           |
156 - org.jboss.amq.mq-fabric - 6.1.0.redhat-379 | Broker amq has started.
10:52:36,592 | WARN  | .0.1:55938@61616 | TransportConnection              |
146 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Failed to
add Connection ID:ITLAP01-55937-1409548955913-1:1
java.lang.SecurityException: User name [null] or password is invalid.
	at
org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
	at
org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:97)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
	at
org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:764)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
	at
org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:79)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
	at
org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
	at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
	at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:148)[146:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]





--
View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293p4685194.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Hawtio send message User name [null] or password is invalid

Posted by Claus Ibsen <cl...@gmail.com>.
Newer versions of hawtio will display a message on that screen telling
you about the missing credentials and provide a link to the
preference. So this should help people in the future to spot this and
be able to find the solution more easier.



On Wed, Jan 15, 2014 at 10:26 AM, francesco
<fr...@unimore.it> wrote:
> Thank you, perfect. My problem is solved.
>
> thank you,
>
> Francesco
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293p4676297.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Re: Hawtio send message User name [null] or password is invalid

Posted by francesco <fr...@unimore.it>.
Thank you, perfect. My problem is solved.

thank you,

Francesco



--
View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293p4676297.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Hawtio send message User name [null] or password is invalid

Posted by Claus Ibsen <cl...@gmail.com>.
You can configure the username and password for ActiveMQ in the preference.

On Wed, Jan 15, 2014 at 9:28 AM, francesco
<fr...@unimore.it> wrote:
> My activemq-5.9.0 uses LDAPLogin in activemq.xml and both older /admin
> console and newer /hawtio console are secured with LDAP.
>
> When I publish a message, older /admin console uses the credentials in
> ./conf/credentials.properties in order to authenticate itself (everything
> works).
>
> Hawtio instead fails with a:
> [ActiveMQ VMTransport: vm://localhost#9] [WARN] [2014-01-15 09:19:59,321]
> o.a.a.b.TransportConnection: Failed to add Connection
> ID:filch-36184-1389772907025-11:1
> java.lang.SecurityException: User name [null] or password is invalid.
>         at
> org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)
> ~[activemq-broker-5.9.0.jar:5.9.0]
> [...]
>         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
> ~[na:1.7.0_06]
>         at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
> ~[na:1.7.0_06]
>         at
> org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:73)
> ~[activemq-broker-5.9.0.jar:5.9.0]
>         ... 11 common frames omitted
> [ActiveMQ BrokerService[localhost] Task-10] [INFO] [2014-01-15 09:20:01,323]
> o.a.a.b.TransportConnection: Stopping vm://localhost#8 because Failed with
> SecurityException: User name [null] or password is invalid.
>
> How can I instruct hawtio to authenticate when sending messages? BTW, why
> activemq allows hawtio to browse destinations while forbidding it to post?
>
> thank you for the clarifications!
>
> Francesco
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Hawtio-send-message-User-name-null-or-password-is-invalid-tp4676293.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io