Google App Engine- java.lang.IllegalStateException:提交的错误

teo*_*teo 3 java google-app-engine

我目前正在开发一个需要我部署到Google App Engine服务器上的应用程序.我的应用程序在端口7777上本地运行完全正常.但是,当我部署到GAE时,它开始给我这个错误 -

java.lang.IllegalStateException: Committed 
Run Code Online (Sandbox Code Playgroud)

它只是在GAE日志中返回一个"null".

没有错误.它只声明一条警告信息:

" A serious problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you may be throwing exceptions during the initialization of your application. (Error code 104)"

希望有人可以帮助我.提前致谢!

eme*_*rix 5

提交两次java.lang.IllegalStateException: Committed时经常会发生此错误HttpServletResponse.例如 :

protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    if (trueCondition)
        resp.sendRedirect("/");
    if (otherTrueCondition)
        resp.sendRedirect("/other");
}
Run Code Online (Sandbox Code Playgroud)