Assuming you removed the extra GWT.create (as Thomas mentioned on 
stackoverflow).. if might be worth trying putting the second call inside a 
Scheduler.get().scheduleFinally...

Seems odd. I'm sure we do this sort of thing (less directly) all the time.

On Wednesday, July 17, 2013 8:21:30 PM UTC+1, Jan wrote:
>
> You mean renaming the inner request method? I tried that -> doesn't change 
> anything.
>
> It is not only in prod mode. It's a GWT test case that I run locally.
>
> Am Montag, 15. Juli 2013 23:29:14 UTC+2 schrieb Thomas Broyer:
>>
>> It's always worth mentionning when you also posted to StackOverflow: 
>> http://stackoverflow.com/q/17577892/116472
>>
>> Just an idea: did you try renaming your variables so you don't have 
>> shadowing? (if it happens only in prod mode, there could be a bug in the 
>> GWT compiler)
>>
>> On Monday, July 15, 2013 10:10:48 PM UTC+2, Jan wrote:
>>>
>>> I am trying to nest two request factory calls in each other. I retrieve 
>>> a post object and in the success-method i use the same object again (just 
>>> for testing purposes, I get the same behavior for other request like for 
>>> example persisting).
>>>
>>> The problem is: Only the first request reaches the server.
>>>
>>> I don't get any error message. If I debug the code, everything works 
>>> until the second request is fired. Nothing happens then. The method on the 
>>> backend is not called, the frontend shows no error, even if I implement the 
>>> "onFailure"-method for the receiver of the second request.
>>>
>>> public class RequestFactoryFindTest extends GWTTestCase{
>>>
>>>     /**
>>>      * must refer to a valid module that sources this class.
>>>      */
>>>     public String getModuleName() {
>>>         return "com.Test.MyTest";
>>>     }
>>>
>>>     public void test(){
>>>         final ClientFactory clientFactory = 
>>> GWT.create(ClientFactoryImpl.class);
>>>         final MyRequestFactory requestFactory = 
>>> clientFactory.getRequestFactory();
>>>         final PostRequest request = requestFactory.postRequest();
>>>
>>>
>>>         request.findPost(1l).fire(new Receiver<PostProxy>() {
>>>
>>>             @Override
>>>             public void onSuccess(PostProxy response) {
>>>
>>>
>>>                 final ClientFactory clientFactory = 
>>> GWT.create(ClientFactoryImpl.class);
>>>                 final MyRequestFactory requestFactory = 
>>> clientFactory.getRequestFactory();
>>>                 final PostRequest request = requestFactory.postRequest();
>>>
>>>                 System.out.println("outer success");
>>>
>>>                 request.findPost(1l).fire(new Receiver<PostProxy>() {
>>>
>>>                     @Override
>>>                     public void onSuccess(PostProxy response) {
>>>                         System.out.println("inner success");
>>>
>>>                     }
>>>
>>>                 });
>>>
>>>             }
>>>         });
>>>
>>>
>>>     }}
>>>
>>> Can someone explain this?
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to