Hello,I've been struggling with this issue for a long time, maybe someone could help me address this finally?From time to time it happens that a user navigates to one page wich issues an RPC to our server but then quickly navigates to another page which issues yet another RPC to the server while the 1st call is still being processed by the server. In this case I always see some kind of SQLException on the server side (I guess for the 1st call) and then the client also receives an unspecified Exception.What is the best practice for dealing with these situations? Should I be canceling the 1st call before allowing the 2nd one?We use gwt-dispatch, I did not find a cancel method in that framework yet. Or should I not allow any new calls until the active one has not finished?Do you ever run into this w/ GWT?Thanks much,Alexey
interface MyServiceAsync {
public Request myMethod(String s, AsyncCallback<String> callback);
}
new ViewPresenter(clientFactory).go(container);
The presenter may issue: clientFactory.getRpcService().execute(...)
But when a user navigates to another location the presenter is probably not destroyed
The new location would do: new View2Presenter(clientFactory).go(container)
And the 1st presenter would get destroyed only when the 1st location is revisited. That is when the view.presenter variable is reset.
Hmm, I need to think about this more.
Or maybe I should simply enable the Activity/Places framework for this project also.
Thank you
java.lang.NullPointerException: null
at com.mysql.jdbc.ResultSetImpl.findColumn(ResultSetImpl.java:1133) ~[mysql-connector-java-5.1.21.jar:na]
All seem to relate to the db connection closed. Just trying to wrap my mind around how exactly the connection is closed/lost if my persist thread is still working, trying to extract the data.
Thank you,
Alexey