简体   繁体   English

hivemq非法状态异常

[英]hivemq illegal state exception

I'm trying to develop a hivemq authentication plugin. 我正在尝试开发hivemq身份验证插件。
I have followed the hivemq guide for creating a project, and I am not doing anything in the plugin itself. 我已经按照hivemq指南创建了一个项目,但是插件本身并没有做任何事情。 I return true immediately. 我立即返回true。

mosquitto_sub -t hey

When I try to connect with mosquitto_sub using the command above, I get the error below. 当我尝试使用上面的命令与mosquitto_sub连接时,出现以下错误。

INFO  - Started HiveMQ 1.4.2 in 1528ms
ERROR - An unexpecteed error occured:
java.lang.IllegalStateException: illegal state during login of client mosq_sub_12248_ahmetce
at com.dcsquare.hivemq.handler.protocol.ConnectMessageHandler.logStatus(ConnectMessageHandler.java:176)
at com.dcsquare.hivemq.handler.protocol.ConnectMessageHandler.processSuccessfulLogin(ConnectMessageHandler.java:114)

This is the code I'm testing with: http://pastie.org/8555786#22-23 这是我正在测试的代码: http : //pastie.org/8555786#22-23

Has anyone had a similar error? 有没有人有类似的错误?

This is a regression in the 1.4.x HiveMQ line and is fixed in all HiveMQ versions > 1.4.3. 这是1.4.x HiveMQ行中的回归,并且在所有大于1.4.3的HiveMQ版本中已修复。 The solution is to upgrade the HiveMQ version to a more recent one. 解决方案是将HiveMQ版本升级到最新版本。 (At the time of this writing, 1.4.3 is the most recent stable version, but hotfix versions are available.) (在撰写本文时,1.4.3是最新的稳定版本,但可以使用修补程序版本。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM