GWT 2.5.1和IntelliJ调试模式,可序列化的异常 [英] GWT 2.5.1 and IntelliJ debug mode, serializable exception
问题描述
我为GWT项目运行IntelliJ 12.1。我不能得到GWT配置工作,我不断得到一个可序列化的异常。
我也使用maven和tomcat并运行maven的web app项目。例如。
错误:
<$ p $我将项目/ webapp构建到目标目录并从该目录运行tomcat。 p> java.lang.RuntimeException:com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:响应无法反序列化
以下是我对GWT配置的设置:
-noserver -port 8080 -logLevel DEBUG -war /Users/bbrown/Projects/src/web/target/my-13.06.04-SNAPSHOT -startupUrl http://127.0.0.1:8080/home.html
$ c $讽刺的是,如果我运行远程调试,例如:
mvn gwt:debug - Dgwt.noserver = true
然后从IntelliJ启动远程调试(不使用GWT模式),我没有得到序列化错误。
$ b
这个类本身是一个简单的枚举。
public enum Status实现了Serializable, IsSerializable {
正在运行,已禁用
}
我尝试清除所有缓存文件我可以找到和目标目录,但我一直得到相同的错误。
如何运行IntelliJ GWT配置而不会出现此错误?
运行于:Mac10.7,Chrome,Tomcat7,IntelliJ12.1,gwt2.5.1
解决方案在整个项目中尝试 mvn clean install
(但是我希望你可以试试它...)以及 mvn gwt:clean
在GWT部分。还要删除 src / main / webapp /
中的编译/临时文件。
如果真的是IntelliJ问题缓存,请尝试文件 - >使缓存无效
。
I am running IntelliJ 12.1 for a GWT project. I cannot get the GWT configuration to work, I keep getting a serializable exception.
I am also using maven and tomcat and running the web app project from maven. E.g. I build the project/webapp to the target directory and run tomcat from that directory.
Error:
java.lang.RuntimeException: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized
Here are my settings for the GWT configuration:
-noserver -port 8080 -logLevel DEBUG -war /Users/bbrown/Projects/src/web/target/my-13.06.04-SNAPSHOT -startupUrl http://127.0.0.1:8080/home.html
Ironically, if I run remote debugging, e.g:
mvn gwt:debug -Dgwt.noserver=true
And then launch remote debugging from IntelliJ (not using the GWT mode), I don't get the serialization error.
The class itself is a simple enum. I am making a simple rpc service call and on the initial call, I get the error above:
public enum Status implements Serializable, IsSerializable {
Running, Disabled
}
I tried to clear all cache files I could find and the target directory but I keep getting the same error.
How can I run the IntelliJ GWT Configuration without getting this error?
Running with: Mac10.7, Chrome, Tomcat7, IntelliJ12.1, gwt2.5.1
解决方案 Try mvn clean install
on the whole project (but I hope you tried it...) and also mvn gwt:clean
on the GWT part. Also delete compiled/temporary files in src/main/webapp/
.
And if it's really a problem of IntelliJ caches, try File -> Invalidate caches
.
这篇关于GWT 2.5.1和IntelliJ调试模式,可序列化的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!