将Java快速入门应用程序部署到App Engine时出现奇怪的故障

时间:2013-10-10 21:37:32

标签: google-app-engine google-mirror-api

由于某些原因,Java Quickstart应用程序已完全停止为我工作。我以为我搞砸了什么,但现在我不确定是什么问题。任何人都知道发生了什么?我正在使用App Engine 1.8.5。这是我在第一次认证后立即得到的日志中的错误:

  

2013-10-10 14:28:23.230 /index.jsp 500 25ms 0kb Mozilla / 5.0   (Macintosh; Intel Mac OS X 10_8_4)AppleWebKit / 537.36(KHTML,如   Gecko)Chrome / 30.0.1599.69 Safari / 537.36   199.2.242.199 - - [10 / Oct / 2013:14:28:23 -0700]" GET /index.jsp HTTP / 1.1" 500 0 - " Mozilla / 5.0(Macintosh; Intel Mac OS X 10_8_4)   AppleWebKit / 537.36(KHTML,与Gecko一样)Chrome / 30.0.1599.69   Safari浏览器/ 537.36" " clear-numbers.appspot.com" ms = 25 cpu_ms = 47   app_engine_release = 1.8.5   实例= 00c61b117c38bd00fd55598f54971f44e7e43a52 C 2013-10-10   14:28:23.227来自servlet的未捕获异常   javax.servlet.UnavailableException:java.lang.NullPointerException at   org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:415)     在   org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:458)     在   org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)     在   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)     在   org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)     在   org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)     在   org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)     在   org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)     在   org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)     在org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)     在org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)     在   com.google.apphosting.runtime.jetty.ResourceFileServlet.serveWelcomeFileAsForward(ResourceFileServlet.java:342)     在   com.google.apphosting.runtime.jetty.ResourceFileServlet.maybeServeWelcomeFile(ResourceFileServlet.java:281)     在   com.google.apphosting.runtime.jetty.ResourceFileServlet.doGet(ResourceFileServlet.java:142)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:617)at   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)at at   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)     在   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1166)     在com.google.glassware.ReauthFilter.doFilter(ReauthFilter.java:53)     在   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在com.google.glassware.AuthFilter.doFilter(AuthFilter.java:65)at   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在   com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)     在   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在   com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)     在   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在   com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)     在   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在   com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)     在   org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在   org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)     在   org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)     在   org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)     在   org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)     在   org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)     在   com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266)     在   org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)     在org.mortbay.jetty.Server.handle(Server.java:326)处   org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)     在   org.mortbay.jetty.HttpConnection $ RequestHandler.headerComplete(HttpConnection.java:923)     在   com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)     在org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)     在   com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)     在   com.google.apphosting.runtime.JavaRuntime $ RequestRunnable.run(JavaRuntime.java:446)     在   com.google.tracing.TraceContext $ TraceContextRunnable.runInContext(TraceContext.java:435)     在   com.google.tracing.TraceContext $ TraceContextRunnable $ 1.run(TraceContext.java:442)     在   com.google.tracing.CurrentContext.runInContext(CurrentContext.java:186)     在   com.google.tracing.TraceContext $ AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:306)     在   com.google.tracing.TraceContext $ AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:298)     在   com.google.tracing.TraceContext $ TraceContextRunnable.run(TraceContext.java:439)     在   com.google.apphosting.runtime.ThreadGroupPool $ PoolEntry.run(ThreadGroupPool.java:251)     在java.lang.Thread.run(Thread.java:722)

1 个答案:

答案 0 :(得分:1)

我在堆栈跟踪中看到了对Jetty的一些引用。当前版本的Java快速入门不支持部署到App Engine。它可以部署到标准的J2EE容器,例如开箱即用的Jetty。

如果您要部署到App Engine,那么适用于App Engine的最终版本有old tag,但它不包括2013年5月之后添加的任何新API功能。