Hi,

I tried to update an existing 2.1.1 project to 2.2 without success.
The compiler throws a lot of errors and exceptions.
I found in another post that we should update Gin to 1.5 and tried it,
but it wasn't helpful.

Any idea?

Thanks.

This is the compiler's log:

Compiling module com.example.myproject
   Validating newly compiled units
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/CanvasElement.java'
         [ERROR] Line 49: No source code is available for type
com.google.gwt.canvas.dom.client.Context; did you forget to inherit a
required module?
         [ERROR] Line 60: No source code is available for type
com.google.gwt.canvas.dom.client.Context2d; did you forget to inherit
a required module?
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/MediaElement.java'
         [ERROR] Line 124: No source code is available for type
com.google.gwt.media.dom.client.TimeRanges; did you forget to inherit
a required module?
         [ERROR] Line 178: No source code is available for type
com.google.gwt.media.dom.client.MediaError; did you forget to inherit
a required module?
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/Touch.java'
         [ERROR] Line 36: The method touchGetClientX(Touch) is
undefined for the type DOMImpl
         [ERROR] Line 45: The method touchGetClientY(Touch) is
undefined for the type DOMImpl
         [ERROR] Line 54: The method touchGetIdentifier(Touch) is
undefined for the type DOMImpl
         [ERROR] Line 63: The method touchGetPageX(Touch) is undefined
for the type DOMImpl
         [ERROR] Line 72: The method touchGetPageY(Touch) is undefined
for the type DOMImpl
         [ERROR] Line 103: The method touchGetScreenX(Touch) is
undefined for the type DOMImpl
         [ERROR] Line 112: The method touchGetScreenY(Touch) is
undefined for the type DOMImpl
         [ERROR] Line 121: The method touchGetTarget(Touch) is
undefined for the type DOMImpl
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureChangeEvent.java'
         [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
         [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureEndEvent.java'
         [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
         [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureStartEvent.java'
         [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
         [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
      [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/TouchEvent.java'
         [ERROR] Line 41: The method getChangedTouches() is undefined
for the type NativeEvent
         [ERROR] Line 54: The method getTargetTouches() is undefined
for the type NativeEvent
         [ERROR] Line 66: The method getTouches() is undefined for the
type NativeEvent
   [ERROR] Errors in 'file:/home/fernando/workspace/sigras-war/
desarrollo/uy/org/inia/gras/sigras/war/client/
SigrasDesarrolloEntryPoint.java'
      [ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found class
com.google.gwt.core.ext.typeinfo.JClassType, but interface was
expected
        at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:
84)
        at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:
65)
        at
com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:
47)
        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.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:
84)
        at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:
65)
        at
com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:
47)
        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)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to