Java JMS = HornetQ = javax.jms.JMSSecurityException:无法验证用户:null?
我尝试了几个小时来让 HornetQ 示例在 Eclipse 中运行。使用独立示例一切正常,但是当我在 Eclipse 中运行示例时,出现以下错误:
javax.jms.JMSSecurityException: Unable to validate user: null
此错误意味着什么?我必须在哪里指定用户?也许HornetQ尝试在“某些上下文/属性”等中查找该用户,但我不知道在哪里以及如何指定HornetQ正在运行的用户。
我做了什么:
1.)使用 ./bin 目录中的 start.sh 脚本启动默认 HornetQ 服务器
2.)将 QueueExample 复制到 eclpise
3.)在配置文件中做了一些细微的更改(以具有相同的队列名称) ...)
(我还尝试通过设置完全禁用安全性:
<security-enabled>false</security-enabled>
但没有成功,总是收到相同的错误。此外,当尝试仅通过类以编程方式实例化 HornetQ 时,我也会收到此错误)。
非常感谢!! 延斯
I am trying for several hours to get the HornetQ Examples running in Eclipse. Using the Standalone Examples everything works fine, but when I run the examples in Eclipse I get the following error:
javax.jms.JMSSecurityException: Unable to validate user: null
What could this error mean? Where do I have to specify the user? Maybe HornetQ tries to look this user up in "Some Context/Properties" etc , but I do not know where and how to specifiy the user HornetQ is running under.
What i did:
1.)Started Default HornetQ Server with the start.sh Script in the ./bin directory
2.)Copied the QueueExample over to eclpise
3.)Did some minor changes in the config files (to have the same Queue Names...)
(I also tried to disable security completely by setting:
<security-enabled>false</security-enabled>
but with no success, always getting the same error. Also when trying to programmatically instance HornetQ only via classes I get this error too).
Thank you very much!!
Jens
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您看过此帖子吗?看来您需要示例角色的“createTempQueue”权限。
Did you have a look at this thread? It seems you need to the permission 'createTempQueue' to the example role.