12 Replies Latest reply on Jun 20, 2012 3:52 AM by srinivaas venkat

    Spring listener remote queue lookup fails

    srinivaas venkat Novice

      hi, I'm using Jboss 7.1.1 Final and Hornet 2.2.13.Final and spring 2.5.6. Trying to configure a spring listener in Tomcat (6.0) to read messages from a JMS queue but I see the below exception being thrown in jms server whenever the listener tries to establish a connection to the queue inspite of giving the user and password details to the spring listener connection configuration.

       

      13:26:18,411 ERROR [org.hornetq.core.protocol.core.impl.HornetQPacketHandler] (Old I/O server worker (parentId: 400247875, [id: 0x17db4c43, jmsNode1.org.int/a.b.c.d: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:]         at org.jboss.netty.channel.SimpleChannelHandler.handleUps 13:26:18,078 INFO  [org.jboss.as.naming] (Remoting "node1" task-2) JBAS011806: Channel end notification received, closing channel Channel ID 6170c9e0 (inbound) of Remoting connection 548c6b37 to /10.145.133.32:1684

       

      Also I see the below exception from tomcat during startuip where the spring listener is deployed

       

      13:26:18,156 INFO  [org.jboss.as.naming] (Remoting "node1" task-1) JBAS011806: Channel end notification received, closing channel Channel ID 06bbefd0 (inbound) of Remoting connection 7ece9ff5 to null

       

      Note: Lookup to RemoteConnectionFactory and remote lookup to jms queue from a java client works fine without any issues but the issue occurs only when I try to configure the spring listener (running in tomcat) to a remote queue I've checked the Spring integration example that connects to a local queue and I changed the connection params to point to RemoteConnectionFactory and also changed the lookup to point to jms/queue/test for remote queue lookup but still it doesnt work. Pls help!