Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-09 Thread Thomas Broyer
On Tuesday, October 8, 2013 11:35:09 PM UTC+2, Manu Botija wrote: I am still stuck here. I have seen this nice post http://stackoverflow.com/a/5642394/2819482on SO and verified that I comply to its recommendations. - I don't store any RequestContext instance. - I have two immutable

Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-09 Thread Manu Botija
It's actually not. Because passing them to a RequestContext (either as argument to service methods, or as property values of another proxy) will edit() them, so you have to make sure you won't have two RequestContext that want to use those proxies concurrently (because a proxy can only be

Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-09 Thread Manu Botija
For those using Objectify + RequestFactory, I found where my issue is: - Following David Chandler's recommendations herehttp://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/, I have a base EntityObject from which all my entities inherit. That EntityObject has a

Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-09 Thread Manu Botija
Problem solved. There are tons of existing tickets about this issue (exhttps://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/requestfactory$20don$27t$20allow$20appengine$20parent$20relationship/google-web-toolkit/OmxjBgBbFhU/LtZYV7iWa90J,

Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-08 Thread Manu Botija
I am still stuck here. I have seen this nice post http://stackoverflow.com/a/5642394/2819482on SO and verified that I comply to its recommendations. - I don't store any RequestContext instance. - I have two immutable EntityProxy that I retain beyond the duration of their associated context's

RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-03 Thread Manu Botija
Hi, Please let me know if this is not the place for this kind of questions... I am using *Objectify* with *RequestFactory*. I have an objectify *Entity*called *Entry* with an attribute of type Ref*?*. Following *Objectify*recommendations, I declare the getter and setter for that kind of

Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-03 Thread Thomas Broyer
On Thursday, October 3, 2013 9:50:17 PM UTC+2, Manu Botija wrote: Hi, Please let me know if this is not the place for this kind of questions... I am using *Objectify* with *RequestFactory*. I have an objectify *Entity*called *Entry* with an attribute of type Ref*?*. Following

Re: RequestFactory cannot set a Ref? argument on EntityProxy (Objectify)

2013-10-03 Thread Manu Botija
Thanks, you are right, it was a NPE on one of the setters. I got confused thinking that the RF automatic validation would kick-in before the setters so I was not doing any checks... but I now realize that does not make sense. By the way, I set the breakpoint as suggested. I could see it was a