[jboss-jira] [JBoss JIRA] (AS7-4475) Fix error handling in the helloworld-jms quickstart
Farah Juma (JIRA)
jira-events at lists.jboss.org
Wed Apr 11 15:50:47 EDT 2012
Farah Juma created AS7-4475:
-------------------------------
Summary: Fix error handling in the helloworld-jms quickstart
Key: AS7-4475
URL: https://issues.jboss.org/browse/AS7-4475
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.1.1.Final
Reporter: Farah Juma
When building the helloworld-jms quickstart without having created an application user, the call to
connection = connectionFactory.createConnection();
fails with the error:
{code}
Apr 11, 2012 9:25:15 AM org.jboss.as.quickstarts.jms.HelloWorldJMSClient
main
SEVERE: Unable to validate user: null
{code}
The server log shows:
{code}
09:25:15,186 ERROR
[org.hornetq.core.protocol.core.impl.HornetQPacketHandler] (Old I/O
server worker (parentId: 213209572, [id: 0x0cb551e4, /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.13.Final.jar:]
at
org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:807)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:187)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:85)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:508)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:556)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:517)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:533)
[hornetq-core-2.2.13.Final.jar:]
at
org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73)
[hornetq-core-2.2.13.Final.jar:]
...
{code}
To run this quickstart, an application user needs to be created first. However, when a user hasn't been created, the quickstart still displays a BUILD SUCCESS even though that's not true. The exception is caught and the SEVERE message is logged but the messages were never sent nor received. The quickstart should be rewritten so that it succeeds only if the messages that were sent are effectively received.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list