Program: 29515
Project: 29515
Buggy source:
private void createThreadPools(org.glassfish.grizzly.config.dom.ThreadPool threadpoolBean,int index){
  String threadpoolId=null;
  String minThreadsValue, maxThreadsValue, timeoutValue;
  int minThreads=DEFAULT_MIN_THREAD_COUNT;
  int maxThreads=DEFAULT_MAX_THREAD_COUNT;
  int idleTimeoutInSeconds=120000;
  try {
    threadpoolId=threadpoolBean.getName();
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
    }
  }
  try {
    minThreadsValue=threadpoolBean.getMinThreadPoolSize();
    minThreads=Integer.parseInt(minThreadsValue);
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
      _logger.log(Level.WARNING,"String_Node_Str" + minThreads);
    }
  }
catch (  NumberFormatException nfe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",nfe);
      _logger.log(Level.WARNING,"String_Node_Str" + minThreads);
    }
  }
  try {
    maxThreadsValue=threadpoolBean.getMaxThreadPoolSize();
    maxThreads=Integer.parseInt(maxThreadsValue);
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
      _logger.log(Level.WARNING,"String_Node_Str" + maxThreads);
    }
  }
catch (  NumberFormatException nfe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",nfe);
      _logger.log(Level.WARNING,"String_Node_Str" + maxThreads);
    }
  }
  try {
    timeoutValue=threadpoolBean.getIdleThreadTimeoutSeconds();
    idleTimeoutInSeconds=Integer.parseInt(timeoutValue);
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
      _logger.log(Level.WARNING,"String_Node_Str" + idleTimeoutInSeconds);
    }
  }
catch (  NumberFormatException nfe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",nfe);
      _logger.log(Level.WARNING,"String_Node_Str" + idleTimeoutInSeconds);
    }
  }
  ThreadPoolFactory threadPoolFactory=new ThreadPoolFactory();
  ThreadPool threadpool=threadPoolFactory.create(minThreads,maxThreads,idleTimeoutInSeconds * 1000,threadpoolId,_iiopUtils.getCommonClassLoader());
  threadpoolList.add(threadpool);
  idToIndexTable.put(threadpoolId,new Integer(index));
  indexToIdTable.put(new Integer(index),threadpoolId);
}

Fixed version (ground truth):
private void createThreadPools(org.glassfish.grizzly.config.dom.ThreadPool threadpoolBean,int index){
  String threadpoolId=null;
  String minThreadsValue, maxThreadsValue, timeoutValue;
  int minThreads=DEFAULT_MIN_THREAD_COUNT;
  int maxThreads=DEFAULT_MAX_THREAD_COUNT;
  int idleTimeoutInSeconds=120000;
  try {
    threadpoolId=threadpoolBean.getName();
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
    }
  }
  try {
    minThreadsValue=threadpoolBean.getMinThreadPoolSize();
    minThreads=Integer.parseInt(minThreadsValue);
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
      _logger.log(Level.WARNING,"String_Node_Str" + minThreads);
    }
  }
catch (  NumberFormatException nfe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",nfe);
      _logger.log(Level.WARNING,"String_Node_Str" + minThreads);
    }
  }
  try {
    maxThreadsValue=threadpoolBean.getMaxThreadPoolSize();
    maxThreads=Integer.parseInt(maxThreadsValue);
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
      _logger.log(Level.WARNING,"String_Node_Str" + maxThreads);
    }
  }
catch (  NumberFormatException nfe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",nfe);
      _logger.log(Level.WARNING,"String_Node_Str" + maxThreads);
    }
  }
  try {
    timeoutValue=threadpoolBean.getIdleThreadTimeoutSeconds();
    idleTimeoutInSeconds=Integer.parseInt(timeoutValue);
  }
 catch (  NullPointerException npe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",npe);
      _logger.log(Level.WARNING,"String_Node_Str" + idleTimeoutInSeconds);
    }
  }
catch (  NumberFormatException nfe) {
    if (_logger.isLoggable(Level.WARNING)) {
      _logger.log(Level.WARNING,"String_Node_Str",nfe);
      _logger.log(Level.WARNING,"String_Node_Str" + idleTimeoutInSeconds);
    }
  }
  ThreadPoolFactory threadPoolFactory=new ThreadPoolFactory();
  ThreadPool threadpool=threadPoolFactory.create(minThreads,maxThreads,idleTimeoutInSeconds * 1000L,threadpoolId,_iiopUtils.getCommonClassLoader());
  threadpoolList.add(threadpool);
  idToIndexTable.put(threadpoolId,Integer.valueOf(index));
  indexToIdTable.put(Integer.valueOf(index),threadpoolId);
}