GWT-EXT的RPC抛出异常

EXT-GWT运行抛异常
关键字: gwt成长之路
最近一段时间一个人在设计一个小型项目UI原型。在设计的过程中遇到了很多问题,在解决问题的过程中发现可以参考的资料很少,只好去英文网站上参考一下。我真希望能够把遇到的所有问题都记录下来,从而快速提高自己的技术水平,尽快提升一个台阶。 下面先贴下一遇到的问题 Uncaught exception escaped java.lang.RuntimeException: com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server; see server log for details at com.extjs.gxt.ui.client.store.ListStore.onLoadException(ListStore.java:466) at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoadException(ListStore.java:135) at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:27) at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:1) at com.extjs.gxt.ui.client.event.BaseObservable.......

com.google.gwt.dev.GWTShell.main(GWTShell.java:357) tomcat: 2009-6-20 16:37:14 org.apache.catalina.core.ApplicationContext log 信息: ERROR: The serialization policy file '/822F04E62501BA09DB69C84066C060B1.gwt.rpc' was not found; did you forget to include it in this deployment? 2009-6-20 16:37:14 org.apache.catalina.core.ApplicationContext log 信息: WARNING: Failed to get the SerializationPolicy '822F04E62501BA09DB69C84066C060B1' for module 'http://localhost:8080/winshare-mms-ui-gwt/'; a legacy, 1.3.3 compatible, serialization policy will be used. You may experience SerializationExceptions as a result. 2009-6-20 16:37:14 org.apache.catalina.core.ApplicationContext log 严重: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' 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 deserialized. at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:298) at com.anze.commons.gwt.spring.GWTServiceExporter.processCall

......

com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:372) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287) ... 24 more 遇到这个问题的有多种情况,第一篇博文也是这个问题却有不同的原因。首先说一下造成这个问题的原因:因为设计调试阶段我用的是hosted模式测试阶段必须要部署在Tomcat下运行,在测试的过程中我又继续编写RPC了,然后在tomcat下运行此时出现了 Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' 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 deserialized. 这个异常。解决问题的方法很简单,把 项目名称project\www\项目进入点类IndexPage(自己翻译的,因为这个类实现了EntryPoint这个接口)下的所有内容copy到tomcat\webapps\项目名称project\里重新部署tomcat运行就OK

其实所有的异常都是假现象,除了文中紫色字体部分
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值