Tuesday, June 30, 2009

google-appengine Sessions "Error: 500 Server Error"

When it comes for testing a new environment it means "shoot and trash" that means also a lot of bad executions.
So, when I heard of appengine I started right away making small examples. First, The "Guest Book" then come back to GWT and so on.
Until I ended up making Url API calls to twitter OAuth API and had this strange Exception "500 Server Error appengine".
When you go to the appengine log you find it caused by "java.lang.ArrayStoreException" when you play a little with sessions.
Still I have no explaining of what cause this problem but I manage to solve it by removing the session data in DataStore and clear chache data in my browser.

1 comments:

Yasser AlHarbi said...

OK I Have found the problem :)

It was with some instance that I'm trying to save in the session,, in my case i was trying to do this [req.getSession().setAttribute("Twitter", Twitter);] which result in the 500 server error. even when that object is serialized.