Hi, I solved this issue changing the imports to javax.cache package.
On 12 mayo, 01:03, luka <uluk...@gmail.com> wrote: > I have found a workaround until a new zip will be released. > > I have taken the > > appengine-jsr107cache-1.4.3.jar from a former SDK installation > renamed it to appengine-jsr107cache-1.5.0.jar and placed it under > > C:\Google-Apps\SDK\1.5.0\lib\user > > I have checked it on local & production environment and it works like > a charm > > On May 12, 1:24 am, Scott <shathaw...@gmail.com> wrote: > > > > > > > > > I am having the same issue this: > > > CacheFactory factory = > > net.sf.jsr107cache.CacheManager.getInstance().getCacheFactory(); > > > Throws a CacheException with no stack trace and the message: > > > net.sf.jsr107cache.CacheException: Could not find class: > > 'com.google.appengine.api.memcache.jsr107cache.GCacheFactory' > > > On May 11, 6:03 pm, Don Schwarz <schwa...@google.com> wrote: > > > > What is the NullPointerException that you are getting? > > > > You shouldn't need to change your GCacheFactory. Nothing changed with > > > that > > > in 1.5.0, and the new package you are using is not correct. > > > com.google.appengine.api.memcache.jsr107cache.GCacheFactory is the one > > > you > > > want. It is in appengine-jsr107cache-1.5.0.jar. > > > > On Wed, May 11, 2011 at 5:00 PM, luka <uluk...@gmail.com> wrote: > > > > I have recently upgraded from GAE 1.4.3 to 1.5.0 and the MemCache > > > > service I > > > > work with stop working. > > > > When I try to reach it, I get NullPointerException > > > > > I saw that the package of "GCacheFactory" was changed > > > > to "com.google.appengine.api.memcache.stdimpl" although besides of that > > > > I am > > > > not sure what is wrong. > > > > > I have a simple cache implementation using Spring beans which worked > > > > well > > > > during the last year: > > > > > (Please help, my service has customers waiting for solution) > > > > > import java.util.HashMap; > > > > import java.util.Map; > > > > import java.util.logging.Level; > > > > import java.util.logging.Logger; > > > > > import com.google.appengine.api.memcache.stdimpl.GCacheFactory; > > > > > import net.sf.jsr107cache.Cache; > > > > import net.sf.jsr107cache.CacheException; > > > > import net.sf.jsr107cache.CacheManager; > > > > > public class OnLoad { > > > > private static Logger logger = > > > > Logger.getLogger("com.lugo.server.utils.OnLoad"); > > > > > Cache cache; > > > > /** > > > > * Create Cache ( MemCache ) > > > > */ > > > > public void onStartup(){ > > > > try { > > > > Map props = new HashMap(); > > > > int expire = 3600 * 192 ; // 8 Days > > > > props.put(GCacheFactory.EXPIRATION_DELTA, expire); > > > > cache = > > > > CacheManager.getInstance().getCacheFactory().createCache(props); > > > > } catch (CacheException e) { > > > > logger.log(Level.WARNING,"onStartup()", e); > > > > } > > > > } > > > > public Cache getCache(){ > > > > return cache; > > > > } > > > > > } > > > > > -- > > > > 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. -- 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.