Program: 115276
Project: 115276
Buggy source:
@Override public void processRequest() throws Exception {
  FormProcessor fp=new FormProcessor(request);
  if (fp.getString("String_Node_Str").equals("String_Node_Str")) {
    showMoreLink=true;
  }
 else {
    showMoreLink=Boolean.parseBoolean(fp.getString("String_Node_Str"));
  }
  String idSetting=currentStudy.getStudyParameterConfig().getSubjectIdGeneration();
  if (idSetting.equals("String_Node_Str") || idSetting.equals("String_Node_Str")) {
    request.setAttribute("String_Node_Str",AUTO_LABEL);
  }
  String module=fp.getString(MODULE);
  request.setAttribute(MODULE,module);
  int definitionId=fp.getInt("String_Node_Str");
  if (definitionId <= 0) {
    addPageMessage(respage.getString("String_Node_Str"));
    forwardPage(Page.LIST_STUDY_SUBJECTS);
    return;
  }
  ListEventsForSubjectTableFactory factory=new ListEventsForSubjectTableFactory(showMoreLink);
  factory.setStudyEventDefinitionDao(getStudyEventDefinitionDao());
  factory.setSubjectDAO(getSubjectDAO());
  factory.setStudySubjectDAO(getStudySubjectDAO());
  factory.setStudyEventDAO(getStudyEventDAO());
  factory.setStudyBean(currentStudy);
  factory.setStudyGroupClassDAO(getStudyGroupClassDAO());
  factory.setSubjectGroupMapDAO(getSubjectGroupMapDAO());
  factory.setStudyDAO(getStudyDAO());
  factory.setStudyGroupDAO(getStudyGroupDAO());
  factory.setCurrentRole(currentRole);
  factory.setCurrentUser(ub);
  factory.setEventCRFDAO(getEventCRFDAO());
  factory.setEventDefintionCRFDAO(getEventDefinitionCRFDAO());
  factory.setCrfDAO(getCrfDAO());
  factory.setSelectedStudyEventDefinition((StudyEventDefinitionBean)getStudyEventDefinitionDao().findByPK(definitionId));
  String listEventsForSubjectsHtml=factory.createTable(request,response).render();
  request.setAttribute("String_Node_Str",listEventsForSubjectsHtml);
  request.setAttribute("String_Node_Str",definitionId);
  request.setAttribute("String_Node_Str",super.getEventDefinitionsByCurrentStudy());
  request.setAttribute("String_Node_Str",super.getStudyGroupClassesByCurrentStudy());
  FormDiscrepancyNotes discNotes=new FormDiscrepancyNotes();
  session.setAttribute(AddNewSubjectServlet.FORM_DISCREPANCY_NOTES_NAME,discNotes);
  forwardPage(Page.LIST_EVENTS_FOR_SUBJECTS);
}

Fixed version (ground truth):
@Override public void processRequest() throws Exception {
  FormProcessor fp=new FormProcessor(request);
  if (fp.getString("String_Node_Str").equals("String_Node_Str")) {
    showMoreLink=true;
  }
 else {
    showMoreLink=Boolean.parseBoolean(fp.getString("String_Node_Str"));
  }
  String idSetting=currentStudy.getStudyParameterConfig().getSubjectIdGeneration();
  if (idSetting.equals("String_Node_Str") || idSetting.equals("String_Node_Str")) {
    request.setAttribute("String_Node_Str",resword.getString("String_Node_Str"));
  }
  String module=fp.getString(MODULE);
  request.setAttribute(MODULE,module);
  int definitionId=fp.getInt("String_Node_Str");
  if (definitionId <= 0) {
    addPageMessage(respage.getString("String_Node_Str"));
    forwardPage(Page.LIST_STUDY_SUBJECTS);
    return;
  }
  ListEventsForSubjectTableFactory factory=new ListEventsForSubjectTableFactory(showMoreLink);
  factory.setStudyEventDefinitionDao(getStudyEventDefinitionDao());
  factory.setSubjectDAO(getSubjectDAO());
  factory.setStudySubjectDAO(getStudySubjectDAO());
  factory.setStudyEventDAO(getStudyEventDAO());
  factory.setStudyBean(currentStudy);
  factory.setStudyGroupClassDAO(getStudyGroupClassDAO());
  factory.setSubjectGroupMapDAO(getSubjectGroupMapDAO());
  factory.setStudyDAO(getStudyDAO());
  factory.setStudyGroupDAO(getStudyGroupDAO());
  factory.setCurrentRole(currentRole);
  factory.setCurrentUser(ub);
  factory.setEventCRFDAO(getEventCRFDAO());
  factory.setEventDefintionCRFDAO(getEventDefinitionCRFDAO());
  factory.setCrfDAO(getCrfDAO());
  factory.setSelectedStudyEventDefinition((StudyEventDefinitionBean)getStudyEventDefinitionDao().findByPK(definitionId));
  String listEventsForSubjectsHtml=factory.createTable(request,response).render();
  request.setAttribute("String_Node_Str",listEventsForSubjectsHtml);
  request.setAttribute("String_Node_Str",definitionId);
  request.setAttribute("String_Node_Str",super.getEventDefinitionsByCurrentStudy());
  request.setAttribute("String_Node_Str",super.getStudyGroupClassesByCurrentStudy());
  FormDiscrepancyNotes discNotes=new FormDiscrepancyNotes();
  session.setAttribute(AddNewSubjectServlet.FORM_DISCREPANCY_NOTES_NAME,discNotes);
  forwardPage(Page.LIST_EVENTS_FOR_SUBJECTS);
}