google app engine 中的程序报错,求助

戴威 发布于 2011/01/11 14:14
阅读 1K+
收藏 1

 

 

    1. 01-10 06:21PM 40.629 /blog!index.do 200 29839ms 182cpu_ms 89api_cpu_ms 0kb Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; VENUS_IE_ADDON-0.2.7.95),gzip(gfe)
      113.205.37.170 - - [10/Jan/2011:18:22:10 -0800] "GET /blog!index.do HTTP/1.1" 200 40 - "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; VENUS_IE_ADDON-0.2.7.95),gzip(gfe)" "daviddayblog.appspot.com" ms=29839 cpu_ms=182 api_cpu_ms=89 cpm_usd=0.005130 exit_code=104
    2. E01-10 06:22PM 10.053 
      org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext: Exception initializing page context
      com.google.apphosting.api.DeadlineExceededException: This request (16f0bf501bc91f27) started at 2011/01/11 02:21:40.648 UTC and was still executing at 2011/01/11 02:22:10.050 UTC.
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:502)
      	at com.google.apphosting.runtime.AsyncFuture.get(AsyncFuture.java:54)
      	at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:67)
      	at com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:136)
      	at com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:71)
      	at com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:32)
      	at com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:113)
      	at com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:110)
      	at com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31)
      	at com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:110)
      	at com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:94)
      	at com.google.apphosting.runtime.jetty.SessionManager.createSession(SessionManager.java:341)
      	at com.google.apphosting.runtime.jetty.SessionManager$AppEngineSession.<init>(SessionManager.java:137)
      	at com.google.apphosting.runtime.jetty.SessionManager.newSession(SessionManager.java:267)
      	at com.google.apphosting.runtime.jetty.SessionManager.newSession(SessionManager.java:52)
      	at org.mortbay.jetty.servlet.AbstractSessionManager.newHttpSession(AbstractSessionManager.java:413)
      	at org.mortbay.jetty.Request.getSession(Request.java:1242)
      	at org.mortbay.jetty.Request.getSession(Request.java:1214)
      	at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:147)
      	at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:122)
      	at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:104)
      	at org.apache.jasper.runtime.JspFactoryImpl.access$000(JspFactoryImpl.java:37)
      	at org.apache.jasper.runtime.JspFactoryImpl$PrivilegedGetPageContext.run(JspFactoryImpl.java:151)
      	at com.google.apphosting.runtime.security.shared.intercept.java.security.AccessController_.doPrivileged(AccessController_.java:34)
      	at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:59)
      	at org.apache.jsp.blog.index_jsp._jspService(index_jsp.java:54)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
      	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
      	at org.dave.common.web.Controller.forward(Controller.java:65)
      	at org.dave.blog.web.BlogController.index(BlogController.java:140)
      	at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_$1.run(Method_.java:165)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.privilegedInvoke(Method_.java:163)
      	at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke_(Method_.java:124)
      	at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke(Method_.java:43)
      	at org.dave.common.web.ControllerFactory.executeMethod(ControllerFactory.java:67)
      	at org.dave.common.web.ControllerFactory.control(ControllerFactory.java:24)
      	at org.dave.common.web.ControlServlet.process(ControlServlet.java:45)
      	at org.dave.common.web.ControlServlet.doGet(ControlServlet.java:25)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      	at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      	at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:326)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      	at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      	at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
      	at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:261)
      	at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:8495)
      	at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:8493)
      	at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24)
      	at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:435)
      	at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:572)
      	at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
      	at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
      	at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326)
      	at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318)
      	at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:636)
      
    3. W01-10 06:22PM 10.459
      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)

 

加载中
0
戴威
戴威

完全没有头绪

0
戴威
戴威

有人看懂这些错误提示了么?

0
戴威
戴威

难道是因为请求超时未响应?

0
xiaowenliang
xiaowenliang

看上去和你说的一样,是因为超时被结束了。因为GAE针对每一个请求,大概有30s的时间让这个请求来产生response。如果30s内没有产生,则被interrupted。 可能你需要检查下你的这个请求页面,确认下是哪一部分耗费了这30s的大量时间,像data retrieve,或者是否有一些逻辑出现了死循环? 或者是否在这一次请求内完成了大量工作? 如果这个错误不是经常性出现,并不会有太大影响。希望对你有帮助。

http://groups.google.com/group/google-appengine/browse_thread/thread/13b03e009d65d671

http://stackoverflow.com/search?q=DeadlineExceededException

OSCHINA
登录后可查看更多优质内容
返回顶部
顶部