TCP port conflicts might occur in the SAS JMS Broker that cause the broker to fail to start


SAS® Web Application Server Hot Fix P6T004 introduced updated Apache ActiveMQ software. This update included a configuration to enable multiple connectors in the broker. When you have multiple brokers on the same system (for example, when you have Lev1 and Lev2 on the same machine), TCP port conflicts can occur. As a result, the broker fails to start.

When this issue occurs, the log might contain an error similar to the following:

2026-09-10 15:23:48,198 | ERROR | Failed to start Apache ActiveMQ (localhost, ID:sasserver-36261-1789021427986-0:1) | org.apache.activemq.broker.BrokerService | main
java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use (Bind failed)

Workaround

To address this issue, complete the following steps:

  1. Update the SASConfig/LevX/Web/activemq/conf/activemq.xml file.
  2. Locate the transportConnectors section.
  3. Comment all except the openwire connector. (Note: Ensure that your TCP port is correct. By default, Lev1 - 61616, Lev2 - 61617, Lev3 - 61618, and so on.)
        <transportConnectors>
            <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
            <!--<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>-->
            <!--<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>-->
            <!--<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>-->
            <!--<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>-->
        </transportConnectors>