-
1. Uable to validate user: null for check type CREATE_DURABLE_QUEUE for address
jaikiran Feb 21, 2011 2:07 AM (in response to honeychen03)Please post the entire exception stacktrace and a bit more details about your application. Also see this related thread http://community.jboss.org/message/587599#587599
-
2. Uable to validate user: null for check type CREATE_DURABLE_QUEUE for address
honeychen03 Feb 21, 2011 2:14 AM (in response to jaikiran)Thanks, it seems that there is no "createDurableQueue" attribute in hornetq-configuration.xml. I only found following attributes which may be related to this.
<security-settings>
<security-setting match="#">
<permission type="createNonDurableQueue" roles="guest"/>
<permission type="deleteNonDurableQueue" roles="guest"/>
<permission type="consume" roles="guest"/>
<permission type="send" roles="guest"/>
</security-setting>
</security-settings>
Is it ok and safe to just add <permission type="createDurableQueue" roles="guest"/> here?
-
3. Uable to validate user: null for check type CREATE_DURABLE_QUEUE for address
honeychen03 Feb 21, 2011 2:23 AM (in response to honeychen03)Adding
<permission type="createDurableQueue" roles="guest"/>
<permission type="deleteDurableQueue" roles="guest"/>
still does not work. Following is the full error trace. Please advise.
15:20:42,031 ERROR [HornetQActivation] Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@1449e5e destination=topic/com.globalsight.cxe.jms.ForFil
eSystemTargetAdapter destinationType=javax.jms.Topic ack=Auto-acknowledge durable=true clientID=FileSystemTargetAdapterMDB user=null maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: null for check type CREATE_DURABLE_QUEUE for address jms.topic.ForFileSystemTargetAdapter]
at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]
at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateQueue(ClientSessionImpl.java:1627) [:6.0.0.Final]
at org.hornetq.core.client.impl.ClientSessionImpl.createQueue(ClientSessionImpl.java:290) [:6.0.0.Final]
at org.hornetq.core.client.impl.DelegatingSession.createQueue(DelegatingSession.java:283) [:6.0.0.Final]
at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:112) [:6.0.0.Final]
at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]
at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539) [:6.0.0.Final]
at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577) [:6.0.0.Final]
at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:842) [:2.0.0.CR7]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_07]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]
-
4. Uable to validate user: null for check type CREATE_DURABLE_QUEUE for address
jaikiran Feb 21, 2011 2:30 AM (in response to honeychen03)Did you read the other thread that I pointed you to? Also like I said earlier:
Please post the entire exception stacktrace *and a bit more details about your application.*
-
5. Uable to validate user: null for check type CREATE_DURABLE_QUEUE for address
honeychen03 Feb 21, 2011 2:39 AM (in response to jaikiran)Hi jaikiran, I just packed the changed hornetq-configuration.xml in my .ear and it works.
Then my question is why there isnot
<permission type="createDurableQueue" roles="guest"/>
<permission type="deleteDurableQueue" roles="guest"/>
by detault in the xml setting. Because I am concerned if there is further issue after I added them in.