【发布时间】:2015-01-14 16:26:56
【问题描述】:
我在 Tomcat 7 服务器上间歇性地遇到此问题。大多数情况下它都有效,并且似乎与代码更改无关。例如。今天服务器重新启动,我们开始看到与过去两周完全相同的战争的问题。在 GWT 2.6 和 2.7 中观察到了这一点
com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gwt.view.client.Range' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = Range(0,20)
它有一个用于引用 RPC 的空构造函数的 javadoc:
/**
* The range of interest for a single handler.
*/
public class Range implements Serializable {
private int length;
private int start;
...
/**
* Used by RPC.
*/
Range() {
}
【问题讨论】: