[appengine-java] java.lang.ClassCastException:

2011-01-18 Thread soujiro0725
Hi. I keep getting an error, the code follows the error message. The problem seems to occur at ★★★HERE. after ListGCalendar calendars = (ListGCalendar) query.execute(); calendars is StreamingQueryResult object. Does the error mean that I cannot cast this object to String or Date? Could anyone

[appengine-java] java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

2010-10-04 Thread Deepika M
Hi, I have an entity called Node with attributes and the setters and getters for them: private int source; private int graphId; private SetInteger adjacentNodes; In my servlet I have the following query: Query query1= em.createQuery(SELECT x FROM pojos.Node x WHERE graphId=:graph1Id);