I have the same problem. I'm trying search in google, but i don't
found anything information over this topic.
My class cache is:
/**
*
*/
package org.montequinto.util.cache;
import java.util.Map;
import javax.cache.Cache;
import javax.cache.CacheException;
import javax.cache.CacheFactory;
import javax.cache.CacheManager;
import javax.servlet.ServletException;
public class CacheSingleton {
private static final CacheSingleton instance = new CacheSingleton
();
private Cache cache;
private CacheSingleton() {
}
public static CacheSingleton getInstance() {
return instance;
}
@SuppressWarnings(unchecked)
public void init(Map props) throws ServletException {
try {
CacheFactory factory = CacheManager.getInstance
().getCacheFactory();
cache = factory.createCache(props);
} catch (CacheException e) {
throw new ServletException(cache error: + e.getMessage
(), e);
}
}
public Cache getCache() {
return cache;
}
public void clear() {
if (cache != null) {
cache.clear();
}
}
}
and this code don't work. Why? I don't understand.
Thank you.
On 8 sep, 09:33, kayjean kayj...@gmail.com wrote:
I find some useful infomation about this topic.It works
search title test unit doesn't work more
kayjean
On 9月8日, 上午11時07分, kayjean kayj...@gmail.com wrote:
I try to upgrade eclipse sdk to 1.2.5 , something wrong ??
java.lang.NoSuchMethodError: com.google.apphosting.api.ApiProxy
$Environment.getDefaultNamespace()Ljava/lang/String;
at com.google.appengine.api.NamespaceManager.get
(NamespaceManager.java:56)
at
com.google.appengine.api.memcache.MemcacheServiceImpl.setNamespace
(MemcacheServiceImpl.java:181)
at com.google.appengine.api.memcache.MemcacheServiceImpl.init
(MemcacheServiceImpl.java:145)
at
com.google.appengine.api.memcache.MemcacheServiceFactory.getMemcacheService
(MemcacheServiceFactory.java:25)
at com.google.appengine.api.memcache.stdimpl.GCache.init
(GCache.java:75)
at
com.google.appengine.api.memcache.stdimpl.GCacheFactory.createCache
(GCacheFactory.java:63)
thanks
kayjean
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---