アクセスを制限するために、ユーザー サービスを自分のアプリに関連付けようとしていました。アプリは日食中に正常に動作しましたが、アプリ エンジンにデプロイすると、期待どおりに Google ログイン ページにリダイレクトされませんが、エラーが発生します: サーバー エラー サーバーでエラーが発生し、要求を完了できませんでした。30 秒後にもう一度お試しください。 これは、使用されるサーブレットのセクションです。
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
public class MyLogin  extends HttpServlet {
    private static final long serialVersionUID = 1L;
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp)
        throws IOException {
    UserService userService = UserServiceFactory.getUserService();
    String thisURL = "/home.html";
    resp.setContentType("text/html");
    if (req.getUserPrincipal() != null) {
        resp.getWriter().println("<p>Hello, " +
                                 req.getUserPrincipal().getName() +
                                 "!  You can <a href=\"" +
                                 userService.createLogoutURL(thisURL) +
                                 "\">sign out</a>.</p>");
    } else {
        resp.getWriter().println("<p>Please <a href=\"" +
                                 userService.createLoginURL(thisURL) +
                                 "\">sign in</a>.</p>");
    }
}
}