Remote service in gwt runs twice

I call the service with GWT.

On the client side, I made only one method call, but on the server side, the method in the service is called twice.

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

I have more calls in the same applications, but this is the only problem.

+4
source share
1 answer

had the same problem with a lot of concurrent calls with many parameters and with some subheadings.

some calls are sometimes made twice. the parameters and calls from the client side were correct, the problem was on the server side. with a smaller problem, subcalls / parameters did not appear.

the problem seems to have disappeared when all the calls on the client were connected in one sequence without any changes. that is, the next call is made when the previous call with all its sub-calls is completely completed (many nested OnSucess instead of subsequent calls).

0
source

Source: https://habr.com/ru/post/1437355/


All Articles