1

我正在使用 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;
}
4

1 回答 1

0

与 RequestFactory 无关,这是一个 Chrome DevMode 插件错误。Google 建议使用 Firefox(或 IE)进行 DevMode:http ://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65

于 2012-05-26T18:39:38.653 回答