【问题标题】:GWT RequestFactory occasionally Illegal Argument ExceptionGWT RequestFactory 偶尔出现非法参数异常
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2011-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-22
      • 2012-01-21
      • 2012-05-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多