2 Replies Latest reply on Sep 9, 2011 2:31 AM by jaikiran pai

    Problem with JMS resource-ref

    Giorgio Anastopoulos Newbie

      Hi, I'm new to JBoss (6.0) an trying to do some JMS with Spring.

      I'm experiencing different problems.

       

      Problem 1

      Impossible to create a new connection factory using the console, the exception is:

      16:59:09,227 INFO  [org.rhq.core.pc.inventory.CreateResourceRunner] Creating resource through report: CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=JMS Connection Factory, plugin=HornetQ]], ResourceKey=[null]

      16:59:09,227 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException: Failed to invoke method 'createConnectionFactory' on component 'JMSConnectionFactoryManageMO' with parameters [SimpleMetaType:java.lang.String:testCF, SimpleMetaType:boolean:false, SimpleMetaType:boolean:false, SimpleMetaType:int:4, SimpleMetaType:java.lang.String:netty, SimpleMetaType:java.lang.String:testCF, SimpleMetaType:java.lang.String:null, SimpleMetaType:int:1048576, SimpleMetaType:int:1048576, SimpleMetaType:long:30000, SimpleMetaType:long:60000, SimpleMetaType:long:30000, SimpleMetaType:int:1048576, SimpleMetaType:int:-1, SimpleMetaType:int:-1, SimpleMetaType:int:65536, SimpleMetaType:boolean:false, SimpleMetaType:int:102400, SimpleMetaType:boolean:false, SimpleMetaType:boolean:false, SimpleMetaType:boole

      an:true, SimpleMetaType:boolean:false, SimpleMetaType:boolean:false, SimpleMetaType:long:2000, SimpleMetaType:double:1.0, SimpleMetaType:int:0, SimpleMetaType:int:5, SimpleMetaType:int:-1, SimpleMetaType:java.lang.String:null, SimpleMetaType:int:1500, SimpleMetaType:boolean:true, SimpleMetaType:long:2000, SimpleMetaType:java.lang.String:org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy].

      16:59:09,227 ERROR [STDERR]     at org.jboss.profileservice.plugins.management.util.AbstractManagedComponentRuntimeDispatcher.invoke(AbstractManagedComponentRuntimeDispatcher.java:148)

      16:59:09,227 ERROR [STDERR]     at org.jboss.profileservice.management.DelegatingComponentDispatcherImpl.invoke(DelegatingComponentDispatcherImpl.java:93)

      16:59:09,227 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source)

      16:59:09,227 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:59:09,227 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      16:59:09,227 ERROR [STDERR]     at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)

      16:59:09,227 ERROR [STDERR]     at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

      16:59:09,227 ERROR [STDERR]     at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:99)

      16:59:09,227 ERROR [STDERR]     at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)

      16:59:09,227 ERROR [STDERR]     at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

      16:59:09,227 ERROR [STDERR]     at org.jboss.remoting.Client.invoke(Client.java:1961)

      16:59:09,227 ERROR [STDERR]     at org.jboss.remoting.Client.invoke(Client.java:804)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      16:59:09,242 ERROR [STDERR]     at org.jboss.aop.generatedproxies.AOPProxy$0.invoke(AOPProxy$0.java)

      16:59:09,242 ERROR [STDERR]     at org.jboss.profileservice.management.client.ManagedOperationDelegate.invoke(ManagedOperationDelegate.java:63)

      16:59:09,242 ERROR [STDERR]     at org.jboss.as.integration.hornetq.jopr.JMSManagerComponent.createConnectionFactory(JMSManagerComponent.java:219)

      16:59:09,242 ERROR [STDERR]     at org.jboss.as.integration.hornetq.jopr.JMSManagerComponent.createResource(JMSManagerComponent.java:130)

      16:59:09,242 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:59:09,242 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      16:59:09,242 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:59:09,242 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      16:59:09,242 ERROR [STDERR]     at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)

      16:59:09,242 ERROR [STDERR]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      16:59:09,242 ERROR [STDERR]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      16:59:09,242 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      16:59:09,242 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      16:59:09,242 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:662)

      16:59:09,242 ERROR [STDERR] Caused by: org.jboss.joinpoint.spi.JoinpointException: Method not found createConnectionFactory[java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, long, java.lang.String, int, int, long, long, long, int, int, int, int, boolean, int, boolean, boolean, boolean, boolean, boolean, long, double, int, boolean, int, int, java.lang.String] for class org.jboss.as.integration.hornetq.management.jms.ConnectionFactoryManageMO

      16:59:09,258 ERROR [STDERR]     at org.jboss.joinpoint.plugins.Config.findMethodInfo(Config.java:400)

      16:59:09,258 ERROR [STDERR]     at org.jboss.joinpoint.plugins.Config.findMethodInfo(Config.java:366)

      16:59:09,258 ERROR [STDERR]     at org.jboss.joinpoint.plugins.Config.findMethodInfo(Config.java:335)

      16:59:09,258 ERROR [STDERR]     at org.jboss.joinpoint.plugins.Config.getMethodJoinpoint(Config.java:223)

      16:59:09,258 ERROR [STDERR]     at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:299)

      16:59:09,258 ERROR [STDERR]     at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:305)

      16:59:09,258 ERROR [STDERR]     at org.jboss.kernel.plugins.registry.basic.LifecycleAwareKernelBus$1.dispatch(LifecycleAwareKernelBus.java:61)

      16:59:09,258 ERROR [STDERR]     at org.jboss.kernel.plugins.registry.basic.LifecycleAwareKernelBus$1.dispatch(LifecycleAwareKernelBus.java:58)

      16:59:09,258 ERROR [STDERR]     at org.jboss.kernel.plugins.registry.basic.BasicKernelBus.execute(BasicKernelBus.java:71)

      16:59:09,258 ERROR [STDERR]     at org.jboss.kernel.plugins.registry.basic.LifecycleAwareKernelBus.invoke(LifecycleAwareKernelBus.java:57)

      16:59:09,258 ERROR [STDERR]     at org.jboss.profileservice.management.KernelBusRuntimeComponentDispatcher.invoke(KernelBusRuntimeComponentDispatcher.java:85)

      16:59:09,258 ERROR [STDERR]     at org.jboss.profileservice.plugins.management.util.AbstractManagedComponentRuntimeDispatcher.invoke(AbstractManagedComponentRuntimeDispatcher.java:135)

      16:59:09,258 ERROR [STDERR]     at org.jboss.profileservice.management.DelegatingComponentDispatcherImpl.invoke(DelegatingComponentDispatcherImpl.java:93)

      16:59:09,258 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source)

      16:59:09,258 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:59:09,258 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      16:59:09,258 ERROR [STDERR]     at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)

      16:59:09,258 ERROR [STDERR]     at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)

      16:59:09,258 ERROR [STDERR]     at org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:99)

      16:59:09,258 ERROR [STDERR]     at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)

      16:59:09,258 ERROR [STDERR]     at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)

      16:59:09,273 ERROR [STDERR]     at org.jboss.remoting.Client.invoke(Client.java:1961)

      16:59:09,273 ERROR [STDERR]     at org.jboss.remoting.Client.invoke(Client.java:804)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

      16:59:09,273 ERROR [STDERR]     at org.jboss.aop.generatedproxies.AOPProxy$0.invoke(AOPProxy$0.java)

      16:59:09,273 ERROR [STDERR]     at org.jboss.profileservice.management.client.ManagedOperationDelegate.invoke(ManagedOperationDelegate.java:63)

      16:59:09,273 ERROR [STDERR]     at org.jboss.as.integration.hornetq.jopr.JMSManagerComponent.createConnectionFactory(JMSManagerComponent.java:219)

      16:59:09,273 ERROR [STDERR]     at org.jboss.as.integration.hornetq.jopr.JMSManagerComponent.createResource(JMSManagerComponent.java:130)

      16:59:09,273 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      16:59:09,273 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      16:59:09,273 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      16:59:09,273 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)

      16:59:09,273 ERROR [STDERR]     at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)

      16:59:09,273 ERROR [STDERR]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      16:59:09,273 ERROR [STDERR]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      16:59:09,273 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

       

      To go further with my prototype, I used the default XAConnectionFactory

       

      Problem 2

      I created a queue with JNDI name myQueue using the JBoss console.

      I define resource-ref for jms queue and connection factory as follows:

       

      jboss-web.xml

      <jboss-web>

          <resource-ref>

              <res-ref-name>myConnectionFactoryJNDI</res-ref-name>

              <jndi-name>XAConnectionFactory</jndi-name>

          </resource-ref>

          <resource-ref>

              <res-ref-name>myQueueJNDI</res-ref-name>

              <jndi-name>myQueue</jndi-name>

          </resource-ref>

      </jboss-web>

       

      web.xml

      </web-app>

      ...

          <bean name="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">

              <property name="jndiName" value="myConnectionFactoryJNDI" />

              <property name="jndiTemplate" ref="jndiTemplate" />

          </bean>

          <bean name="jmsDestination" class="org.springframework.jndi.JndiObjectFactoryBean">

              <property name="jndiName" value="myQueueJNDI" />

              <property name="jndiTemplate" ref="jndiTemplate" />

         </bean>

      </web-app>

       

      Then try to use all of this in my spring context:

       

          <bean name="jmsDestination" class="org.springframework.jndi.JndiObjectFactoryBean">

              <property name="jndiName" value="myQueueJNDI" />

          </bean>

          <bean name="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">

              <property name="jndiName" value="myConnectionFactoryJNDI" />

              <property name="jndiTemplate" ref="jndiTemplate" />

          </bean>

       

      When deploying, I get the following error:


      Caused by: javax.naming.NameNotFoundException: myQueueJNDI not bound

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) [:5.0.5.Final]

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) [:5.0.5.Final]

      at org.jnp.server.NamingServer.getObject(NamingServer.java:785) [:5.0.5.Final]

      at org.jnp.server.NamingServer.lookup(NamingServer.java:443) [:5.0.5.Final]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]

      at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) [:1.6.0_26]

      at sun.rmi.transport.Transport$1.run(Transport.java:159) [:1.6.0_26]

      at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_26]

      at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [:1.6.0_26]

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [:1.6.0_26]

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [:1.6.0_26]

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [:1.6.0_26]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

      at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) [:1.6.0_26]

      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) [:1.6.0_26]

      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142) [:1.6.0_26]

      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) [:5.0.5.Final]

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728) [:5.0.5.Final]

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]

      at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_26]

      at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201) [:3.0.5.RELEASE]

      at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187) [:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) [:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) [:3.0.5.RELEASE]

      ... 129 more

       

      The queue and connection factory are in the jndi, but the resource-ref mapping seems to fail.

       

      Problem 3

      If I directly use the original JNDI name instead of the one of the resource-ref, all is OK until I try to send a message, when the following error occurs:

      16:50:29,968 ERROR [org.hornetq.core.protocol.core.ServerSessionPacketHandler] Caught exception: HornetQException[errorCode=105 message=Unable to validate user: null for check type SEND for address jms.queue.myQueue]

              at org.hornetq.core.security.impl.SecurityStoreImpl.check(SecurityStoreImpl.java:187) [:6.0.0.Final]

              at org.hornetq.core.server.impl.ServerSessionImpl.doSend(ServerSessionImpl.java:1156) [:6.0.0.Final]

              at org.hornetq.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1000) [:6.0.0.Final]

              at org.hornetq.core.protocol.core.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:461) [:6.0.0.Final]

              at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:471) [:6.0.0.Final]

              at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:451) [:6.0.0.Final]

              at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:412) [:6.0.0.Final]

              at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:459) [:6.0.0.Final]

              at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:67) [:6.0.0.Final]

              at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100) [:6.0.0.Final]

              at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362) [:6.0.0.Final]

              at org.jboss.netty.channel.StaticChannelPipeline$StaticChannelHandlerContext.sendUpstream(StaticChannelPipeline.java:514) [:6.0.0.Final]

              at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:287) [:6.0.0.Final]

              at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169) [:6.0.0.Final]

              at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134) [:6.0.0.Final]

              at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80) [:6.0.0.Final]

              at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362) [:6.0.0.Final]

              at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:357) [:6.0.0.Final]

              at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [:6.0.0.Final]

              at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [:6.0.0.Final]

              at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90) [:6.0.0.Final]

              at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [:6.0.0.Final]

              at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46) [:6.0.0.Final]

              at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:181) [:6.0.0.Final]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

       

      16:50:29,999 ERROR [STDERR] org.springframework.jms.JmsSecurityException: Unable to validate user: null for check type SEND for address jms.queue.myQueue; nested exception is javax.jms.JMSSecurityException: Unable to validate user: null for check type SEND for address jms.queue.myQueue

      16:50:29,999 ERROR [STDERR]     at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:291)

      16:50:29,999 ERROR [STDERR]     at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)

      16:50:29,999 ERROR [STDERR]     at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469)

      16:50:30,014 ERROR [STDERR]     at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534)

      16:50:30,014 ERROR [STDERR]     at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:526)

      16:50:30,014 ERROR [STDERR]     at ch.rp.esb.poller.EventsPublisher.publishEvents(EventsPublisher.java:118)

      16:50:30,014 ERROR [STDERR]     at ch.rp.esb.poller.EventsPublisher.run(EventsPublisher.java:49)

      16:50:30,014 ERROR [STDERR]     at java.util.TimerThread.mainLoop(Timer.java:512)

      16:50:30,030 ERROR [STDERR]     at java.util.TimerThread.run(Timer.java:462)

      16:50:30,030 ERROR [STDERR] Caused by: javax.jms.JMSSecurityException: Unable to validate user: null for check type SEND for address jms.queue.myQueue

      16:50:30,030 ERROR [STDERR]     at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287)

      16:50:30,030 ERROR [STDERR]     at org.hornetq.core.client.impl.ClientSessionImpl.commit(ClientSessionImpl.java:514)

      16:50:30,030 ERROR [STDERR]     at org.hornetq.core.client.impl.DelegatingSession.commit(DelegatingSession.java:156)

      16:50:30,030 ERROR [STDERR]     at org.hornetq.jms.client.HornetQSession.commit(HornetQSession.java:229)

      16:50:30,030 ERROR [STDERR]     at org.springframework.jms.support.JmsUtils.commitIfNecessary(JmsUtils.java:217)

      16:50:30,030 ERROR [STDERR]     at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:573)

      16:50:30,030 ERROR [STDERR]     at org.springframework.jms.core.JmsTemplate$3.doInJms(JmsTemplate.java:536)

      16:50:30,030 ERROR [STDERR]     at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466)

      16:50:30,030 ERROR [STDERR]     ... 6 more

      16:50:30,046 ERROR [STDERR] Caused by: HornetQException[errorCode=105 message=Unable to validate user: null for check type SEND for address jms.queue.myQueue]

       

       

      Can someone help me with these issues?

       

      Thanks

      Giorgio