This happens if you have an older version of a gwt-x library in your classpath. It actually happened to me because the gwt-bootstrap version I used had a dependency to an old gwt-codeserver-1.5.0.jar version. This dependency was removed in a latter gwt-bootstrap snapshot. Run mvn dependency:tree -Dverbose on your gwt app and check if there any references to an older gwt version.
Regarding gwt-maven plugin. Yes it is still version 2.5.0 but you can use newer GWT SDKs ( http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html ) On Friday, February 15, 2013 7:44:13 PM UTC+1, EMan wrote: > > I deleted all my target/war directories, but it is still not working. I > don't have an easy way to compile with eclipse. I will wait until there is > a gwt maven plugin and try again. Thanks. > > On Friday, February 15, 2013 11:37:13 AM UTC-5, Jens wrote: >> >> Deleting gwt-unitCache solved the issue for me. I have also deleted >> war/<appname> and war/WEB-INF/deploy but I think thats not needed. >> >> Can you compile through Eclipse using GPE? I don't think the maven plugin >> itself is causing the problem. Maybe you still have a gwt-unitCache folder >> lying around somewhere that you haven't found/deleted yet? >> >> -- J. >> >> Am Freitag, 15. Februar 2013 17:15:58 UTC+1 schrieb EMan: >>> >>> I tried upgrading from 2.5.0 to 2.5.1 but I am getting an error during >>> the gwt compile. I googled that I needed to remove my gwt-junitCache, >>> which I tried but it doesn't seem to be helping. I am still using the >>> 2.5.0 gwt maven plugin since the 2.5.1 is not available. Could that be >>> causing the problem? Thanks. >>> >>> [INFO] java.lang.RuntimeException: Unexpected IOException on in-memory >>> stream >>> [INFO] at >>> com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:324) >>> [INFO] at >>> com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:672) >>> [INFO] at >>> com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:985) >>> [INFO] at >>> com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:530) >>> [INFO] at >>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:621) >>> [INFO] at >>> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33) >>> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:278) >>> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229) >>> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:141) >>> [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232) >>> [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198) >>> [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) >>> [INFO] at >>> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88) >>> [INFO] at >>> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82) >>> [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177) >>> [INFO] Caused by: java.io.InvalidClassException: >>> com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream >>> classdesc serialVersionUID = -8155793964565947646, local class >>> serialVersionUID = -1052417216019896795 >>> >>> >>> On Wednesday, February 13, 2013 1:54:49 PM UTC-5, Matthew Dempsky wrote: >>>> >>>> Hi everyone, >>>> >>>> We're excited to announce the GWT 2.5.1-rc1 release candidate! There >>>> will be an announcement soon on the GWT >>>> Blog<http://googlewebtoolkit.blogspot.com/>, >>>> and you can download it >>>> here<https://code.google.com/p/google-web-toolkit/downloads/detail?name=gwt-2.5.1-rc1.zip>. >>>> >>>> This release candidate has been uploaded to Maven Central with the >>>> version >>>> string of "2.5.1-rc1". >>>> >>>> GWT 2.5.1 contains over 50 new bug fixes, many of which were >>>> contributed by the community. Thanks to everyone who reported issues >>>> and/or submitted patches. >>>> >>>> Please test out this release candidate and let us know of any issues, >>>> especially any regressions from either 2.4.0 or 2.5.0. Thanks! >>>> >>>> -Matthew, on behalf of the GWT team >>>> >>> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
