this is my first app. I have problem between gwt (rpc) and my db (MySQL). JUnit tests run great. Here is my code: https://github.com/sutakjakub/game
client package:
UserService.Util.getInstance().addUser("kuba","tajne",
new AsyncCallback<Long>() {
@Override
public void onFailure(Throwable arg0) {
Window.alert("get se nezdaril" + arg0);
}
@Override
public void onSuccess(Long id) {
if(id == null){
Window.alert("null");
}else{
Window.alert("zapsano do db; id=" + id);
}
}
});
This method must return id of new user but it return null (in method onSuccess(Long id)).
I dont have some error logs. I tried almost everything. Thank you very much for some idea or solution.