Fri Apr 26 18:24:01 IST 2013 PollsAppLogger严重:Ex抓到1个解包 java.lang.ClassCastException:com.torrid.gwt.pollingApp.client.proxies.PollProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory $ 1无法强制转换为java.util.List
完整堆栈跟踪:http://pastebin.com/C03sN2gA
用户实体:http://pastebin.com/SuBduUbw
的userProxy:
@ProxyFor(User.class)
public interface UserProxy extends EntityProxy {
public void setName(String name);
public void setEmail(String email);
public void setPassword(String pass);
public void setPolls(PollProxy poll);
public String getName();
public String getEmail();
public String getPassword();
public Boolean getLoggedIn();
public List<PollProxy> getPolls();
public Long getId();
}
PollProxy:
@ProxyFor(Poll.class)
public interface PollProxy extends EntityProxy{
public void setQuestion(String data);
public void setOptions(List<String> option);
public void setCloseTime(Date date);
public void setUser(UserProxy user);
public String getQuestion();
public List<String> getOptions();
public UserProxy getUser();
public Date getCloseTime();
public Long getId();
}
RequestPayload:{“F”:“com.torrid.gwt.pollingApp.client.PollsRequestFactory”,“I”:[{“P”:[“name”],“O”:“L5AQsb2uCoxzla0neAW1C8m_pvU =”}] }
ResponsePayload:{“S”:[true],“O”:[{“T”:“dy2uwuT6MdnVb7wATTJaIEsB1Fc =”,“V”:“IjEyMzQ3Nzc3Nzc3ODg4Ig ==”,“P”:{“id”:“60 ”, “电子邮件”: “email@email.com”, “名”: “名字”, “的loggedIn”:假的, “密码”: “胡言乱语”}, “S”: “IjYwIg ==”, “O” : “UPDATE”}], “I”:[{ “T”: “dy2uwuT6MdnVb7wATTJaIEsB1Fc =”, “S”: “IjYwIg ==”}]}