Program: 151977
Project: 151977
Buggy source:
public static void main(String[] args){
  OptionFactory optFactory=OptionFactory.getInstance();
  Options options=KafkaConsumer.getOptions();
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",false,"String_Node_Str"));
  CommandLineParser parser=new GnuParser();
  ShutdownHook sh=ShutdownHook.getInstance();
  try {
    CommandLine cmd=parser.parse(options,args);
    final KafkaConsumer consumer=KafkaConsumer.fromOptions(cmd);
    sh.addFirst(consumer);
    SinkConfiguration sinkConfig=new SinkConfiguration();
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setLong("String_Node_Str",Long.parseLong(cmd.getOptionValue("String_Node_Str","String_Node_Str")));
    sinkConfig.setBoolean("String_Node_Str",Boolean.parseBoolean(cmd.getOptionValue("String_Node_Str","String_Node_Str")));
    KeyValueSinkFactory sinkFactory=KeyValueSinkFactory.getInstance(SequenceFileSink.class,sinkConfig);
    sh.addLast(sinkFactory);
    consumer.setSinkFactory(sinkFactory);
    MetricsManager.getInstance();
    consumer.poll();
  }
 catch (  ParseException e) {
    LOG.error("String_Node_Str",e);
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(KafkaSequenceFileConsumer.class.getName(),options);
  }
catch (  NumberFormatException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  OptionFactory optFactory=OptionFactory.getInstance();
  Options options=KafkaConsumer.getOptions();
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",true,"String_Node_Str"));
  options.addOption(optFactory.create("String_Node_Str","String_Node_Str",false,"String_Node_Str"));
  CommandLineParser parser=new GnuParser();
  ShutdownHook sh=ShutdownHook.getInstance();
  try {
    CommandLine cmd=parser.parse(options,args);
    final KafkaConsumer consumer=KafkaConsumer.fromOptions(cmd);
    sh.addFirst(consumer);
    SinkConfiguration sinkConfig=new SinkConfiguration();
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setString("String_Node_Str",cmd.getOptionValue("String_Node_Str","String_Node_Str"));
    sinkConfig.setLong("String_Node_Str",Long.parseLong(cmd.getOptionValue("String_Node_Str","String_Node_Str")));
    sinkConfig.setBoolean("String_Node_Str",cmd.hasOption("String_Node_Str"));
    KeyValueSinkFactory sinkFactory=KeyValueSinkFactory.getInstance(SequenceFileSink.class,sinkConfig);
    sh.addLast(sinkFactory);
    consumer.setSinkFactory(sinkFactory);
    MetricsManager.getInstance();
    consumer.poll();
  }
 catch (  ParseException e) {
    LOG.error("String_Node_Str",e);
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(KafkaSequenceFileConsumer.class.getName(),options);
  }
catch (  NumberFormatException e) {
    LOG.error("String_Node_Str",e);
  }
}