我正在向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;
}
答案 0 :(得分:0)
与RequestFactory无关,这是一个Chrome DevMode Plugin错误。 Google建议将Firefox(或IE)用于DevMode:http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65