This closes #2334
This commit is contained in:
commit
c1a458bb69
|
@ -196,6 +196,10 @@ public class ProtocolHandler {
|
|||
}
|
||||
|
||||
ProtocolManager protocolManagerToUse = protocolMap.get(protocolToUse);
|
||||
if (protocolManagerToUse == null) {
|
||||
ActiveMQServerLogger.LOGGER.failedToFindProtocolManager(ctx.channel() == null ? null : ctx.channel().remoteAddress() == null ? null : ctx.channel().remoteAddress().toString(), ctx.channel() == null ? null : ctx.channel().localAddress() == null ? null : ctx.channel().localAddress().toString(), protocolToUse, protocolMap.keySet().toString());
|
||||
return;
|
||||
}
|
||||
ConnectionCreator channelHandler = nettyAcceptor.createConnectionCreator();
|
||||
ChannelPipeline pipeline = ctx.pipeline();
|
||||
protocolManagerToUse.addChannelHandlers(pipeline);
|
||||
|
|
|
@ -1964,4 +1964,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
|||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 224095, value = "Error updating Consumer Count: {0}", format = Message.Format.MESSAGE_FORMAT)
|
||||
void consumerCountError(String reason);
|
||||
|
||||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 224096, value = "Error setting up connection from {0} to {1}; protocol {2} not found in map: {3}", format = Message.Format.MESSAGE_FORMAT)
|
||||
void failedToFindProtocolManager(String remoteAddress, String localAddress, String intendedProtocolManager, String protocolMap);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue