throw new RemoteException("Cannot lookup Query: " +e+"<br>");
throw new RemoteException("Cannot get information about the user: " +e+"<br>");
  public String getAboutMe(String username, String password) throws RemoteException  {    int          uid = -1;    Integer      userId;    StringBuffer html = new StringBuffer();    // Authenticate the user    SB_AuthLocalHome authHome = null;    SB_AuthLocal auth = null;    try     {      authHome = (SB_AuthLocalHome)initialContext.lookup("java:comp/env/ejb/SB_Auth");      auth = authHome.create();    }     catch (Exception e)    {      throw new RemoteException("Cannot lookup SB_Auth: " +e);    }    try     {      uid = auth.authenticate(username, password);    }     catch (Exception e)    {      throw new RemoteException("Authentication failed: " +e);    }    if (uid == -1)    {      return "You don't have an account on RUBiS!<br>You have to register first.<br>";    }    // Try to find the user corresponding to the userId    UserLocalHome uHome;    try     {      userId = new Integer (uid);      uHome = (UserLocalHome) initialContext.lookup("java:comp/env/ejb/User");    }     catch (Exception e)    {      throw new RemoteException("Cannot lookup User: " +e+"<br>");    }    try    {      UserLocal u = uHome.findByPrimaryKey(new UserPK(userId));      html.append(u.getHTMLGeneralUserInformation());    }    catch (Exception e)    {      throw new RemoteException("This user does not exist (got exception: " +e+")<br>");    }    // Try to find the comments corresponding for this user    CommentLocalHome cHome;    try     {      cHome = (CommentLocalHome)initialContext.lookup("java:comp/env/ejb/Comment");    }     catch (Exception e)    {      throw new RemoteException("Cannot lookup Comment: " +e+"<br>");    }    // Retrieve ItemHome    ItemLocalHome iHome;    try     {      iHome = (ItemLocalHome)initialContext.lookup("java:comp/env/ejb/Item");    }     catch (Exception e)    {      throw new RemoteException("Cannot lookup item: " +e+"<br>");    }    // Connecting to Query Home thru JNDI    QueryLocalHome qHome;    try     {      qHome = (QueryLocalHome)initialContext.lookup("java:comp/env/ejb/Query");    }     catch (Exception e)    {      throw new RemoteException("Cannot lookup Query: " +e+"<br>");    }    try     {      html.append(listItem(userId, iHome));      html.append(listBoughtItems(userId, iHome));      html.append(listWonItems(userId, iHome, qHome));      html.append(listBids(userId, username, password, iHome, qHome));      html.append(listComments(cHome, userId, uHome));            }     catch (Exception e)    {      throw new RemoteException("Cannot lookup Query: " +e+"<br>");    }    return html.toString();  }