It looks as if you didn't call rF.initialize(EventBus eventBus, RequestTransport transport). Not sure if this is the reason of the exception though...
On Dec 29, 4:30 pm, Simon Majou <[email protected]> wrote: > I tried to use the class RequestFactoryMagic but I get the following > exception: > > java.lang.IllegalArgumentException: Attempting to edit an EntityProxy > previously edited by another RequestContext > > Here is my code: > > DomainRequestFactory rF = > RequestFactoryMagic.create(DomainRequestFactory.class); > UserProxy bob = rF.userRequest().create(UserProxy.class); > String email = "[email protected]"; > bob.setEmail(email); > rF.userRequest().persist().using(bob).fire(); > > rF.userRequest().findByEmail(email).fire(new Receiver<UserProxy>() { > @Override > public void onSuccess(UserProxy user) { > assertNotNull(user);} > > }); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
