memcache设置明显异常

时间:2013-01-15 02:28:47

标签: google-app-engine

在我们的gwt + GAE for java app我看到以下异常,但没有任何线索,为什么会发生这种情况。任何人?

/ adminmodule /管理 com.google.apphosting.api.ApiProxy $ CancelledException:API调用memcache.Set()已被明确取消。     在com.google.apphosting.runtime.ApiProxyImpl $ 5.get(ApiProxyImpl.java:367)     在com.google.apphosting.runtime.ApiProxyImpl $ 5.get(ApiProxyImpl.java:364)     在com.google.appengine.tools.appstats.RecordingFuture.get(RecordingFuture.java:108)     在com.google.appengine.tools.appstats.Recorder.processRecordingFuture(Recorder.java:431)     在com.google.appengine.tools.appstats.Recorder.processAsyncRpc(Recorder.java:404)     在com.google.appengine.tools.appstats.RecordingFuture.maybeRecordStats(RecordingFuture.java:140)     在com.google.appengine.tools.appstats.RecordingFuture.get(RecordingFuture.java:110)     在com.google.appengine.tools.appstats.RecordingFuture.get(RecordingFuture.java:20)     在com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:86)     在com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:86)     在com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26)     在com.google.appengine.api.memcache.MemcacheServiceImpl.putAll(MemcacheServiceImpl.java:110)     在com.google.appengine.tools.appstats.MemcacheWriter.persist(MemcacheWriter.java:268)     在com.google.appengine.tools.appstats.MemcacheWriter.commit(MemcacheWriter.java:189)     在com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:151)     在org.mortbay.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1157)     在com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:102)     在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.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)     at 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:447)     在com.google.tracing.TraceContext $ TraceContextRunnable.runInContext(TraceContext.java:454)     在com.google.tracing.TraceContext $ TraceContextRunnable $ 1.run(TraceContext.java:461)     在com.google.tracing.TraceContext.runInContext(TraceContext.java:703)     在com.google.tracing.TraceContext $ AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:338)     在com.google.tracing.TraceContext $ AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:330)     在com.google.tracing.TraceContext $ TraceContextRunnable.run(TraceContext.java:458)     在com.google.apphosting.runtime.ThreadGroupPool $ PoolEntry.run(ThreadGroupPool.java:251)     在java.lang.Thread.run(Thread.java:679)

1 个答案:

答案 0 :(得分:-1)

这是由于pm状态不正确造成的。即使在其他行动完成之前,pm州有时也会关闭。

通过在本地启动pm对象解决了这个问题。