[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-03 Thread pgoetz
Thank you very much! I will do that just as a backup solution for the next time I want to clear the sessions. On Nov 3, 7:05 pm, John Patterson wrote: > Sessions are also stored in memcache.  To clear this you can write a simple > page that calls memcache.clearAll(); > > 2009/11/3 pgoetz > > >

[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-03 Thread John Patterson
Sessions are also stored in memcache. To clear this you can write a simple page that calls memcache.clearAll(); 2009/11/3 pgoetz > > Hi Jason, > > thank you very much for your answer. I think that you are right, but > have to admit, that I cannot prove it. I have tested the application > again

[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-03 Thread pgoetz
Hi Jason, thank you very much for your answer. I think that you are right, but have to admit, that I cannot prove it. I have tested the application again after some time (browser has been closed in between), and everything worked fine. Is it possible, that sessions (javax.servlet.http.HttpSession

[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-02 Thread Jason (Google)
Hi Peter. Do you have any existing entities in the datastore that were stored before you made this change? If so, the exception is likely being thrown when one of these entities is retrieved. Since you've changed the primary key field, you may have to remove the original entity and re-add it. You