http 500错误Google App Engine

时间:2012-10-18 10:14:49

标签: java google-app-engine

我的程序正在发送邀请消息。

如果选择标签,将调用XmppDServlet。

这是一个非常简单的程序,但在调用XmppDServlet时我得到了http 500。

我该怎么办?

错误:服务器错误

服务器遇到错误,无法完成您的请求。 如果问题仍然存在,请报告您的问题并提及此错误消息以及导致该问题的查询。

公共类XmppDServlet扩展了HttpServlet {

public void doPost(HttpServletRequest req, HttpServletResponse resp)
        throws IOException{
    //sendInvite(req,resp);

}
private void sendInvite(HttpServletRequest req, HttpServletResponse resp)
          throws IOException {
        XMPPService xmpp = XMPPServiceFactory.getXMPPService();

        try {
            //System.out.println(invitee);
          xmpp.sendInvitation(new JID("myaccount@gmail.com"));
          resp.getWriter().print("Chat invite sent to: ");
        } catch (Exception exception) {
          resp.getWriter().print("Unable to send chat invite to " );
        }
      }

}

1 个答案:

答案 0 :(得分:1)

请访问适用于您的应用程序的AppEngine管理控制台。您会在左侧的主要部分下看到Logs链接。单击它并查看服务器日志。这应该会为您提供有关导致500错误的更多信息。

相关问题