Java JMS = HornetQ = javax.jms.JMSSecurityException:无法验证用户:null?

发布于 2024-08-30 14:32:47 字数 601 浏览 2 评论 0原文

我尝试了几个小时来让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏日浅笑〃 2024-09-06 14:32:48

您看过此帖子吗?看来您需要示例角色的“createTempQueue”权限。

Did you have a look at this thread? It seems you need to the permission 'createTempQueue' to the example role.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文