我创建了一个 RPC 服务,它在 appengine 共享文件夹中创建了一个 SportsLeagueAndroidRequest。当我跑去尝试我的项目时,它显示一个错误
[错误] [sportsleagueandroid] - 延迟绑定结果类型“edu.columbia.sportsleagueandroid.shared.SportsLeagueAndroidRequest”不应该是抽象的
SportsLeagueAndroidRequest是你创建RPC服务时自动生成的接口!!
如何消除此错误?
final EventBus eventBus = new SimpleEventBus();
final MyRequestFactory requestFactory = GWT.create(SportsLeagueAndroidRequest.class);
requestFactory.initialize(eventBus);
sendMessageButton.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event)
{
//String recipient = recipientArea.getValue();
//String receivers[] = recipient.split(",");
String message = messageArea.getValue();
// setStatus("Connecting...", false);
sendMessageButton.setEnabled(false);
sendNewTaskToServer(message);
}
private void sendNewTaskToServer(String message) {
SportsLeagueAndroidRequest request = requestFactory.sportsLeagueAndroidRequest();
StadiumProxy task = request.create(StadiumProxy.class);