Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5990329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:13:43+00:00 2026-05-22T23:13:43+00:00

I just started to play with MemCache in Google Apps Engine and every time

  • 0

I just started to play with MemCache in Google Apps Engine and every time I create CacheFactory I get this error :

net.sf.jsr107cache.CacheException: 
Could not find class: 'com.google.appengine.api.memcache.jsr107cache.GCacheFactory'
    at net.sf.jsr107cache.CacheManager.getCacheFactory(CacheManager.java:46)

I’m using Apps Engine SDK “1.5.0.1 – 2011-05-16” ( which is the latest ). I tested this in my local.

Anybody know how to fix this issue?

Here is my snippet of my code.

@SuppressWarnings("rawtypes")
    Map props = new HashMap();
    //props.put(GCacheFactory.EXPIRATION_DELTA, 3600);

    try {
        CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
        cache = cacheFactory.createCache(props);
        if(cache.containsKey("userAgent"))
        {
            userAgent = (String)cache.get("userAgent");
        }else
        {
            cache.put("userAgent", userAgent+" from MEMCache");
        }
    } catch (CacheException e) {
       e.printStackTrace();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:13:44+00:00Added an answer on May 22, 2026 at 11:13 pm

    This should be fixed in App Engine SDK 1.5.0.1.

    Make sure you are importing:

    import net.sf.jsr107cache.CacheException;
    import net.sf.jsr107cache.CacheFactory;
    import net.sf.jsr107cache.CacheManager;
    

    I don’t have any “Could not find class” error with the following sample code

    package classnotfoundtest;
    
    import net.sf.jsr107cache.CacheException;
    import net.sf.jsr107cache.CacheFactory;
    import net.sf.jsr107cache.CacheManager;
    
    import java.io.IOException;
    import javax.servlet.http.*;
    
    @SuppressWarnings("serial")
    public class ClassnotfoundtestServlet extends HttpServlet {
      public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        try {
          CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
          resp.setContentType("text/plain");
          resp.getWriter().println("Hello, world");
        } catch (CacheException e) {
          e.printStackTrace(resp.getWriter());
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started getting a bunch of errors on our C# .Net app that seemed
Have just started using Google Chrome , and noticed in parts of our site,
I just started using the WPF WebBrowser that is included in Net 3.5 SP1.
I just started to learn Ruby and as a .Net developer, I'm wondering if
I just started to play with the entity framework, so I decided to connect
I just started to play around with Linq to entities and ran into an
I just started to play with android dev and java+eclipse is pretty new to
I've just started to play with WPF. Is it possible to have the size
I've just started to play with CodeIgniter 1.7.2 and imendialtly noticed that there is
I've just started having a proper play with Powermock and noticed that it slows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.