PDA

View Full Version : Google Web Toolkit 2.0 Compatibility Issue



anton_ds
17 Jul 2009, 11:17 AM
Hey GXT Developers team..
I have a question about gwt 2.0 compatibility.
Where is a problem -- Errors and warning during a compile process:


Removing units with errors
[ERROR] Errors in 'jar:file:/C:/Work/projects/.metadata/sdks/com.google.libraries.extjs.2.0.0_wop/gxt.jar!/com/extjs/gxt/ui/client/widget/form/HtmlEditor.java'
[ERROR] Line 609: The method isBasicEditingSupported() is undefined for the type RichTextAreaImpl
[ERROR] Line 621: The method isExtendedEditingSupported() is undefined for the type RichTextAreaImpl
[ERROR] Line 936: The method isBasicEditingSupported() is undefined for the type RichTextAreaImpl
[ERROR] Line 986: The method isExtendedEditingSupported() is undefined for the type RichTextAreaImpl
[ERROR] Line 1045: The method isBasicEditingSupported() is undefined for the type RichTextAreaImpl
[ERROR] Line 1051: The method isExtendedEditingSupported() is undefined for the type RichTextAreaImpl
Removing units with errors
[WARN] Warnings in 'jar:file:/C:/Work/projects/.metadata/sdks/com.google.libraries.extjs.2.0.0_wop/gxt.jar!/com/extjs/gxt/ui/client/binder/TreeBinder.java'
[WARN] Line 545: Referencing deprecated class 'com.extjs.gxt.ui.client.widget.tree.TreeItem'

sven
17 Jul 2009, 11:18 AM
Google changed a couple of interface that made GXT2 incompatible with the current trunk of GWT2.

anton_ds
17 Jul 2009, 11:20 AM
Thanks for u quick answer.

sven
17 Jul 2009, 11:36 AM
With the last changes in the GWT2 trunk it is fixable again. I changed the implementation of HtmlEditor to support GWT2 trunk again. Changes will be part of 2.0.1

anton_ds
17 Jul 2009, 11:38 AM
Sorry. How can i get access to gxt trunk??

sven
17 Jul 2009, 11:42 AM
SVN access is granted with a support subscription:

http://www.extjs.com/store/gxt/#support-table

kentonho
17 Jul 2009, 1:30 PM
Are the changes in HtmlEditor.java now in the GXT trunk? Just tried building GXT 1641 from trunk against GWT 5751 and received the same error as the original post.

From the GWT source (5639), it looks like these two isBasic / isExtended methods just returned false before they were removed...

Thanks!




Kenton

sven
17 Jul 2009, 1:38 PM
The change is under releases/2.0.

kentonho
17 Jul 2009, 2:16 PM
One more question: BeanModelGenerator, line 214... and java.util.List exception for GWT 5751 and building the GXT 1642 examples...

We get this message after the [WARN]

com.google.gwt.core.ext.typeinfo.NotFoundException: java.util.List
[java] at com.google.gwt.core.ext.typeinfo.TypeOracle.getType(TypeOracle.java:471)
[java] at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.createGetMethods(BeanModelGenerator.java:214)

etc...

Is this expected?

Thanks for your fast SVN check-ins!




Kenton

sven
17 Jul 2009, 2:21 PM
I dont get that. Have you checked your classpath? java.util.list has to be known to the compiler.

kentonho
17 Jul 2009, 2:32 PM
It looks like the:

[java] com.google.gwt.core.ext.typeinfo.NotFoundException: java.util.List
[java] at com.google.gwt.core.ext.typeinfo.TypeOracle.getType(TypeOracle.java:471)
[java] at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.createGetMethods(BeanModelGenerator.java:214)
[java] at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.createBean(BeanModelGenerator.java:163)
[java] at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate(BeanModelGenerator.java:88)
[java] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:49)
[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:107)
[java] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:53)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:153)
[java] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:142)
[java] at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:304)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:196)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process(AbstractCompiler.java:161)
[java] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:84)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:196)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$300(AbstractCompiler.java:70)
[java] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:481)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:133)
[java] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:58)
[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:399)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:476)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:395)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:193)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:144)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:151)


Started recently in GXT 1629, 1628 compiles without the message above.

MacOSX, 10.5.7, Java: 1.6.0_13-b03-211

Strange...




Kenton