I'm not sure, but it could have something to do with the fact that transactions on App Engine are limited. A single transaction can't manipulate (get/put/alter) entities of different entity groups. A side effect of this might be that makePersistentAll is "disabled" in some way.
The example code you wrote won't work even if you persist the entities one at a time unless you explicitly put them in the same entity group. On 8 Dec, 17:20, YF CAO <[email protected]> wrote: > hi all. > in a transaction, makePersistentAll() throw a exception: "Illegal argument". > this is the code: > Transaction tx = pm.currentTransaction(); > try{ > tx.begin(); > List<Employee> list = new List<Employee>(); > for(int i = 0; i < 5; i++){ > list.add(........); > } > pm.makePersistentAll(list); // when run to here, app threw a > exception: Illegal argument > tx.commit(); > > > > }catch(Exception ex){ > .......... > }finally{ > ......... > } -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en.
