GWT 2.7.0 Compile Errors

338 views
Skip to first unread message

Majdi ABDELMOULA

unread,
Nov 7, 2016, 9:53:01 AM11/7/16
to GWT Users
I have Compile an old GWT project under the plugin GWT 2.7.0 , but i have some errors because the incompatibility between the old version and the new version of the GWT.
What is the solution for this error ???

--------------------------------------------------------------------------------------------
 [ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:83)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.Compiler.run(Compiler.java:158)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:127)
Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at com.extjs.gxt.ui.rebind.core.TemplatesGenerator$SourceGenerator.validateType(TemplatesGenerator.java:142)
at com.extjs.gxt.ui.rebind.core.TemplatesGenerator$SourceGenerator.generate(TemplatesGenerator.java:97)
at com.extjs.gxt.ui.rebind.core.TemplatesGenerator.generate(TemplatesGenerator.java:56)
at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:760)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)
at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
... 45 more
      [ERROR] at GridView.java(1311): GWT.create(GridTemplates.class)
         com.google.gwt.dev.jjs.ast.JMethodCall
      [ERROR] at GridView.java(1311): (GridTemplates) GWT.create(GridTemplates.class)
         com.google.gwt.dev.jjs.ast.JCastOperation
      [ERROR] at GridView.java(1311): this.templates = (GridTemplates) GWT.create(GridTemplates.class)
         com.google.gwt.dev.jjs.ast.JBinaryOperation
      [ERROR] at GridView.java(1311): this.templates = (GridTemplates) GWT.create(GridTemplates.class)
         com.google.gwt.dev.jjs.ast.JExpressionStatement
      [ERROR] at GridView.java(1310): {
  this.templates = (GridTemplates) GWT.create(GridTemplates.class);
}
         com.google.gwt.dev.jjs.ast.JBlock
      [ERROR] at GridView.java(1310): {
  this.templates = (GridTemplates) GWT.create(GridTemplates.class);
}
         com.google.gwt.dev.jjs.ast.JMethodBody
      [ERROR] at GridView.java(1310): protected void initTemplates();

         com.google.gwt.dev.jjs.ast.JMethod

Thomas Broyer

unread,
Nov 7, 2016, 10:42:15 AM11/7/16
to GWT Users


On Monday, November 7, 2016 at 3:53:01 PM UTC+1, Majdi ABDELMOULA wrote:
I have Compile an old GWT project under the plugin GWT 2.7.0 , but i have some errors because the incompatibility between the old version and the new version of the GWT.
What is the solution for this error ???

--------------------------------------------------------------------------------------------
[…] 
Caused by: java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

In GWT 2.2, JClassType (everything in com.google.gwt.core.ext.typeinfo actually) was changed from an interface to an abstract class (that was almost 6 years ago already, and I can't find where it was announced; and release notes for such ancient versions have been lost)

at com.extjs.gxt.ui.rebind.core.TemplatesGenerator$SourceGenerator.validateType(TemplatesGenerator.java:142)

You need to update GXT (and all your other dependencies) to a version that's compatible with GWT 2.7. 

Majdi ABDELMOULA

unread,
Nov 8, 2016, 2:20:58 AM11/8/16
to GWT Users
Thank you for your reponse. 
the problem GXT is not free now. I will lost two old projects (projects since 6 years). I will use smart GWT for a new project, so i must start from zero, but i worry that Smart GWT will be not free in the future too. 
The only solution for resolving these errors , is to Buy GXT plugin from the sencha website ??  
 

Thomas Broyer

unread,
Nov 8, 2016, 5:16:31 AM11/8/16
to GWT Users

Majdi ABDELMOULA

unread,
Nov 10, 2016, 6:18:14 AM11/10/16
to GWT Users
Thank you Thomas , you save me, I can run the project without erros now :) Can i use this version of GXT jar's for commercial project or i must pay for that ?? its licence is it GPL ??
:)))) 

David Becker

unread,
Nov 10, 2016, 11:51:07 AM11/10/16
to GWT Users
GXT is available under both a commercial and GPL license. Details can be found here: https://www.sencha.com/legal/#Sencha_GXT

Majdi ABDELMOULA

unread,
Nov 10, 2016, 1:21:12 PM11/10/16
to GWT Users
Thanks David for the link, it is clear now
:) 

Majdi ABDELMOULA

unread,
Dec 16, 2016, 9:22:53 PM12/16/16
to GWT Users
Hello Thomas ,

I use gxt 2.3.1a , that you send me, to develop an application , but i have this problem : SimpleComboBox do not show the vertical scroll bar when i have many data !! i have the same problem for the compoment "TimeField" , i do not see the scroll vertical bar !! 
I see that the problem come from the file  gxt-all.css !! How can i resolve this problem ???

the code CSS that describe " SimpleCombobox " is : 

.x-combo-list {
    border:1px solid;
    zoom:1;
    overflow:hidden;

}
.x-combo-list-inner {
    overflow:auto;
  
    position:relative;  
    zoom:1;
    overflow-x:hidden;
}
.x-combo-list-hd {
    border-bottom:1px solid;
    padding:3px;
   
}
Reply all
Reply to author
Forward
0 new messages