svetlo / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

gwt-2.2 compilation problem #292

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Update to gwt_2.2
2. Update latest googgle-gin
3.

What is the expected output? What do you see instead?
I expect success copilation

[ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at com.gwtplatform.mvp.rebind.ProxyGenerator.findBaseTypes(ProxyGenerator.java:834)
    at com.gwtplatform.mvp.rebind.ProxyGenerator.generate(ProxyGenerator.java:166)
    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:662)
    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:259)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
    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: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:517)
    at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
    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
java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at com.gwtplatform.mvp.rebind.ProxyGenerator.findBaseTypes(ProxyGenerator.java:834)
    at com.gwtplatform.mvp.rebind.ProxyGenerator.generate(ProxyGenerator.java:166)
    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:662)
    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:259)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
    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: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:517)
    at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
    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)

What version of the product are you using? On what operating system?
gwtp_0.5
OS -Snow Leopard 10.6.6

Please provide any additional information below.

Original issue reported on code.google.com by antonev...@gmail.com on 12 Feb 2011 at 2:03

GoogleCodeExporter commented 8 years ago
You have to recompile gin and gwtp with GWT 2.2 and all other GWT libs that use 
generators for that matter.

In GWT 2.2 JClassType has changed from an abstract class to an interface and 
therefor is bytecode incompatible.

Original comment by kuhnro...@gmail.com on 14 Feb 2011 at 7:31

GoogleCodeExporter commented 8 years ago
My solution is:
 recompile latest trunk google-gin and gwtp with gwt-2.2.0

Original comment by antonev...@gmail.com on 15 Feb 2011 at 8:16

GoogleCodeExporter commented 8 years ago
Another workaround iss to downgrade GWT SDK to 2.1

1. Download 2.1 from http://goo.gl/KKUpM
2. Set it up in Eclipse / Preferences / Tools Webkit to point to the downloaded 
location
3. Voila builds fine.

Nevertheless hoping for quick fix of this.

Original comment by atanas.r...@gmail.com on 16 Feb 2011 at 6:19

GoogleCodeExporter commented 8 years ago
It will be done before the end of the day.

Original comment by philippe.beaudoin on 16 Feb 2011 at 1:49

GoogleCodeExporter commented 8 years ago
The latest 0.6-SNAPSHOT works with GWT 2.2 (but it doesn't work with GWT 2.1 
due to binary incompatibility). You can grab it from the CI server but I've 
also deployed a maven snapshot:
  https://oss.sonatype.org/content/repositories/snapshots/com/gwtplatform/

Info on how to use the snapshots if your project is built with Maven:
  http://code.google.com/p/gwt-platform/wiki/UsingGwtpWithMaven

Original comment by philippe.beaudoin on 17 Feb 2011 at 1:36

GoogleCodeExporter commented 8 years ago
Thanks

Original comment by ajwec...@gmail.com on 19 Feb 2011 at 4:45

GoogleCodeExporter commented 8 years ago
Same problem when compiling anything depending on gwt-maps-1.1.0.jar 

--
[INFO]    [ERROR] Errors in 
'jar:file:/home/pether/.m2/repository/com/google/gwt/google-apis/gwt-maps/1.1.0/
gwt-maps-1.1.0.jar!/com/google/gwt/maps/client/impl/TileLayerImpl.java'
[INFO]       [ERROR]  Internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
[INFO]  at 
com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.j
ava:277)
[INFO]  at 
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48
)
--

Pether

Original comment by pether.s...@gmail.com on 20 Feb 2011 at 11:04

GoogleCodeExporter commented 8 years ago
Well, Gwt-maps should be recompiled against Gwt 2.2 in the same way we did for 
Gwtp :(

Original comment by goudreau...@gmail.com on 20 Feb 2011 at 11:38

GoogleCodeExporter commented 8 years ago
Is this really fixed? I just downloaded gwt-2.2.0 and gwt-maps-1.1.0 and this 
problem still exists.

repro:

ant gwtc

(from gwt-maps-1.1.0/samples/hellomaps)

Original comment by jim.ha...@gmail.com on 27 Feb 2011 at 5:51

GoogleCodeExporter commented 8 years ago
Could be that gwt-maps-1.1.0 needs to be recompiled with Gwt 2.2.

Original comment by philippe.beaudoin on 27 Feb 2011 at 5:58

GoogleCodeExporter commented 8 years ago
Bug fixed by upgrading all depedencies to 2.2.0 version.

Original comment by frederic...@gmail.com on 1 Mar 2011 at 4:54

GoogleCodeExporter commented 8 years ago
I install gwt yesterday (mar 2) and i still have the problem. 

Using gxt api, we have the problem :  java.lang.IncompatibleClassChangeError: 
Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was 
expected

I assume it's the same problem, and i 've not found any depedencies yet.

Original comment by gutman.dv on 3 Mar 2011 at 3:00

GoogleCodeExporter commented 8 years ago
Most likely related to gxt not being compatible with GWT 2.2.

Original comment by philippe.beaudoin on 3 Mar 2011 at 4:15

GoogleCodeExporter commented 8 years ago
I just ran in to the same issue, "Caused by: 
java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected."
I just downloaded everything new -
1. eclipse-jee-helios-SR2-win32-x86_64
2. Java Version 1.6.0_23
3. Google Plugin for Eclipse 3.6, Ve 2.2.0.v201102111811
4. Google Web Toolkit SDK 2.2.0 2.2.0.v201102111811

I do not use GXT.

Any help would be appreciated.
Thanks
Sam Velu

Original comment by kool.v...@gmail.com on 11 Mar 2011 at 4:17

GoogleCodeExporter commented 8 years ago
The snapshot works with GWT 2.2. If you don't want to use a snapshot, I just 
released GWTP 0.5.1 compatible with GWT 2.2. You will need GIN 1.5.

Original comment by philippe.beaudoin on 11 Mar 2011 at 7:28

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have:
gwt 2.2.0
gwtp 0.6-SNAPSHOT
gxt 2.1.1
gin 1.5.0
mvp4g 1.3.1

maven does anybody know how I have to configure pom 
to resolv this issue 

[INFO]                Mvp4g Compilation: 0ms.
[INFO]    [ERROR] Errors in 
'jar:file:/D:/Users/Pero/.m2/repository/com/extjs/gxt/2.1.1/gxt-2.1.1.jar!/com/e
xtjs/gxt/ui/client/data/BeanModelLookup.java'
[INFO]       [ERROR]  Internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

Original comment by bijelija...@gmail.com on 6 Apr 2011 at 8:24

GoogleCodeExporter commented 8 years ago
You seem to have a version of mvp4g that isnt compatible with gwt 2.2.

Original comment by goudreau...@gmail.com on 6 Apr 2011 at 7:29

GoogleCodeExporter commented 8 years ago
PURE GWT APPLICATION WORKS

gwt-servlet-2.2.0.jar
gwt-user-2.2.0.jar
mvp4g-1.3.1.jar
gin-1.5.9.jar
guice-3.0-rc2.jar
javax.inect-1.jar
aopaliance-1.0.jar
guice-assistedinject-3.0-rc2.jar

Original comment by bijelija...@gmail.com on 7 Apr 2011 at 6:25

GoogleCodeExporter commented 8 years ago
Does someone have gwt-maps.jar compiled for 2.2? If so, please post.

Original comment by thesunsh...@gmail.com on 12 Apr 2011 at 8:11

GoogleCodeExporter commented 8 years ago
just compiled!

Original comment by graziano...@gmail.com on 15 Apr 2011 at 7:13

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks a lot! I'm sure people who need it appreciate very much.

Original comment by philippe...@arcbees.com on 15 Apr 2011 at 12:03

GoogleCodeExporter commented 8 years ago
love you

Original comment by Thomas.M...@gmail.com on 15 Apr 2011 at 3:50

GoogleCodeExporter commented 8 years ago
Thanks just what i needed and works perfect with GWT 2.2

Original comment by serat...@gmail.com on 16 Apr 2011 at 7:56

GoogleCodeExporter commented 8 years ago
Thanks a bunch mate! =)

Original comment by eliseu.m...@gmail.com on 5 May 2011 at 11:47

GoogleCodeExporter commented 8 years ago
wow i love u man!!!! what have you do?

Original comment by salasv...@gmail.com on 8 May 2011 at 2:15

GoogleCodeExporter commented 8 years ago
Hello, I have the same issue ("java.lang.IncompatibleClassChangeError: Found 
interface com.google.gwt.core.ext.typeinfo.JClassType, but class was 
expected"). But I don't know how to "recompile" gwt2.2 (actually I have 2.3 
SDK) Could anyone explain to me how to do this?? Thanks. Victor.-

Original comment by victorwj...@gmail.com on 30 May 2011 at 12:47

GoogleCodeExporter commented 8 years ago
I've had the same problems as outlined above, plus a few others. I got it 
sorted in the end but after some pain. Documented how I got GWT, Eclipse, 
Maven, and Gxt/Ext working together here:

https://sites.google.com/site/jeenigxt/gwt-ext-maven-and-eclipse

Thanks for your help guys.

Original comment by clevedon...@googlemail.com on 13 Jun 2011 at 8:32

GoogleCodeExporter commented 8 years ago
I've had the same problems as outlined above, plus a few others. I got it 
sorted in the end but after some pain. Documented how I got GWT, Eclipse, 
Maven, and Gwt/Ext working together here:

https://sites.google.com/site/jeenigxt/gwt-ext-maven-and-eclipse

Thanks for your help guys.

Original comment by clevedon...@googlemail.com on 13 Jun 2011 at 8:34

GoogleCodeExporter commented 8 years ago
Hi,

i am trying to integrate GWT and Applet but i m also getting same issue:
Using Gwt 2.2,and gwtAI make following error is coming :

   [ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at com.google.gwt.gwtai.applet.generator.AppletProxyGenerator.generate(AppletProxyGenerator.java:72)
    at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

please help me, thanks in advance  

Original comment by deepakku...@gmail.com on 21 Jun 2011 at 1:19

Attachments:

GoogleCodeExporter commented 8 years ago
 deepakku...@gmail.com, what I did whas donwload the version 2.2.0 in my local repository with this dependency: 
<dependency>
    <groupId>com.extjs</groupId>
    <artifactId>gxt</artifactId>
    <version>2.2.0</version>
</dependency>

Then I dowloaded separately the real latest version gxt-2.2.4 . 
And I rename this version to the 2.2.0 and I replaced in my local resositorio 
(.M2/com(extjs/2.2.0). 

This worked for me with 2.3.0 version of GWT.

I hope it works for you.

Bye.

Original comment by myguelr...@gmail.com on 27 Aug 2011 at 4:17

GoogleCodeExporter commented 8 years ago
graziano...@gmail.com, Apr 15, 2011
Even with GWT 2.4, the problem still persists. The google-gmaps.jar file here, 
really works. Google should fix this GWT Maps API issue.

Original comment by californ...@gmail.com on 16 Nov 2011 at 12:17