5

I'm making a call to a service with GWT.

In the client side I made only one call to the method, but in the server-side, the method in the service is called twice.

I debugged the client side with GWT-Tools in Firefox; and when I call once the method, there are two executions in the server. The same data in the parameters, but in two different threads.

I have more calls in the same applications, but the problem is only with that one.

Pedro Náñez
  • 439
  • 8
  • 12
  • When I use firebug to inspect the RPC call this is marked as 'Aborted', but in fact is called twice. I found this post in a forum with somebody with the same problem, but there is no answers: http://www.sencha.com/forum/showthread.php?144919-quot-Aborted-quot-rpc-call-resulting-in-duplicate-request – Pedro Náñez Oct 02 '12 at 15:01
  • Hard to tell what the issue is, can you post code surrounding both the client activation of your RPC and the code surrounding your RPC call? – JCricket Nov 26 '13 at 13:14

2 Answers2

0

had the same problem with a lot of parallel calls with lot of parameters and with some sub-calls.

some calls occasionally executed twice. parameters and calls from client side were correct, the problem was server-side. with less subcalls/parameters problem was not appearing.

the problem seems to be disappeared when all calls on client were chained into single sequence with no other changes. i.e. next call is performed when previous call with all its subcalls is completely done (a lot of nested OnSucess instead of subsequent calls).

Dmitry Bryliuk
  • 106
  • 1
  • 3
0

I got the same problem, and in my case, I found the component I want to add listener to have been register twice, and these two listeners did the same thing -- to call the same RPC method.

So that's why it calls the RPC method once when I debug the client side code, but twice in server side, cause the other call is from the other listener.