Hi All,
I have class Parcel :
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Parcel implements Serializable{
@NotPersistent
public static byte NUM_CELLS = 125;
@NotPersistent
public static byte NUM_ROWS = 125;
@PrimaryKey
@Persistent
private String key;
@Persistent
private byte columnPos;
@Persistent
private byte rowPos;
@Persistent
private Key[] players;
@NotPersistent
Cache cache;
....
in this class is cachce workinkg corectly . but when I wont save this
class to memcachce like this :
.....
Parcel parcel = new Parcel(0, 0);
pm.makePersistent(parcel);
System.out.println(" putting parcel to cache with key:" +
parcel.getKey());
cache.put(parcel, parcel.getKey());
then output is :
putting parcel to cache. key:aglwb3Bva2VjYWxyDwsSB3BhcmNlbDoiAjoxDA
[ERROR] javax.servlet.ServletContext log: unavailable
java.lang.IllegalArgumentException: Cannot use as key:
'com.server.floor.par...@d65362'
at
com.google.appengine.api.memcache.MemcacheServiceImpl.put(MemcacheServiceImpl.java:
363)
at
com.google.appengine.api.memcache.jsr107cache.GCache.put(GCache.java:
173)
at com.server.floor.Floor.createParcel(Floor.java:127)
thank you for your suggestion.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-web-toolkit?hl=en.