Program: 160394
Project: 160394
Buggy source:
public void start(int id,String address,int port,int pbport,Path[] pluginDirectories){
  BimServerConfig config=new BimServerConfig();
  config.setHomeDir(Paths.get("String_Node_Str" + (id == -1 ? "String_Node_Str" : id)));
  config.setResourceFetcher(new LocalDevelopmentResourceFetcher(Paths.get("String_Node_Str")));
  config.setStartEmbeddedWebServer(true);
  config.setClassPath(System.getProperty("String_Node_Str"));
  config.setLocalDev(true);
  config.setPort(port);
  config.setStartCommandLine(true);
  bimServer=new BimServer(config);
  bimServer.getVersionChecker().getLocalVersion().setDate(new Date());
  try {
    if (pluginDirectories == null || pluginDirectories.length == 0) {
      LOGGER.warn("String_Node_Str");
    }
    LocalDevPluginLoader.loadPlugins(bimServer.getPluginManager(),pluginDirectories);
    bimServer.start();
  }
 catch (  PluginException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  ServiceException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  DatabaseInitException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  BimserverDatabaseException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  DatabaseRestartRequiredException e) {
    LOGGER.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void start(int id,String address,int port,int pbport,Path[] pluginDirectories){
  BimServerConfig config=new BimServerConfig();
  config.setHomeDir(Paths.get("String_Node_Str" + (id == -1 ? "String_Node_Str" : id)));
  config.setResourceFetcher(new LocalDevelopmentResourceFetcher(Paths.get("String_Node_Str")));
  config.setStartEmbeddedWebServer(true);
  config.setClassPath(System.getProperty("String_Node_Str"));
  config.setLocalDev(true);
  config.setPort(port);
  config.setStartCommandLine(true);
  bimServer=new BimServer(config);
  bimServer.getVersionChecker().getLocalVersion().setDate(new Date());
  try {
    if (pluginDirectories == null || pluginDirectories.length == 0) {
      LOGGER.warn("String_Node_Str");
    }
    bimServer.start();
    LocalDevPluginLoader.loadPlugins(bimServer.getPluginManager(),pluginDirectories);
    if (bimServer.getServerInfo().getServerState() == ServerState.NOT_SETUP) {
      AdminInterface adminInterface=bimServer.getServiceFactory().get(new SystemAuthorization(1,TimeUnit.HOURS),AccessMethod.INTERNAL).get(AdminInterface.class);
      adminInterface.setup("String_Node_Str" + port,"String_Node_Str","String_Node_Str","String_Node_Str");
      SettingsInterface settingsInterface=bimServer.getServiceFactory().get(new SystemAuthorization(1,TimeUnit.HOURS),AccessMethod.INTERNAL).get(SettingsInterface.class);
      settingsInterface.setCacheOutputFiles(false);
      settingsInterface.setPluginStrictVersionChecking(false);
    }
  }
 catch (  PluginException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  ServiceException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  DatabaseInitException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  BimserverDatabaseException e) {
    LOGGER.error("String_Node_Str",e);
  }
catch (  DatabaseRestartRequiredException e) {
    LOGGER.error("String_Node_Str",e);
  }
}