我正在开发一个hivemq认证插件。
我已经按照hivemq指南创建了一个项目,我没有在插件本身做任何事情。我马上回复真假。
mosquitto_sub -t hey当我试图使用上面的命令与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)这是我正在测试的代码:http://pastie.org/8555786#22-23
有没有人犯过类似的错误?
发布于 2013-12-16 22:20:23
这是1.4.x HiveMQ行中的回归,并且在所有HiveMQ版本> 1.4.3中都是固定的。解决方案是将HiveMQ版本升级到最近的版本。(在撰写本文时,1.4.3是最新的稳定版本,但hotfix版本是可用的。)
https://stackoverflow.com/questions/20613118
复制相似问题