Program: 112247
Project: 112247
Buggy source:
@Override public void run(CommandLine theCommandLine) throws ParseException {
  myPort=parseOptionInteger(theCommandLine,OPTION_P,DEFAULT_PORT);
  if (theCommandLine.hasOption(OPTION_LOWMEM)) {
    ourLog.info("String_Node_Str");
    System.setProperty(OPTION_LOWMEM,OPTION_LOWMEM);
  }
  if (theCommandLine.hasOption(OPTION_ALLOW_EXTERNAL_REFS)) {
    ourLog.info("String_Node_Str");
    ContextHolder.setAllowExternalRefs(true);
  }
  ContextHolder.setCtx(getSpecVersionContext(theCommandLine));
  ourLog.info("String_Node_Str",myPort);
  File tempWarFile;
  try {
    tempWarFile=File.createTempFile("String_Node_Str","String_Node_Str");
    tempWarFile.deleteOnExit();
    InputStream inStream=RunServerCommand.class.getResourceAsStream("String_Node_Str");
    OutputStream outStream=new BufferedOutputStream(new FileOutputStream(tempWarFile,false));
    IOUtils.copy(inStream,outStream);
  }
 catch (  IOException e) {
    ourLog.error("String_Node_Str",e);
    return;
  }
  final ContextLoaderListener cll=new ContextLoaderListener();
  ourLog.info("String_Node_Str",ContextHolder.getCtx().getVersion().getVersion());
  WebAppContext root=new WebAppContext();
  root.setAllowDuplicateFragmentNames(true);
  root.setWar(tempWarFile.getAbsolutePath());
  root.setParentLoaderPriority(true);
  root.setContextPath("String_Node_Str");
  root.addEventListener(new ServletContextListener(){
    @Override public void contextInitialized(    ServletContextEvent theSce){
      theSce.getServletContext().setInitParameter(ContextLoader.CONTEXT_CLASS_PARAM,AnnotationConfigWebApplicationContext.class.getName());
switch (ContextHolder.getCtx().getVersion().getVersion()) {
case DSTU2:
        theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM,FhirServerConfig.class.getName());
      break;
case DSTU3:
    theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM,FhirServerConfigDstu3.class.getName());
  break;
}
cll.contextInitialized(theSce);
}
@Override public void contextDestroyed(ServletContextEvent theSce){
cll.contextDestroyed(theSce);
}
}
);
String path=ContextHolder.getPath();
root.addServlet("String_Node_Str",path + "String_Node_Str");
myServer=new Server(myPort);
myServer.setHandler(root);
try {
myServer.start();
}
 catch (SocketException e) {
throw new CommandFailureException("String_Node_Str" + myPort + "String_Node_Str"+ e.toString()+ "String_Node_Str");
}
catch (Exception e) {
ourLog.error("String_Node_Str",e);
throw new CommandFailureException("String_Node_Str",e);
}
ourLog.info("String_Node_Str",myPort);
ourLog.info("String_Node_Str",myPort);
ourLog.info("String_Node_Str",myPort,path);
}

Fixed version (ground truth):
@Override public void run(CommandLine theCommandLine) throws ParseException {
  myPort=parseOptionInteger(theCommandLine,OPTION_P,DEFAULT_PORT);
  if (theCommandLine.hasOption(OPTION_LOWMEM)) {
    ourLog.info("String_Node_Str");
    System.setProperty(OPTION_LOWMEM,OPTION_LOWMEM);
  }
  if (theCommandLine.hasOption(OPTION_ALLOW_EXTERNAL_REFS)) {
    ourLog.info("String_Node_Str");
    ContextHolder.setAllowExternalRefs(true);
  }
  ContextHolder.setCtx(getSpecVersionContext(theCommandLine));
  ourLog.info("String_Node_Str",myPort);
  File tempWarFile;
  try {
    tempWarFile=File.createTempFile("String_Node_Str","String_Node_Str");
    tempWarFile.deleteOnExit();
    InputStream inStream=RunServerCommand.class.getResourceAsStream("String_Node_Str");
    OutputStream outStream=new BufferedOutputStream(new FileOutputStream(tempWarFile,false));
    IOUtils.copy(inStream,outStream);
  }
 catch (  IOException e) {
    ourLog.error("String_Node_Str",e);
    return;
  }
  final ContextLoaderListener cll=new ContextLoaderListener();
  ourLog.info("String_Node_Str",ContextHolder.getCtx().getVersion().getVersion());
  WebAppContext root=new WebAppContext();
  root.setAllowDuplicateFragmentNames(true);
  root.setWar(tempWarFile.getAbsolutePath());
  root.setParentLoaderPriority(true);
  root.setContextPath("String_Node_Str");
  root.addEventListener(new ServletContextListener(){
    @Override public void contextInitialized(    ServletContextEvent theSce){
      theSce.getServletContext().setInitParameter(ContextLoader.CONTEXT_CLASS_PARAM,AnnotationConfigWebApplicationContext.class.getName());
switch (ContextHolder.getCtx().getVersion().getVersion()) {
case DSTU2:
        theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM,FhirServerConfig.class.getName());
      break;
case DSTU3:
    theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM,FhirServerConfigDstu3.class.getName());
  break;
case DSTU1:
case DSTU2_1:
case DSTU2_HL7ORG:
break;
}
cll.contextInitialized(theSce);
}
@Override public void contextDestroyed(ServletContextEvent theSce){
cll.contextDestroyed(theSce);
}
}
);
String path=ContextHolder.getPath();
root.addServlet("String_Node_Str",path + "String_Node_Str");
myServer=new Server(myPort);
myServer.setHandler(root);
try {
myServer.start();
}
 catch (SocketException e) {
throw new CommandFailureException("String_Node_Str" + myPort + "String_Node_Str"+ e.toString()+ "String_Node_Str");
}
catch (Exception e) {
ourLog.error("String_Node_Str",e);
throw new CommandFailureException("String_Node_Str",e);
}
ourLog.info("String_Node_Str",myPort);
ourLog.info("String_Node_Str",myPort);
ourLog.info("String_Node_Str",myPort,path);
}