java - The API package 'memcache' or call 'FlushAll()' was not found -
I'm testing some code locally using Google Apps Engine SDK 1.9.12. I have added the servlet listener to initialize the memcache with 2 namespaces I I Method It really throws the following exception in the server is down: Please resolve help me this. When the App Engine Java framework that calls Unfortunately you can not use contextDestroyed (ServletContextEvent SCE) Memcache entries included in the code to clear.
MemcacheServiceFactory.getMemcacheService () clearAll ();
Warning: Exception com.google.apphosting.api.ApiProxy $ CallNotFoundException: API package 'Memcache' or call 'flush' () 'was not found. com.google.apphosting.api.ApiProxy $ 1.Get (ApiProxy.java:179) com.google.apphosting.api.ApiProxy $ 1.Get (ApiProxy.java:177) on com.google.appengine.api.utils on (FutureWrapper.get on com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet (MemcacheServiceImpl.java:26) on Com.google.appengine.api.memcache.MemcacheServiceImpl.clearAll FutureWrapper.java:88) all (MemcacheServiceImpl .java: 170) org.mortbay.jetty com.valeo.general.listeners.BaseCacheListener.contextDestroyed (BaseCacheListener.java:27) at all (BaseCacheManager.java:47) on com.valeo.general.util.BaseCacheManager.clear. On the handler. Org.mortbay on ContextHandler.doStop (Sndrbhandlr on org.mortbay.jetty.webapp.WebAppContext.doStop on org.mortbay.component.AbstractLifeCycle.stop. Java. 99) (Apple Laifsaikl. Java .76) .jetty.handler.HandlerWrapper .doStop org.mortbay.component.AbstractLifeCycle.stop (AbstractLifeCycle.java:76) to (HandlerWrapper.java:142) Com.appengine.tools.development.jettyContainerService $ 2 on com.google.appengine.tools.development.JettyContainerServic. on filesChangeed (JettyContainerService.java:380) on e.reloadWebApp (JettyContainerService.java:393) org.mortbay.util.Scanner.reportBulkChanges (Scanner.java:48686) org.mortbay.util.Scanner $ 1.run (Scanner. Java: at org.mortbay.util.Scanner.reportDifferences (Scanner.java:352) org.mortbay.util.Scanner.scan (Scanner.java:280) at 232) java.util on java.util.TimerThread.run. TimerThread.mainLoop (unknown source) (Ed. After source) on
contextDestroyed (ServletContextEvent) your code < Connection to backend services including memcache / code> it has already broken.
ServletContextListener to perform memcache operations on shutdown.
Comments
Post a Comment