2012-05-26 3 views
1

GWT 요청 공장의 첫 번째 단계를 제공하고 있으며 때때로 예외가 있습니다. 내가 이상한 점은 모든 서버 요청에서 발생하지 않는다는 것입니다 ... 때때로.GWT RequestFactory 간혹 잘못된 인수 예외

는 예외입니다 :

>  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(); 

: RequestFactory 함께 할 수

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; 
} 

답변

관련 문제