]
Clebert Suconic updated AS7-4548:
---------------------------------
Assignee: Clebert Suconic (was: Jeff Mesnil)
Authentication failure when running in HA mode
----------------------------------------------
Key: AS7-4548
URL:
https://issues.jboss.org/browse/AS7-4548
Project: Application Server 7
Issue Type: Bug
Components: JMS
Reporter: Jeff Mesnil
Assignee: Clebert Suconic
This occurs with HornetQ 2.2.15.Final
Step to reproduce: run AS7 in HA mode:
{noformat}
$ ./bin/standalone.sh -f standalone-full-ha.xml
...
17:27:56,407 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS
7.1.2.Final-SNAPSHOT "Brontes" started in 3482ms - Started 166 of 308 services
(141 services are passive or on-demand)
17:28:05,379 ERROR [org.hornetq.core.protocol.core.impl.HornetQPacketHandler] (Old I/O
server worker (parentId: 649801582, [id: 0x26bb2f6e, /127.0.0.1:5445])) Failed to create
session : HornetQException[errorCode=105 message=Unable to validate user: null]
at
org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:147)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:807)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:187)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:85)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:508)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:556)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:517)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:533)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:372)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.channel.StaticChannelPipeline$StaticChannelHandlerContext.sendUpstream(StaticChannelPipeline.java:534)
[netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:287)
[netty-3.2.6.Final.jar:]
at
org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:372)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:367)
[netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
[netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
[netty-3.2.6.Final.jar:]
at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:100)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)
[netty-3.2.6.Final.jar:]
at
org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:181)
[netty-3.2.6.Final.jar:]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_24]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_24]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
17:28:05,388 WARN [org.hornetq.jms.server.recovery.HornetQXAResourceWrapper] (Periodic
Recovery) Can't connect to XARecoveryConfig [transportConfiguration =
[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=localhost-localdomain],
discoveryConfiguration = null, username=null, password=null] on auto-generated resource
recovery: HornetQException[errorCode=105 message=Unable to validate user: null]
at
org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:312)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:781)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:348)
[hornetq-core-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.connect(HornetQXAResourceWrapper.java:343)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:255)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.recover(HornetQXAResourceWrapper.java:76)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:503)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:166)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:789)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:371)
[jbossjts-4.16.3.Final.jar:]
17:28:05,414 WARN [org.hornetq.jms.server.recovery.HornetQXAResourceWrapper] (Periodic
Recovery) Can't connect to any hornetq server on recovery [XARecoveryConfig
[transportConfiguration =
[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=localhost-localdomain],
discoveryConfiguration = null, username=null, password=null]]
17:28:05,415 WARN [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016027: Local
XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR:
javax.transaction.xa.XAException: Error trying to connect to any providers for xa
recovery
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:279)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.recover(HornetQXAResourceWrapper.java:76)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecovery(XARecoveryModule.java:503)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(XARecoveryModule.java:471)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.bottomUpRecovery(XARecoveryModule.java:385)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(XARecoveryModule.java:166)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:789)
[jbossjts-4.16.3.Final.jar:]
at
com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:371)
[jbossjts-4.16.3.Final.jar:]
Caused by: HornetQException[errorCode=2 message=null]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.connect(HornetQXAResourceWrapper.java:389)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
at
org.hornetq.jms.server.recovery.HornetQXAResourceWrapper.getDelegate(HornetQXAResourceWrapper.java:255)
[hornetq-jms-2.2.15.Final.jar:2.2.15.Final (HQ_2_2_15_FINAL, 122)]
... 7 more
{noformat}
The error occurs when HornetQ XAResource tries to create a core connection w/o
authentication using a Netty connector.
It should use a in-vm connector instead to connect to itself afaict
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: