You probably want your class to implement Serializable.

Memcache is a distributed cache so we need to have some way to send your
object between servers.

On Wed, Dec 16, 2009 at 9:48 PM, Andrei <[email protected]> wrote:

> Why do i get this exception when trying to put entry in cache?
> Thanks
>
> java.lang.IllegalArgumentException: can't accept class my_class_name
> as a memcache entity
> at com.google.appengine.api.memcache.MemcacheSerialization.serialize
> (MemcacheSerialization.java:262)
>        at com.google.appengine.api.memcache.MemcacheServiceImpl.put
> (MemcacheServiceImpl.java:322)
>        at com.google.appengine.api.memcache.stdimpl.GCache.put(GCache.java:
> 164)
>
> --
>
> 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]<google-appengine-java%[email protected]>
> .
> 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 [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.


Reply via email to