Re: [appengine-java] ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-09-30 Thread Cyrille Vincey
Try : Key k = KeyFactory.createKey(User.class.getSimpleName(), Key.getId()); Instead of : Key k = KeyFactory.createKey(User.class.getSimpleName(), Long.parseLong(Key)); On 30/09/10 01:16, "hendrix.jason" wrote: >What could this error mean: > >java.lang.ClassCastException: >[Lcom.google.appeng

[appengine-java] ClassCastException [Lcom.google.appengine.api.datastore.Key

2010-09-29 Thread hendrix.jason
What could this error mean: java.lang.ClassCastException: [Lcom.google.appengine.api.datastore.Key; cannot be cast to com.google.appengine.api.datastore.Key It's happening on the last line of this code: PersistenceManager pm2 = PMF.get().getPersistenceManager(); Key k = KeyFactor