GWT - occasional com.google.gwt.user.client.rpc.SerializationException

后端 未结 11 1145
走了就别回头了
走了就别回头了 2020-12-13 08:47

we are haunted by occasional occurences of exceptions such as:

com.google.gwt.user.client.rpc.SerializationException: Type \'xxx\' was not assignable

11条回答
  •  既然无缘
    2020-12-13 09:25

    If you are running on JBoss, this might be due to the fact that the previously deployed application is not deleted when undeployed. To fix this, you must modify the following file in JBoss: ${JBOSS_HOME}/server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml and set the following attribute to true: deleteWorkDirOnContextDestroy

    When the previously deployed application is not cleaned up, GWT can be confused about which RPC file it needs to load and you end up with those SerializationException

提交回复
热议问题