Program: 55514
Project: 55514
Buggy source:
private TransferEnvelopeReceiverList getReceiverList(final JobID jobID,final ChannelID sourceChannelID){
  TransferEnvelopeReceiverList receiverList=this.receiverCache.get(sourceChannelID);
  if (receiverList == null) {
    try {
      while (true) {
        ConnectionInfoLookupResponse lookupResponse;
synchronized (this.channelLookupService) {
          lookupResponse=this.channelLookupService.lookupConnectionInfo(this.localConnectionInfo,jobID,sourceChannelID);
        }
        if (lookupResponse.receiverNotFound()) {
          throw new IOException("String_Node_Str" + sourceChannelID);
        }
        if (lookupResponse.receiverNotReady()) {
          Thread.sleep(500);
          continue;
        }
        if (lookupResponse.receiverReady()) {
          receiverList=new TransferEnvelopeReceiverList(lookupResponse);
          break;
        }
      }
      if (receiverList != null) {
        this.receiverCache.put(sourceChannelID,receiverList);
        if (LOG.isDebugEnabled()) {
          final StringBuilder sb=new StringBuilder();
          sb.append("String_Node_Str" + sourceChannelID + "String_Node_Str"+ this.localConnectionInfo+ "String_Node_Str");
          if (receiverList.hasLocalReceivers()) {
            sb.append("String_Node_Str");
            final Iterator<ChannelID> it=receiverList.getLocalReceivers().iterator();
            while (it.hasNext()) {
              sb.append("String_Node_Str" + it.next() + "String_Node_Str");
            }
          }
          if (receiverList.hasRemoteReceivers()) {
            sb.append("String_Node_Str");
            final Iterator<InetSocketAddress> it=receiverList.getRemoteReceivers().iterator();
            while (it.hasNext()) {
              sb.append("String_Node_Str" + it.next() + "String_Node_Str");
            }
          }
          LOG.debug(sb.toString());
        }
      }
    }
 catch (    InterruptedException ie) {
    }
catch (    IOException ioe) {
    }
  }
  return receiverList;
}

Fixed version (ground truth):
/** 
 * Returns the list of receivers for transfer envelopes produced by the channel with the given source channel ID.
 * @param jobID the ID of the job the given channel ID belongs to
 * @param sourceChannelID the source channel ID for which the receiver list shall be retrieved
 * @return the list of receivers or <code>null</code> if the list of receivers could not be retrieved or therequesting thread has been interrupted
 */
private TransferEnvelopeReceiverList getReceiverList(final JobID jobID,final ChannelID sourceChannelID){
  TransferEnvelopeReceiverList receiverList=this.receiverCache.get(sourceChannelID);
  if (receiverList == null) {
    try {
      while (true) {
        if (Thread.currentThread().isInterrupted()) {
          break;
        }
        ConnectionInfoLookupResponse lookupResponse;
synchronized (this.channelLookupService) {
          lookupResponse=this.channelLookupService.lookupConnectionInfo(this.localConnectionInfo,jobID,sourceChannelID);
        }
        if (lookupResponse.receiverNotFound()) {
          LOG.error("String_Node_Str" + sourceChannelID);
          break;
        }
        if (lookupResponse.receiverNotReady()) {
          Thread.sleep(500);
          continue;
        }
        if (lookupResponse.receiverReady()) {
          receiverList=new TransferEnvelopeReceiverList(lookupResponse);
          break;
        }
      }
    }
 catch (    Exception e) {
    }
  }
  if (receiverList != null) {
    this.receiverCache.put(sourceChannelID,receiverList);
    if (LOG.isDebugEnabled()) {
      final StringBuilder sb=new StringBuilder();
      sb.append("String_Node_Str" + sourceChannelID + "String_Node_Str"+ this.localConnectionInfo+ "String_Node_Str");
      if (receiverList.hasLocalReceivers()) {
        sb.append("String_Node_Str");
        final Iterator<ChannelID> it=receiverList.getLocalReceivers().iterator();
        while (it.hasNext()) {
          sb.append("String_Node_Str" + it.next() + "String_Node_Str");
        }
      }
      if (receiverList.hasRemoteReceivers()) {
        sb.append("String_Node_Str");
        final Iterator<InetSocketAddress> it=receiverList.getRemoteReceivers().iterator();
        while (it.hasNext()) {
          sb.append("String_Node_Str" + it.next() + "String_Node_Str");
        }
      }
      LOG.debug(sb.toString());
    }
  }
  return receiverList;
}