Program: 116951
Project: 116951
Buggy source:
/** 
 * Processes each input tuple and emits tuple which holds the following information about a network packet : group_key : first 3 digits of the pcap_id pcap_id : generated from network packet srcIp, dstIp, protocol, srcPort, dstPort header_json : contains global header, ipv4 header, tcp header(if the n/w protocol is tcp), udp header (if the n/w protocol is udp) timestamp : the n/w packet capture timestamp pcap : tuple in binary array.
 * @param input Tuple
 * @see backtype.storm.task.IBolt#execute(Tuple)
 */
public void execute(Tuple input){
  List<PacketInfo> packetInfoList=null;
  try {
    packetInfoList=PcapParser.parse(input.getBinary(0));
    if (packetInfoList != null) {
      for (      PacketInfo packetInfo : packetInfoList) {
        JSONObject message=new JSONObject();
        message.put("String_Node_Str",packetInfo.getKey());
        message.put("String_Node_Str",packetInfo.getJsonIndexDoc());
        collector.emit("String_Node_Str",new Values(message));
        collector.emit("String_Node_Str",new Values(packetInfo.getJsonDoc(),packetInfo.getKey()));
        collector.emit("String_Node_Str",new Values(packetInfo.getKey(),(packetInfo.getPacketHeader().getTsSec() * secMultiplier + packetInfo.getPacketHeader().getTsUsec() * microSecMultiplier),input.getBinary(0)));
      }
    }
  }
 catch (  Exception e) {
    collector.fail(input);
    e.printStackTrace();
    LOG.error("String_Node_Str",e);
    String error_as_string=org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e);
    JSONObject error=ErrorGenerator.generateErrorMessage("String_Node_Str" + input.getBinary(0),error_as_string);
    collector.emit("String_Node_Str",new Values(error));
    return;
  }
  collector.ack(input);
}

Fixed version (ground truth):
/** 
 * Processes each input tuple and emits tuple which holds the following information about a network packet : group_key : first 3 digits of the pcap_id pcap_id : generated from network packet srcIp, dstIp, protocol, srcPort, dstPort header_json : contains global header, ipv4 header, tcp header(if the n/w protocol is tcp), udp header (if the n/w protocol is udp) timestamp : the n/w packet capture timestamp pcap : tuple in binary array.
 * @param input Tuple
 * @see backtype.storm.task.IBolt#execute(Tuple)
 */
public void execute(Tuple input){
  List<PacketInfo> packetInfoList=null;
  try {
    packetInfoList=PcapParser.parse(input.getBinary(0));
    if (packetInfoList != null) {
      for (      PacketInfo packetInfo : packetInfoList) {
        String string_pcap=packetInfo.getJsonIndexDoc();
        Object obj=JSONValue.parse(string_pcap);
        JSONObject header=(JSONObject)obj;
        JSONObject message=new JSONObject();
        message.put("String_Node_Str",packetInfo.getKey());
        if (header.containsKey("String_Node_Str")) {
          String tmp=header.get("String_Node_Str").toString();
          header.remove("String_Node_Str");
          header.put("String_Node_Str",tmp);
        }
        if (header.containsKey("String_Node_Str")) {
          String tmp=header.get("String_Node_Str").toString();
          header.remove("String_Node_Str");
          header.put("String_Node_Str",tmp);
        }
        if (header.containsKey("String_Node_Str")) {
          String tmp=header.get("String_Node_Str").toString();
          header.remove("String_Node_Str");
          header.put("String_Node_Str",tmp);
        }
        if (message.containsKey("String_Node_Str")) {
          String tmp=header.get("String_Node_Str").toString();
          header.remove("String_Node_Str");
          header.put("String_Node_Str",tmp);
        }
        if (message.containsKey("String_Node_Str")) {
          String tmp=header.get("String_Node_Str").toString();
          header.remove("String_Node_Str");
          header.put("String_Node_Str",tmp);
        }
        message.put("String_Node_Str",header);
        collector.emit("String_Node_Str",new Values(packetInfo.getKey(),message));
        collector.emit("String_Node_Str",new Values(packetInfo.getJsonDoc(),packetInfo.getKey()));
        collector.emit("String_Node_Str",new Values(packetInfo.getKey(),(packetInfo.getPacketHeader().getTsSec() * secMultiplier + packetInfo.getPacketHeader().getTsUsec() * microSecMultiplier),input.getBinary(0)));
      }
    }
  }
 catch (  Exception e) {
    collector.fail(input);
    e.printStackTrace();
    LOG.error("String_Node_Str",e);
    String error_as_string=org.apache.commons.lang.exception.ExceptionUtils.getStackTrace(e);
    JSONObject error=ErrorGenerator.generateErrorMessage("String_Node_Str" + input.getBinary(0),error_as_string);
    collector.emit("String_Node_Str",new Values(error));
    return;
  }
  collector.ack(input);
}