PDA

View Full Version : Internal compiler error -> GXT 2.2.1 + GWT 2.2.0, bug?



vielinko
15 Mar 2011, 8:25 AM
Hello, I try to find out some related posts at this forum, but didnt have luck. Now, I request for help :)

I have a GWT+GXT project, I just recently upgrade my APIs versions to newest. When I compile my project, I had this compile errors:



Error: Internal compiler error
Error:at com.extjs.gxt.ui.rebind.core.TemplatesGenerator$SourceGenerator.validateType(TemplatesGenerator.java:142)
Error:at com.extjs.gxt.ui.rebind.core.TemplatesGenerator$SourceGenerator.generate(TemplatesGenerator.java:97)
Error:at com.extjs.gxt.ui.rebind.core.TemplatesGenerator.generate(TemplatesGenerator.java:56)
Error:at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
Error:at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
Error:at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
Error:at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
Error:at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
Error:at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
Error:at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
Error:at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
Error:at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
Error:at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
Error:at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
Error:at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
Error:at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
Error:at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
Error:at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
Error:at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
Error:at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
Error:at com.google.gwt.dev.Compiler.run(Compiler.java:215)
Error:at com.google.gwt.dev.Compiler.run(Compiler.java:187)
Error:at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
Error:at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
Error:at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
Error:at com.google.gwt.dev.Compiler.main(Compiler.java:166)
Error:Unexpected


It's a bug or a knowing stuff, and someone can guide me how to resolve with these API's versions.

By the moment, I just rollback my upgrade to previous version of GWT+GXT.


Rgds,
VieL.

sven
15 Mar 2011, 11:19 AM
This is known and can be found in the GWT documentation and also using the forum search. GWT 2.2 is not binary backward compatibly. This means you will need to either rebuild GXT against GWT 2.2 or use the just relaesed GXT 2.2.3

narduk
16 Mar 2011, 5:04 AM
Hi,

I downloaded Ext GWT 2.2.3 a few days ago and tried to upgrade. However, a similar problem still shows up:



[ERROR] Errors in 'jar:file:/home/narduk/workspace/myproject/lib/gxt-2.2.3-gwt22.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.typeinfo.JClassType, but interface was expected
at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.isBeanMarker(BeanModelGenerator.java:197)
at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate(BeanModelGenerator.java:54)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150)
at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
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:484)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
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:156)

[ERROR] Unexpected
java.lang.IncompatibleClassChangeError: Found class com.google.gwt.core.ext.typeinfo.JClassType, but interface was expected
at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.isBeanMarker(BeanModelGenerator.java:197)
at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate(BeanModelGenerator.java:54)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150)
at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
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:484)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
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:156)


Any idea?

Thanks.

micgala
16 Mar 2011, 8:59 AM
Make sure you are compiling using gwt 2.2 as well...

vielinko
18 Mar 2011, 9:06 AM
This is known and can be found in the GWT documentation and also using the forum search. GWT 2.2 is not binary backward compatibly. This means you will need to either rebuild GXT against GWT 2.2 or use the just relaesed GXT 2.2.3


aaww ... my fault, sorry, I didn't check the GWT new documentation. I'll DL de new GXT release.

I'll feedback after test...

Thank you very much for your help/tip/reprimand(jk :P) ...

Rgds,
VieL

vielinko
18 Mar 2011, 10:09 AM
aaww ... my fault, sorry, I didn't check the GWT new documentation. I'll DL de new GXT release.

I'll feedback after test...

Thank you very much for your help/tip/reprimand(jk :P) ...

Rgds,
VieL

It's done, compiles/works perfectly.

Thank you very much

~o)
VieL.

ELGUENBRI Foued
22 Mar 2011, 1:05 AM
would you please explain how do you resolved the problem!!
Thanks

micgala
22 Mar 2011, 1:15 AM
He simply downloaded gxt 2.2.3, which is ready for gwt 2.2.

Regards,
Michel.

ELGUENBRI Foued
22 Mar 2011, 1:44 AM
Thank you very much :)

vielinko
22 Mar 2011, 8:52 PM
He simply downloaded gxt 2.2.3, which is ready for gwt 2.2.

Regards,
Michel.

Just like this ... download gxt 2.2.3 and rebuild project :P ...