I am not sure what you mean. I never detach anything explicitly, so I have no idea how to detach anything else.
>javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field "retweets" yet this field was not detached when you detached the object. Either dont access this field, or detach it when detaching the object. I find that very strange. 1. I am using JPA, how do I get a JDO exception? 2. I never detach anything... so who detaches the main object in this case? Some default behaviour? 3. All I found for detaching reg. JPA is this: In JPA, objects detach automatically when they are serialized or when a persistence context ends. The specification does not define any way to explicitly detach objects. All I found somewhere and I doubt this works on app-engine ( I am not sure which side effects it has, too): EntityManager.clear() - this will detach all objects... --- Would it help if I access the retweets collection right after I queried the datastore? One thing that could be troubling us here is that the view code will call back into the entity objects and then trigger the access of the retweets list. Maybe some context is closed at this point... Cheers Sven On Sep 9, 10:34 pm, datanucleus <[email protected]> wrote: > > I am using JPA btw, so.... can someone tell me if I need to do in > > order make this work again? Why does it work sometimes? > > Why not look in the log ? It tells you what is detached, when, and > why. If a field (and who knows what type this field is ...) is not > detached then you can't access it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en -~----------~----~----~----~------~----~------~--~---
