GWT 2.5.1 and IntelliJ debugging mode, serializable exception

I am running IntelliJ 12.1 for a GWT project. I can't get the GWT configuration to work, I keep getting a serializable exception.

I also use maven and tomcat and run the maven web application project. For instance. I create a project / webapp in the target directory and run tomcat from this directory.

Error:

java.lang.RuntimeException: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized 

Here are my settings for configuring 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 

Ironically, if I run remote debugging, for example:

mvn gwt: debug -Dgwt.noserver = true

And then run remote debugging from IntelliJ (not using GWT mode), I don't get a serialization error.

The class itself is a simple enumeration. I make a simple rpc service call and on the first call, I get the error above:

 public enum Status implements Serializable, IsSerializable { Running, Disabled } 

I tried to clear all the cache files I could find and the destination directory, but I still get the same error.

How to start IntelliJ GWT Configuration without getting this error?

Work with: Mac10.7, Chrome, Tomcat7, IntelliJ12.1, gwt2.5.1

+2
source share
2 answers

Try mvn clean install throughout the project (but I hope you tried it ...), as well as mvn gwt:clean in the GWT part. Also delete the compiled / temporary files in src/main/webapp/ .

And if this is really an IntelliJ cache problem, try File -> Invalidate caches .

+2
source

Are you setting the output directory in your GWT plugin for maven?

Sometimes GWT displays everything in the source directory and it will not be clean with "mvn clean". Look for .rpc or .cache.html files to find out where maven prints output and deletes everything you don't write yourself.

+1
source

Source: https://habr.com/ru/post/954773/


All Articles