Program: 155455
Project: 155455
Buggy source:
/** 
 * @see HttpServlet#doPost(HttpServletRequest request,HttpServletResponse response)
 */
protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  AccountManager aManager=new AccountManagerSession();
  PersonManager pManager=new PersonManagerSession();
  DivisionOfficeManager dManager=new DivisionOfficeManagerSession();
  String userName=(String)request.getParameter("String_Node_Str");
  ArrayList<String> designation=new ArrayList<String>();
  ArrayList<String> employeeNumber=new ArrayList<String>();
  ArrayList<String> division=new ArrayList<String>();
  ArrayList<String> office=new ArrayList<String>();
  Account account;
  try {
    account=aManager.getAccount(userName);
    System.out.println("String_Node_Str" + account.getPersonID());
    Person person=pManager.getPerson(account.getPersonID());
    List<Employee> employee=pManager.getEmployeeByPerson(person.getId());
    for (int i=0; i < employee.size(); i++) {
      designation.add(employee.get(i).getDesignation());
      employeeNumber.add("String_Node_Str" + employee.get(i).getPerson());
      if ((employee.get(i).getPerson() != null))       division.add(dManager.getDivisionOfficeByEmployee(employee.get(i).getId()).getDivisionName());
 else       division.add("String_Node_Str");
      if (dManager.getDivisionOfficeByEmployee(employee.get(i).getId()) != null)       office.add(dManager.getDivisionOfficeByEmployee(employee.get(i).getId()).getOfficeName());
 else       office.add("String_Node_Str");
    }
    request.setAttribute("String_Node_Str",designation);
    request.setAttribute("String_Node_Str",employeeNumber);
    request.setAttribute("String_Node_Str",division);
    request.setAttribute("String_Node_Str",office);
  }
 catch (  TransactionException e) {
    e.printStackTrace();
  }
  RequestDispatcher view=request.getRequestDispatcher("String_Node_Str");
  view.forward(request,response);
}

Fixed version (ground truth):
/** 
 * @see HttpServlet#doPost(HttpServletRequest request,HttpServletResponse response)
 */
protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  AccountManager aManager=new AccountManagerSession();
  PersonManager pManager=new PersonManagerSession();
  DivisionOfficeManager dManager=new DivisionOfficeManagerSession();
  String userName=(String)request.getParameter("String_Node_Str");
  ArrayList<String> designation=new ArrayList<String>();
  ArrayList<String> employeeNumber=new ArrayList<String>();
  ArrayList<String> division=new ArrayList<String>();
  ArrayList<String> office=new ArrayList<String>();
  Account account;
  try {
    account=aManager.getAccount(userName);
    Person person=account.getPerson();
    List<Employee> employee=pManager.getEmployeeByPerson(person.getId());
    for (int i=0; i < employee.size(); i++) {
      designation.add(employee.get(i).getDesignation());
      employeeNumber.add("String_Node_Str" + employee.get(i).getPerson());
      if ((employee.get(i).getPerson() != null))       division.add(dManager.getDivisionOfficeByEmployee(employee.get(i).getId()).getDivisionName());
 else       division.add("String_Node_Str");
      if (dManager.getDivisionOfficeByEmployee(employee.get(i).getId()) != null)       office.add(dManager.getDivisionOfficeByEmployee(employee.get(i).getId()).getOfficeName());
 else       office.add("String_Node_Str");
    }
    request.setAttribute("String_Node_Str",designation);
    request.setAttribute("String_Node_Str",employeeNumber);
    request.setAttribute("String_Node_Str",division);
    request.setAttribute("String_Node_Str",office);
  }
 catch (  TransactionException e) {
    e.printStackTrace();
  }
  RequestDispatcher view=request.getRequestDispatcher("String_Node_Str");
  view.forward(request,response);
}