0

I am developing an application in GWT. In server side had a method that returns an arraylist. In client side, when i invoke the method, gets onFailure.

public void onFailure(Throwable caught){
label.setText("ERROR");
}
public void onSuccess(ArrayList<partner> result){
// do something
}

The label gets "ERROR"!

Anyone knows why?

Cumps!

4

1 回答 1

0

ArrayList 不是可传输的类型。您必须改用 List。

于 2012-12-21T17:25:18.343 回答