Program: 83947
Project: 83947
Buggy source:
public void start(){
  try {
    System.setProperty("String_Node_Str","String_Node_Str");
    System.setProperty("String_Node_Str","String_Node_Str");
    System.setProperty("String_Node_Str","String_Node_Str");
    logger.config("String_Node_Str" + bindAddress + "String_Node_Str"+ port);
    DBAbstractionLayer dbAbstractionLayer=new DBAbstractionLayer();
    RootHandler handler=new RootHandler(rootPath);
    RESTServer.addResource(handler);
    baseResources.put(rootPath,"String_Node_Str");
    InfoBusResource ibus=InfoBusResource.getInstance(rootPath + "String_Node_Str");
    RESTServer.addResource(ibus);
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    ResyncSmapStreams resyncResource=new ResyncSmapStreams(rootPath + "String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    RESTServer.addResource(resyncResource);
    String pubPath=rootPath + "String_Node_Str";
    PubHandler pubHandler=new PubHandler(pubPath);
    RESTServer.addResource(pubHandler);
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    SubHandler subHandler=new SubHandler(rootPath + "String_Node_Str");
    RESTServer.addResource(subHandler);
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    StreamInfoHandler streamInfoHandler=new StreamInfoHandler(rootPath + "String_Node_Str");
    RESTServer.addResource(streamInfoHandler);
    TimeResource timeResource=new TimeResource(rootPath + "String_Node_Str");
    RESTServer.addResource(timeResource);
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    SubInfoHandler subInfoHandler=new SubInfoHandler(rootPath + "String_Node_Str");
    RESTServer.addResource(subInfoHandler);
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    DemuxResource demuxResource=new DemuxResource();
    RESTServer.addResource(demuxResource);
    DemuxResource2 demuxResource2=new DemuxResource2();
    RESTServer.addResource(demuxResource2);
    ModelManagerResource mmr=new ModelManagerResource();
    baseResources.put(mmr.getURI(),"String_Node_Str");
    RESTServer.addResource(mmr);
    ProcessManagerResource pmr=new ProcessManagerResource();
    baseResources.put(pmr.getURI(),"String_Node_Str");
    RESTServer.addResource(pmr);
    Resource adminResource=new Resource(rootPath + "String_Node_Str");
    Resource tsResource=new Resource(adminResource.getURI() + "String_Node_Str");
    Resource propsResource=new Resource(adminResource.getURI() + "String_Node_Str");
    Resource dataAdminResource=new AdminDataReposIndexesResource();
    Resource propsAdminResource=new AdminPropsReposIndexesResource();
    Resource allNodesResource=new AllNodesResource(rootPath + "String_Node_Str");
    baseResources.put(adminResource.getURI(),"String_Node_Str");
    baseResources.put(tsResource.getURI(),"String_Node_Str");
    baseResources.put(propsResource.getURI(),"String_Node_Str");
    baseResources.put(dataAdminResource.getURI(),"String_Node_Str");
    baseResources.put(propsAdminResource.getURI(),"String_Node_Str");
    baseResources.put(allNodesResource.getURI(),"String_Node_Str");
    RESTServer.addResource(adminResource);
    RESTServer.addResource(tsResource);
    RESTServer.addResource(propsResource);
    RESTServer.addResource(dataAdminResource);
    RESTServer.addResource(propsAdminResource);
    RESTServer.addResource(allNodesResource);
    loadResources();
    pmr.loadPrevState();
    router=new Router();
    logger.info("String_Node_Str");
    logger.info("String_Node_Str");
    metadataGraph=MetadataGraph.getInstance();
    Resource.setMetadataGraph(metadataGraph);
    Thread routerThread=new Thread(router);
    logger.info("String_Node_Str");
    routerThread.start();
    logger.info("String_Node_Str");
    logger.info("String_Node_Str");
    metadataGraph.populateInternalGraph(tellRouter);
    logger.info("String_Node_Str");
    ShutdownProc shutdown=new ShutdownProc(this);
    Runtime.getRuntime().addShutdownHook(shutdown);
    logger.info("String_Node_Str" + port);
    connection=new SocketConnection((Container)this);
    SocketAddress address=new InetSocketAddress(bindAddress,port);
    connection.connect(address);
    logger.info("String_Node_Str" + bindAddress + "String_Node_Str"+ port);
    System.setProperty(KEYSTORE_PROPERTY,"String_Node_Str");
    System.setProperty(KEYSTORE_PASSWORD_PROPERTY,"String_Node_Str");
    SocketAddress address2=new InetSocketAddress(bindAddress,port + 1);
    SSLContext sslContext=createSSLContext();
    connectionHttps=new SocketConnection((Container)this);
    connectionHttps.connect(address2,sslContext);
    logger.info("String_Node_Str" + bindAddress + "String_Node_Str"+ (port + 1));
    System.out.println("String_Node_Str" + (port + 1));
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void start(){
  try {
    System.setProperty("String_Node_Str","String_Node_Str");
    System.setProperty("String_Node_Str","String_Node_Str");
    System.setProperty("String_Node_Str","String_Node_Str");
    logger.config("String_Node_Str" + bindAddress + "String_Node_Str"+ port);
    DBAbstractionLayer dbAbstractionLayer=new DBAbstractionLayer();
    RootHandler roothandler=new RootHandler(rootPath);
    InfoBusResource ibus=InfoBusResource.getInstance(rootPath + "String_Node_Str");
    ResyncSmapStreams resyncResource=new ResyncSmapStreams(rootPath + "String_Node_Str");
    String pubPath=rootPath + "String_Node_Str";
    PubHandler pubHandler=new PubHandler(pubPath);
    SubHandler subHandler=new SubHandler(rootPath + "String_Node_Str");
    StreamInfoHandler streamInfoHandler=new StreamInfoHandler(rootPath + "String_Node_Str");
    TimeResource timeResource=new TimeResource(rootPath + "String_Node_Str");
    SubInfoHandler subInfoHandler=new SubInfoHandler(rootPath + "String_Node_Str");
    DemuxResource demuxResource=new DemuxResource();
    DemuxResource2 demuxResource2=new DemuxResource2();
    ModelManagerResource mmr=new ModelManagerResource();
    ProcessManagerResource pmr=new ProcessManagerResource();
    Resource adminResource=new Resource(rootPath + "String_Node_Str");
    Resource tsResource=new Resource(adminResource.getURI() + "String_Node_Str");
    Resource propsResource=new Resource(adminResource.getURI() + "String_Node_Str");
    Resource dataAdminResource=new AdminDataReposIndexesResource();
    Resource propsAdminResource=new AdminPropsReposIndexesResource();
    Resource allNodesResource=new AllNodesResource(rootPath + "String_Node_Str");
    RESTServer.addResource(mmr);
    RESTServer.addResource(pubHandler);
    RESTServer.addResource(resyncResource);
    RESTServer.addResource(streamInfoHandler);
    RESTServer.addResource(subHandler);
    RESTServer.addResource(timeResource);
    RESTServer.addResource(ibus);
    RESTServer.addResource(subInfoHandler);
    RESTServer.addResource(demuxResource);
    RESTServer.addResource(demuxResource2);
    RESTServer.addResource(pmr);
    RESTServer.addResource(adminResource);
    RESTServer.addResource(tsResource);
    RESTServer.addResource(propsResource);
    RESTServer.addResource(dataAdminResource);
    RESTServer.addResource(propsAdminResource);
    RESTServer.addResource(allNodesResource);
    RESTServer.addResource(roothandler);
    String timepath=timeResource.getURI();
    String timepath2=timeResource.getURI().substring(0,timeResource.getURI().length() - 1);
    baseResources.put(timeResource.getURI(),"String_Node_Str");
    baseResources.put(timeResource.getURI().substring(0,timeResource.getURI().length() - 1),"String_Node_Str");
    logger.info("String_Node_Str" + timeResource.getClass().getName() + "String_Node_Str"+ timepath+ "String_Node_Str"+ timepath2);
    baseResources.put(roothandler.getURI(),"String_Node_Str");
    baseResources.put(roothandler.getURI().substring(0,roothandler.getURI().length() - 1),"String_Node_Str");
    baseResources.put(demuxResource.getURI(),"String_Node_Str");
    baseResources.put(demuxResource.getURI().substring(0,demuxResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(demuxResource2.getURI(),"String_Node_Str");
    baseResources.put(demuxResource2.getURI().substring(0,demuxResource2.getURI().length() - 1),"String_Node_Str");
    baseResources.put(subHandler.getURI(),"String_Node_Str");
    baseResources.put(subHandler.getURI().substring(0,subHandler.getURI().length() - 1),"String_Node_Str");
    baseResources.put(resyncResource.getURI(),"String_Node_Str");
    baseResources.put(resyncResource.getURI().substring(0,resyncResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(streamInfoHandler.getURI(),"String_Node_Str");
    baseResources.put(streamInfoHandler.getURI().substring(0,streamInfoHandler.getURI().length() - 1),"String_Node_Str");
    baseResources.put(pubHandler.getURI(),"String_Node_Str");
    baseResources.put(pubHandler.getURI().substring(0,pubHandler.getURI().length() - 1),"String_Node_Str");
    baseResources.put(subInfoHandler.getURI(),"String_Node_Str");
    baseResources.put(subInfoHandler.getURI().substring(0,subInfoHandler.getURI().length() - 1),"String_Node_Str");
    baseResources.put(mmr.getURI(),"String_Node_Str");
    baseResources.put(mmr.getURI().substring(0,mmr.getURI().length() - 1),"String_Node_Str");
    baseResources.put(pmr.getURI(),"String_Node_Str");
    baseResources.put(pmr.getURI().substring(0,pmr.getURI().length() - 1),"String_Node_Str");
    baseResources.put(rootPath,"String_Node_Str");
    baseResources.put(adminResource.getURI(),"String_Node_Str");
    baseResources.put(adminResource.getURI().substring(0,adminResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(tsResource.getURI(),"String_Node_Str");
    baseResources.put(tsResource.getURI().substring(0,tsResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(propsResource.getURI(),"String_Node_Str");
    baseResources.put(propsResource.getURI().substring(0,propsResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(dataAdminResource.getURI(),"String_Node_Str");
    baseResources.put(dataAdminResource.getURI().substring(0,dataAdminResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(propsAdminResource.getURI(),"String_Node_Str");
    baseResources.put(propsAdminResource.getURI().substring(0,propsAdminResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(allNodesResource.getURI(),"String_Node_Str");
    baseResources.put(allNodesResource.getURI().substring(0,allNodesResource.getURI().length() - 1),"String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    baseResources.put(rootPath + "String_Node_Str","String_Node_Str");
    loadResources();
    pmr.loadPrevState();
    router=new Router();
    logger.info("String_Node_Str");
    logger.info("String_Node_Str");
    metadataGraph=MetadataGraph.getInstance();
    Resource.setMetadataGraph(metadataGraph);
    Thread routerThread=new Thread(router);
    logger.info("String_Node_Str");
    routerThread.start();
    logger.info("String_Node_Str");
    logger.info("String_Node_Str");
    metadataGraph.populateInternalGraph(tellRouter);
    logger.info("String_Node_Str");
    ShutdownProc shutdown=new ShutdownProc(this);
    Runtime.getRuntime().addShutdownHook(shutdown);
    logger.info("String_Node_Str" + port);
    connection=new SocketConnection((Container)this);
    SocketAddress address=new InetSocketAddress(bindAddress,port);
    connection.connect(address);
    logger.info("String_Node_Str" + bindAddress + "String_Node_Str"+ port);
    System.setProperty(KEYSTORE_PROPERTY,"String_Node_Str");
    System.setProperty(KEYSTORE_PASSWORD_PROPERTY,"String_Node_Str");
    SocketAddress address2=new InetSocketAddress(bindAddress,port + 1);
    SSLContext sslContext=createSSLContext();
    connectionHttps=new SocketConnection((Container)this);
    connectionHttps.connect(address2,sslContext);
    logger.info("String_Node_Str" + bindAddress + "String_Node_Str"+ (port + 1));
    System.out.println("String_Node_Str" + (port + 1));
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"String_Node_Str",e);
  }
}