WARN - No Publish Flow Registered for MqttStatefulPublish with Bridge Extension and ActiveMQ remote broker

 Problem

This article helps you how to resolve the warning WARN - No publish flow registered for MqttStatefulPublish.. when bridge extension is enabled with SUB mode and the remote broker is ActiveMQ.

 Solution

When using the ActiveMQ and HiveMQ bridge extension with SUB mode, you may encounter the warning message "WARN - No publish flow registered for MqttStatefulPublish{stateless=MqttPublish{topic=house/rooms/living, payload=286byte, qos=EXACTLY_ONCE, retain=false}, packetIdentifier=6, dup=false, topicAlias=0, subscriptionIdentifiers=[]}." This warning indicates that there is an issue with the topic filter of the bridge configuration.

  1. Examine the Bridge Configuration:

    Check the bridge configuration for the topic filter.

    If the topic filter is using the "dot" (.) as a delimiter for topics, modify it to use the "slash" (/) instead.

    For example, change <filter>house.room.living</filter> to <filter>house/room/living</filter> and restart the bridge extension.
    Please refer following full bridge config.xml example.

    <?xml version="1.0" encoding="UTF-8"?> <hivemq-bridge-extension xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bridge-configuration.xsd"> <message-log> <enabled>true</enabled> <log-level>DEBUG</log-level> <mqtt-packets>CONNECT, INCOMING-PUBLISH, SUBSCRIBE, OUTGOING-PUBLISH</mqtt-packets> </message-log> <bridges> <bridge> <!-- default is true --> <enabled>true</enabled> <name>remote-bridge</name> <remote-broker> ... </remote-broker> <topics> <topic> <filter>house/rooms/living</filter> <mode>SUB</mode> <preserve-retained>false</preserve-retained> </topic> </topics> </bridge> </bridges> </hivemq-bridge-extension>