Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-8398

mqtt trace logging causes error in broker: AMQ834002: Error processing control packet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • AMQ 7.11.0.GA
    • AMQ 7.10.2.GA, AMQ 7.10.3.GA
    • logging, mqtt-protocol
    • None
    • False
    • None
    • False

    Description

      Enabling trace logging on package `org.apache.activemq.artemis.core.protocol.mqtt` leads to an error in the broker. In addition, acks are not received by client.

      2023-09-19 16:32:36,805 TRACE [org.apache.activemq.artemis.core.protocol.mqtt.MQTTUtil] MQTT(JavaSample): IN << PUBLISH(2) topic=MQTT Examples, qos=2, retain=false, dup=false, remainingLength=47, payload=Message from MqttPublishSample
      2023-09-19 16:32:36,817 ERROR [org.apache.activemq.artemis.core.protocol.mqtt] AMQ834002: Error processing control packet: MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=EXACTLY_ONCE, isRetain=false, remainingLength=47], variableHeader=MqttPublishVariableHeader[topicName=MQTT Examples, packetId=2], payload=PooledSlicedByteBuf(ridx: 0, widx: 30, cap: 30/30, unwrapped: PooledUnsafeDirectByteBuf(ridx: 49, widx: 49, cap: 1024))]: java.lang.ClassCastException: class io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader cannot be cast to class io.netty.handler.codec.mqtt.MqttPubReplyMessageVariableHeader (io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader and io.netty.handler.codec.mqtt.MqttPubReplyMessageVariableHeader are in unnamed module of loader java.net.URLClassLoader @7506e922)
      	at org.apache.activemq.artemis.core.protocol.mqtt.MQTTUtil.logMessage(MQTTUtil.java:345) [artemis-mqtt-protocol-2.21.0.redhat-00041.jar:2.21.0.redhat-00041]
      

      Attachments

        Activity

          People

            rhn-support-jbertram Justin Bertram
            rhn-support-shiggs Stephen Higgs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: