Program: 28339
Project: 28339
Buggy source:
/** 
 * Initializes the given servlet instance, by calling its init method.
 */
private void initServlet(Servlet servlet) throws ServletException {
  if (instanceInitialized && !singleThreadModel) {
    return;
  }
  try {
    instanceSupport.fireInstanceEvent(BEFORE_INIT_EVENT,servlet);
    if (SecurityUtil.executeUnderSubjectDoAs()) {
      Object[] initType=new Object[1];
      initType[0]=facade;
      SecurityUtil.doAsPrivilege("String_Node_Str",servlet,classType,initType);
      initType=null;
    }
 else {
      servlet.init(facade);
    }
    instanceInitialized=true;
    if ((loadOnStartup >= 0) && (jspFile != null)) {
      DummyRequest req=new DummyRequest();
      req.setServletPath(jspFile);
      req.setQueryString("String_Node_Str");
      String allowedMethods=(String)parameters.get("String_Node_Str");
      if (allowedMethods != null && allowedMethods.length() > 0) {
        String[] s=allowedMethods.split("String_Node_Str");
        if (s != null && s.length > 0) {
          req.setMethod(s[0].trim());
        }
      }
      DummyResponse res=new DummyResponse();
      if (SecurityUtil.executeUnderSubjectDoAs()) {
        Object[] serviceType=new Object[2];
        serviceType[0]=req;
        serviceType[1]=res;
        SecurityUtil.doAsPrivilege("String_Node_Str",servlet,classTypeUsedInService,serviceType);
      }
 else {
        servlet.service(req,res);
      }
    }
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet);
  }
 catch (  UnavailableException f) {
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet,f);
    unavailable(f);
    throw f;
  }
catch (  ServletException f) {
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet,f);
    throw f;
  }
catch (  Throwable f) {
    getServletContext().log("String_Node_Str",f);
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet,f);
    String msg=MessageFormat.format(rb.getString(SERVLET_INIT_EXCEPTION),getName());
    throw new ServletException(msg,f);
  }
}

Fixed version (ground truth):
/** 
 * Initializes the given servlet instance, by calling its init method.
 */
private void initServlet(Servlet servlet) throws ServletException {
  if (instanceInitialized && !singleThreadModel) {
    return;
  }
  try {
    instanceSupport.fireInstanceEvent(BEFORE_INIT_EVENT,servlet);
    if (SecurityUtil.executeUnderSubjectDoAs()) {
      Object[] initType=new Object[1];
      initType[0]=facade;
      SecurityUtil.doAsPrivilege("String_Node_Str",servlet,classType,initType);
      initType=null;
    }
 else {
      servlet.init(facade);
    }
    instanceInitialized=true;
    if ((loadOnStartup >= 0) && (jspFile != null)) {
      DummyRequest req=new DummyRequest();
      req.setServletPath(jspFile);
      req.setQueryString("String_Node_Str");
      String allowedMethods=(String)parameters.get("String_Node_Str");
      if (allowedMethods != null && allowedMethods.length() > 0) {
        String[] s=allowedMethods.split("String_Node_Str");
        if (s.length > 0) {
          req.setMethod(s[0].trim());
        }
      }
      DummyResponse res=new DummyResponse();
      if (SecurityUtil.executeUnderSubjectDoAs()) {
        Object[] serviceType=new Object[2];
        serviceType[0]=req;
        serviceType[1]=res;
        SecurityUtil.doAsPrivilege("String_Node_Str",servlet,classTypeUsedInService,serviceType);
      }
 else {
        servlet.service(req,res);
      }
    }
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet);
  }
 catch (  UnavailableException f) {
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet,f);
    unavailable(f);
    throw f;
  }
catch (  ServletException f) {
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet,f);
    throw f;
  }
catch (  Throwable f) {
    getServletContext().log("String_Node_Str",f);
    instanceSupport.fireInstanceEvent(AFTER_INIT_EVENT,servlet,f);
    String msg=MessageFormat.format(rb.getString(SERVLET_INIT_EXCEPTION),getName());
    throw new ServletException(msg,f);
  }
}