Buggy code:
public class MessageDispatchServiceImpl implements IMessageDispatchService { private static final Logger LOG = LoggerFactory . getLogger ( MessageDispatchServiceImpl . class ) ; private static final String CONNECTION_ERROR_MESSAGE = "Session<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>cookie<seq2seq4repair_space>is<seq2seq4repair_space>invalid.<seq2seq4repair_space>Reason:<seq2seq4repair_space>" + "the<seq2seq4repair_space>switch<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>recently<seq2seq4repair_space>disconnected<seq2seq4repair_space>OR<seq2seq4repair_space>inventory<seq2seq4repair_space>provides<seq2seq4repair_space>outdated<seq2seq4repair_space>information." ; private SessionContext session ; public MessageDispatchServiceImpl ( SessionContext session ) { } private ConnectionAdapter getConnectionAdapter ( SwitchConnectionDistinguisher cookie ) throws ConnectionException { if ( ! ( session . isValid ( ) ) ) { <START_BUG> MessageDispatchServiceImpl . LOG . warn ( "Session<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>cookie<seq2seq4repair_space>{}<seq2seq4repair_space>is<seq2seq4repair_space>invalid." , cookie ) ; <END_BUG> throw new ConnectionException ( MessageDispatchServiceImpl . CONNECTION_ERROR_MESSAGE ) ; } MessageDispatchServiceImpl . LOG . debug ( "finding<seq2seq4repair_space>connecton<seq2seq4repair_space>for<seq2seq4repair_space>cookie<seq2seq4repair_space>value<seq2seq4repair_space>{}.<seq2seq4repair_space>" , cookie ) ; ConnectionAdapter connectionAdapter = session . getPrimaryConductor ( ) . getConnectionAdapter ( ) ; if ( null != cookie ) { ConnectionConductor conductor = session . getAuxiliaryConductor ( cookie ) ; if ( null != conductor ) { MessageDispatchServiceImpl . LOG . debug ( "found<seq2seq4repair_space>auxiliary<seq2seq4repair_space>connection<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>cookie." ) ; connectionAdapter = conductor . getConnectionAdapter ( ) ; } } else { } return connectionAdapter ; } @ Override public Future < RpcResult < BarrierOutput > > barrier ( BarrierInput input , SwitchConnectionDistinguisher cookie ) { } private < T > SettableFuture < RpcResult < T > > getRpcErrorFuture ( ConnectionException e ) { } private List < RpcError > getConnectionErrorAsRpcErrors ( ConnectionException e ) { } @ Override public Future < RpcResult < Void > > experimenter ( ExperimenterInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < UpdateFlowOutput > > flowMod ( final FlowModInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < GetAsyncOutput > > getAsync ( GetAsyncInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < GetConfigOutput > > getConfig ( GetConfigInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < GetFeaturesOutput > > getFeatures ( GetFeaturesInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < GetQueueConfigOutput > > getQueueConfig ( GetQueueConfigInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < UpdateGroupOutput > > groupMod ( final GroupModInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < UpdateMeterOutput > > meterMod ( final MeterModInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < Void > > multipartRequest ( MultipartRequestInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < Void > > packetOut ( PacketOutInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < UpdatePortOutput > > portMod ( final PortModInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < RoleRequestOutput > > roleRequest ( RoleRequestInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < Void > > setAsync ( SetAsyncInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < Void > > setConfig ( SetConfigInput input , SwitchConnectionDistinguisher cookie ) { } @ Override public Future < RpcResult < Void > > tableMod ( TableModInput input , SwitchConnectionDistinguisher cookie ) { } }

Fix:
MessageDispatchServiceImpl . LOG . warn ( "No<seq2seq4repair_space>valid<seq2seq4repair_space>connection<seq2seq4repair_space>found<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>node<seq2seq4repair_space>[datapath-id<seq2seq4repair_space>:<seq2seq4repair_space>{}]" , session . getSessionKey ( ) . getId ( ) ) ;