0 Replies Latest reply on Jul 26, 2014 4:32 AM by Test Test

    org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Failed to add Connection java.lang.SecurityException: User name [null] or password is invalid.

    Test Test Newbie

      Hi,

       

      We are seeing a random behavior in jboss-fuse-6.1.0.redhat-379 where connection to activemq fails with following exception. It happens on some machines randomly. We are using activemq connection factory with broker url,and creds. what is surprising is, though broker url is tcp://<host>:<port>, we seeing vm://amq in logs. Same issue has been reported here but with no soln:

      Fuse ActiveMQ Config - javax.jms.JMSSecurityException: User name [null] or password is invalid.

       

       

      02:50:36,671 | INFO  | e[amq] Task-3713 | TransportConnection              | 131 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Stopping vm://amq#227086 because Failed with SecurityException: User name [null] or password is invalid.

      02:50:36,686 | WARN  | m://amq#227085-1 | TransportConnection              | 131 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Failed to add Connection ID.......

      java.lang.SecurityException: User name [null] or password is invalid.

        at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:97)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:764)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:148)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:242)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)[131:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_51]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_51]

        at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]

      Caused by: javax.security.auth.login.LoginException: Username can not be null

        at org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.login(PropertiesLoginModule.java:93)[27:org.apache.karaf.jaas.modules:2.3.0.redhat-610379]

        at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)[karaf-jaas-boot.jar:]

        at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_51]