| Issue 2: | gwt 2.3.0 - java.lang.IncompatibleClassChangeError: |
‹ Prev
2 of 2
|
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Install gwt 2.3.0 2. Install gwt-page 1.0 3. Develop a sample application and compile. The Entry class throws the error at this code: Pages.init((MyPageLoader) GWT.create(MyPageLoader.class), What is the expected output? What do you see instead? should compile and deploy. Instead I get: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at com.google.gwt.gwtpages.generator.loader.PageLoaderGenerator.generate(PageLoaderGenerator.java:43) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:681) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:285) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:274) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:251) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:170) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:285) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:587) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:525) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35) at com.google.gwt.dev.Precompile.precompile(Precompile.java:538) at com.google.gwt.dev.Precompile.precompile(Precompile.java:492) at com.google.gwt.dev.Precompile.precompile(Precompile.java:405) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) [ERROR] Unexpected What version of the product are you using? On what operating system? gwt 2.3.0, gwt-page 1.0 Ubuntu 11.04 AMD64 Tried with both sun-jdk 1.6 and open-jdk Please provide any additional information below.
May 29, 2012
#1
smnsv...@gmail.com
Jul 11, 2012
Could you some public or create new gwtpages jar files with last version GWT? Thanks
Oct 20, 2012
I ran into this problem as well and solved it myself, so I thought I'd post a note about how I did it here to save someone else the trouble. I pulled in the latest version (trunk) of GWT Pages into Eclipse, set the Java version to something higher than the 1.4 default (e.g. Java 6), updated the pom.xml to change the version of GWT to 2.4.0. I also changed the GWT pages version number to 2.4.0 for my own sanity so I would know what version it was compiled against. I ran a maven build to rebuild the JAR and the imported it into my other project and things worked fine at that point.
Nov 24, 2012
Same Problem, a java recompile fixed the problem for me too. Just expand the contents of the original gwtpages-1.0.0.jar somewhere, recompile whith gwt-2.4.0 in the classpath, and wrap it all up again in a new jar. I attached the buildfile I used for this, just edit gwt.sdk (should point at the location of your GWT 2.4 install)
Aug 14, 2013
I have used gwtpages 1.o with gwt 2.5 ,but I get a compile time error..If any one help me for page navigation in gwt?
Aug 14, 2013
I have used gwtpages 1.o with gwt 2.5 ,but I get a compile time error..If any one help me for page navigation in gwt?
Jul 17, 2015
I do not recommend using GWT Pages |