rickilama54 / gwt-comet

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

Compatibility problem with GWT-2.2.0 #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update Google Plugin for Eclipse at version 2.2.0
2. Execute a GWT Compilation

What is the expected output? What do you see instead?
Expected: Correct compilation
Instead: Compilation error. Here the error message:

[ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at net.zschech.gwt.comet.rebind.CometSerializerGenerator.generate(CometSerializerGenerator.java:63)
    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 net.zschech.gwt.comet.rebind.CometSerializerGenerator.generate(CometSerializerGenerator.java:63)
    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?
gwt-comet 1.2.1
smartgwt 2.4
windows 7 professional

Please provide any additional information below.

Original issue reported on code.google.com by larosaan...@gmail.com on 14 Feb 2011 at 9:16

GoogleCodeExporter commented 9 years ago
From what I understand of the problem, it will go away once you recompile from 
source. The bytecode is incompatible.

Original comment by NathanRobinson@gmail.com on 17 Feb 2011 at 6:38

GoogleCodeExporter commented 9 years ago
No, it will not. Current java code of gwt-comet is not compatible with GWT-2.2.

Original comment by m.zd...@gmail.com on 17 Feb 2011 at 7:44

GoogleCodeExporter commented 9 years ago
It seems to work for me after making the changes in attached patch.  The patch 
is against r159 (1.2.1).  Hope it helps.

Original comment by julian...@gmail.com on 18 Feb 2011 at 7:19

Attachments:

GoogleCodeExporter commented 9 years ago
The patch works. Thanks!

Original comment by m.zd...@gmail.com on 28 Feb 2011 at 8:28

GoogleCodeExporter commented 9 years ago
Hello

How do I get this patch?  I just checked out from 
http://gwt-comet.googlecode.com/svn/trunk and don't see any updates since 
1/4/11.
Also I downloaded the latest 1.2.1 jar and still seeing the issue.

Thanks

Original comment by wen...@openfin.co on 28 Feb 2011 at 3:20

GoogleCodeExporter commented 9 years ago
The patch is attached in the Comment 3. Checkout the sources from the trunk, 
apply the patch and compile it.

Original comment by m.zd...@gmail.com on 28 Feb 2011 at 5:56

GoogleCodeExporter commented 9 years ago
Fixed version 1.2.2

Original comment by rich...@zschech.net on 15 Mar 2011 at 10:28