【发布时间】:2012-05-26 18:28:56
【问题描述】:
我正在使用 GWT 请求工厂迈出第一步,但偶尔会遇到异常。我觉得奇怪的是,它不会发生在每个服务器请求中……只是有时。
例外是:
> Caused by: java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method
> '@com.google.web.bindery.autobean.gwt.client.impl.JsniCreatorMap::invoke(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/Object;Ljava/lang/Object;)':
> JS value of type boolean, expected java.lang.Object
我打电话时出错:
> Request<List<ConcertProxy>> findAll();
具体实现如下:
public static List<Concert> findAll()
{
Objectify ofy = ObjectifyService.begin();
List<Concert> concerts = ofy.query(Concert.class).limit(100).order("-id").list();/* this dumps to memory */
return concerts;
}
【问题讨论】:
标签: google-app-engine gwt requestfactory