Program: 28491
Project: 28491
Buggy source:
protected void configureTransport(final NetworkListener networkListener,final Transport transportConfig,final FilterChainBuilder filterChainBuilder){
  final String transportClassName=transportConfig.getClassname();
  if (TCPNIOTransport.class.getName().equals(transportClassName)) {
    transport=configureTCPTransport(transportConfig);
  }
 else   if (UDPNIOTransport.class.getName().equals(transportClassName)) {
    transport=configureUDPTransport();
  }
 else {
    throw new GrizzlyConfigException("String_Node_Str" + transportConfig.getName());
  }
  String selectorName=transportConfig.getSelectionKeyHandler();
  if (selectorName != null) {
    if (getSelectionKeyHandlerByName(selectorName,transportConfig) != null) {
      if (logger.isLoggable(Level.INFO)) {
        logger.warning("String_Node_Str");
      }
    }
  }
  if (!Transport.BYTE_BUFFER_TYPE.equalsIgnoreCase(transportConfig.getByteBufferType())) {
    transport.setMemoryManager(new ByteBufferManager(true,AbstractMemoryManager.DEFAULT_MAX_BUFFER_SIZE,ByteBufferManager.DEFAULT_SMALL_BUFFER_SIZE));
  }
  transport.setSelectorRunnersCount(Integer.parseInt(transportConfig.getAcceptorThreads()));
  final int readSize=Integer.parseInt(transportConfig.getSocketReadBufferSize());
  if (readSize > 0) {
    transport.setReadBufferSize(readSize);
  }
  final int writeSize=Integer.parseInt(transportConfig.getSocketWriteBufferSize());
  if (writeSize > 0) {
    transport.setWriteBufferSize(writeSize);
  }
  transport.getKernelThreadPoolConfig().setPoolName(networkListener.getName() + "String_Node_Str");
  transport.setIOStrategy(loadIOStrategy(transportConfig.getIOStrategy()));
  transport.setNIOChannelDistributor(new RoundRobinConnectionDistributor(transport,Boolean.parseBoolean(transportConfig.getDedicatedAcceptorEnabled())));
  filterChainBuilder.add(new TransportFilter());
}

Fixed version (ground truth):
protected void configureTransport(final NetworkListener networkListener,final Transport transportConfig,final FilterChainBuilder filterChainBuilder){
  final String transportClassName=transportConfig.getClassname();
  if (TCPNIOTransport.class.getName().equals(transportClassName)) {
    transport=configureTCPTransport(transportConfig);
  }
 else   if (UDPNIOTransport.class.getName().equals(transportClassName)) {
    transport=configureUDPTransport();
  }
 else {
    throw new GrizzlyConfigException("String_Node_Str" + transportConfig.getName());
  }
  String selectorName=transportConfig.getSelectionKeyHandler();
  if (selectorName != null) {
    if (getSelectionKeyHandlerByName(selectorName,transportConfig) != null) {
      if (logger.isLoggable(Level.INFO)) {
        logger.warning("String_Node_Str");
      }
    }
  }
  if (!Transport.BYTE_BUFFER_TYPE.equalsIgnoreCase(transportConfig.getByteBufferType())) {
    transport.setMemoryManager(new ByteBufferManager(true,AbstractMemoryManager.DEFAULT_MAX_BUFFER_SIZE,ByteBufferManager.DEFAULT_SMALL_BUFFER_SIZE));
  }
  transport.setSelectorRunnersCount(Integer.parseInt(transportConfig.getAcceptorThreads()));
  final int readSize=Integer.parseInt(transportConfig.getSocketReadBufferSize());
  if (readSize > 0) {
    transport.setReadBufferSize(readSize);
  }
  final int writeSize=Integer.parseInt(transportConfig.getSocketWriteBufferSize());
  if (writeSize > 0) {
    transport.setWriteBufferSize(writeSize);
  }
  transport.getKernelThreadPoolConfig().setPoolName(networkListener.getName() + "String_Node_Str");
  transport.setIOStrategy(loadIOStrategy(transportConfig.getIoStrategy()));
  transport.setNIOChannelDistributor(new RoundRobinConnectionDistributor(transport,Boolean.parseBoolean(transportConfig.getDedicatedAcceptorEnabled())));
  filterChainBuilder.add(new TransportFilter());
}