Program: 49489
Project: 49489
Buggy source:
public void contextInitialized(Injector injector){
  Config candlepinConfig=new Config();
  if (hornetqServer == null) {
    Configuration config=new ConfigurationImpl();
    HashSet<TransportConfiguration> transports=new HashSet<TransportConfiguration>();
    transports.add(new TransportConfiguration(InVMAcceptorFactory.class.getName()));
    config.setAcceptorConfigurations(transports);
    config.setClustered(false);
    config.setClusterPassword(null);
    config.setSecurityEnabled(false);
    int largeMsgSize=candlepinConfig.getInt(ConfigProperties.HORNETQ_LARGE_MSG_SIZE);
    config.setJournalBufferSize_NIO(largeMsgSize);
    config.setJournalType(JournalType.NIO);
    config.setCreateBindingsDir(true);
    config.setCreateJournalDir(true);
    String baseDir=candlepinConfig.getString(ConfigProperties.HORNETQ_BASE_DIR);
    config.setBindingsDirectory(new File(baseDir,"String_Node_Str").toString());
    config.setJournalDirectory(new File(baseDir,"String_Node_Str").toString());
    config.setLargeMessagesDirectory(new File(baseDir,"String_Node_Str").toString());
    hornetqServer=new HornetQServerImpl(config);
  }
  try {
    hornetqServer.start();
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw new RuntimeException(e);
  }
  cleanupOldQueues();
  List<String> listeners=Lists.newArrayList(candlepinConfig.getStringArray(ConfigProperties.AUDIT_LISTENERS));
  eventSource=injector.getInstance(EventSource.class);
  for (int i=0; i < listeners.size(); i++) {
    try {
      Class<?> clazz=this.getClass().getClassLoader().loadClass(listeners.get(i));
      eventSource.registerListener((EventListener)injector.getInstance(clazz));
    }
 catch (    Exception e) {
      log.warn("String_Node_Str" + listeners.get(i),e);
    }
  }
}

Fixed version (ground truth):
public void contextInitialized(Injector injector){
  Config candlepinConfig=new Config();
  if (hornetqServer == null) {
    Configuration config=new ConfigurationImpl();
    HashSet<TransportConfiguration> transports=new HashSet<TransportConfiguration>();
    transports.add(new TransportConfiguration(InVMAcceptorFactory.class.getName()));
    config.setAcceptorConfigurations(transports);
    config.setClustered(false);
    config.setClusterPassword(null);
    config.setSecurityEnabled(false);
    config.setJournalType(JournalType.NIO);
    config.setCreateBindingsDir(true);
    config.setCreateJournalDir(true);
    String baseDir=candlepinConfig.getString(ConfigProperties.HORNETQ_BASE_DIR);
    config.setBindingsDirectory(new File(baseDir,"String_Node_Str").toString());
    config.setJournalDirectory(new File(baseDir,"String_Node_Str").toString());
    config.setLargeMessagesDirectory(new File(baseDir,"String_Node_Str").toString());
    hornetqServer=new HornetQServerImpl(config);
  }
  try {
    hornetqServer.start();
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw new RuntimeException(e);
  }
  cleanupOldQueues();
  List<String> listeners=Lists.newArrayList(candlepinConfig.getStringArray(ConfigProperties.AUDIT_LISTENERS));
  eventSource=injector.getInstance(EventSource.class);
  for (int i=0; i < listeners.size(); i++) {
    try {
      Class<?> clazz=this.getClass().getClassLoader().loadClass(listeners.get(i));
      eventSource.registerListener((EventListener)injector.getInstance(clazz));
    }
 catch (    Exception e) {
      log.warn("String_Node_Str" + listeners.get(i),e);
    }
  }
}