Hi all,
I'm experiencing a problem with Memcache in the last days. I don't
touch that code from 6-7 months, ut in the last days I found in the
logs the following exception:
com.google.appengine.api.memcache.LogAndContinueErrorHandler
handleServiceError: Service error in memcache
com.google.appengine.api.memcache.MemcacheServiceException: Memcache
flush: exception
at
com.google.appengine.api.memcache.MemcacheServiceImpl.makeSyncCall(MemcacheServiceImpl.java:
205)
at
com.google.appengine.api.memcache.MemcacheServiceImpl.clearAll(MemcacheServiceImpl.java:
819)
at com.google.appengine.api.memcache.jsr107cache.GCache.clear(Unknown
Source)
thrown when I invoke this method:
private static net.sf.jsr107cache.Cache cache;
public static void initCache() {
HashMap<Integer, Integer> props = new HashMap<Integer, Integer>();
props.put(net.sf.jsr107cache.GCacheFactory.EXPIRATION_DELTA, 3600 *
24); //expiration=once a day
try {
if (cache != null)
cache.clear();
net.sf.jsr107cache.CacheFactory cacheFact =
net.sf.jsr107cache.CacheManager.getInstance().getCacheFactory();
cache = cacheFact.createCache(props);
} catch (CacheException e) {
log.severe("Cannot instantiate caches");
}
}
and particularly at the line cache.clear().
What can I do?
Is there any property that I'm missing?
Thank you very much for the help!
Bye
cghersi
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.