Thursday, December 5, 2013

Async Call Problem on TomCat Server

Hi all,
i've a problem with GWT's RPC call mode.
these is my code: 
server.tutti_clienti(new AsyncCallback<Cliente>() {


public void onSuccess(Cliente result) {

log = log + " 1 - Cliente ";
tutti_clienti = result;

cliente.addItem("- Seleziona un Cliente -","null");
 
for(int i=0; i<n_clienti; i++)
 
cliente.addItem(tutti_clienti.getCliente(i), String.valueOf(tutti_clienti.getId(i)));
}

public void onFailure(Throwable caught) {

log = log + " 1.1 - ERRORE Cliente " + caught;
System.out.println("Errore server.tutti_clienti(): " + caught.getMessage());
}
});
 "cliente" is a ListBox and "tutti_clienti" is a compose of ArrayList.
These type of code is written for many ListBox with many differt server call.
The problem is that if i run it on a TomCat server not all of the ListBox are loaded, but if i run it in DebugMode it work.
The error that i retrive in "server" mode are;
NullPointerException OR Fail to call the server (etc etc).

Thanks in advance and sorry for my english.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment