wishwisdom
wishwisdom

Reputation: 1

http 500 error Google App Engine

My program is sending inviting messages.

if you select tag, will call XmppDServlet.

It's very simple program, but i got http 500 when calling XmppDServlet.

How should i do?

Error: Server Error

The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it.

public class XmppDServlet extends 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("[email protected]"));
          resp.getWriter().print("Chat invite sent to: ");
        } catch (Exception exception) {
          resp.getWriter().print("Unable to send chat invite to " );
        }
      }

}

Upvotes: 0

Views: 313

Answers (1)

Romin
Romin

Reputation: 8816

Please visit the AppEngine Admin Console for your application. You will see a Logs link under the Main section on the left side. Click that and view the Server log. That should give you more information on what caused the 500 Error.

Upvotes: 1

Related Questions