Program: 155454
Project: 155454
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();
  ContactManager cManager=new ContactManagerSession();
  DivisionOfficeManager dManager=new DivisionOfficeManagerSession();
  String userName=(String)request.getParameter("String_Node_Str");
  String title;
  String name;
  ArrayList<String> mobileNumber=new ArrayList<String>();
  ArrayList<String> landline=new ArrayList<String>();
  ArrayList<String> emailad=new ArrayList<String>();
  String username;
  String acctType;
  try {
    Account account=aManager.getAccount(userName);
    Person person=pManager.getPerson(account.getPersonID());
    List<Contact> contact=cManager.getAllContactsByPerson(person.getId());
    username=account.getUsername();
    acctType=account.getAccountType();
    title=person.getTitle();
    name=person.getName();
    for (int i=0; i < contact.size(); i++) {
      if (contact.get(i).getType() == ContactType.MOBILE)       mobileNumber.add(contact.get(i).getData());
    }
    for (int i=0; i < contact.size(); i++) {
      if (contact.get(i).getType() == ContactType.LANDLINE)       landline.add(contact.get(i).getData());
    }
    for (int i=0; i < contact.size(); i++) {
      if (contact.get(i).getType() == ContactType.EMAIL)       emailad.add(contact.get(i).getData());
    }
    request.setAttribute("String_Node_Str",title);
    request.setAttribute("String_Node_Str",name);
    request.setAttribute("String_Node_Str",mobileNumber);
    request.setAttribute("String_Node_Str",landline);
    request.setAttribute("String_Node_Str",emailad);
    request.setAttribute("String_Node_Str",username);
    request.setAttribute("String_Node_Str",acctType);
  }
 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();
  ContactManager cManager=new ContactManagerSession();
  DivisionOfficeManager dManager=new DivisionOfficeManagerSession();
  String userName=(String)request.getParameter("String_Node_Str");
  String title;
  String name;
  ArrayList<String> mobileNumber=new ArrayList<String>();
  ArrayList<String> landline=new ArrayList<String>();
  ArrayList<String> emailad=new ArrayList<String>();
  String username;
  AccountType acctType;
  try {
    Account account=aManager.getAccount(userName);
    Set<Contact> contacts=account.getPerson().getContacts();
    username=account.getUsername();
    acctType=account.getType();
    title=account.getPerson().getTitle();
    name=account.getPerson().getName();
    for (    Contact contact : contacts)     if (contact.getType() == ContactType.MOBILE)     mobileNumber.add(contact.getData());
 else     if (contact.getType() == ContactType.LANDLINE)     landline.add(contact.getData());
 else     if (contact.getType() == ContactType.EMAIL)     landline.add(contact.getData());
    request.setAttribute("String_Node_Str",title);
    request.setAttribute("String_Node_Str",name);
    request.setAttribute("String_Node_Str",mobileNumber);
    request.setAttribute("String_Node_Str",landline);
    request.setAttribute("String_Node_Str",emailad);
    request.setAttribute("String_Node_Str",username);
    request.setAttribute("String_Node_Str",acctType);
  }
 catch (  TransactionException e) {
    e.printStackTrace();
  }
  RequestDispatcher view=request.getRequestDispatcher("String_Node_Str");
  view.forward(request,response);
}