michalkawiak / gwtprojsonserializer

Automatically exported from code.google.com/p/gwtprojsonserializer
0 stars 0 forks source link

Compatiblity issue with GWT 2.2. com.google.gwt.core.ext.typeinfo.JClassType #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Configure GWT 2.2.0
2.Compile GWT or mvn install
3.

What is the expected output? What do you see instead?
Successful compilation.

However, I get following error
java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

What version of the product are you using? On what operating system?
1.0.3 / trunk / linux

Please provide any additional information below.
Apparently some classes changed in GWT 2.2 and you need to recompile your 
project with GWT 2.2. 

I've tried to compile your project with GWT 2.2, but run in other problems. 
Finally, I run into ClassNotFoundException for 
com.kfuntak.gwt.json.serialization.client.GWTProJsonSerializer while executing 
in Dev Environment.

Thanks for fixing that issue.
Kuno

Original issue reported on code.google.com by kuno.bae...@gmail.com on 13 Mar 2011 at 4:46

GoogleCodeExporter commented 9 years ago
This seems like a nice library, waiting for this issue to be fixed before I 
could use it :)

Original comment by AndyLamY...@gmail.com on 24 Mar 2011 at 8:30

GoogleCodeExporter commented 9 years ago
I am not able of reproducing the issue with the following configuration:

    gwt.version 2.1.1
    gwt-plugin.version 2.1.0-1
    gwtprojsonserializer.version 1.0.3

Can you please check in a sample project that fails?

Original comment by goo...@alishomepage.com on 25 Mar 2011 at 5:28

GoogleCodeExporter commented 9 years ago
you need to configure gwt 2.2. 
thanks
Kuno

Original comment by kuno.bae...@gmail.com on 26 Mar 2011 at 7:42

GoogleCodeExporter commented 9 years ago
OK, error seen with GWT 2.2.

Original comment by goo...@alishomepage.com on 27 Mar 2011 at 2:44

GoogleCodeExporter commented 9 years ago
I have done some trials and errors and for now I only get errors.

Any help would be reatly appreciated.

Original comment by goo...@alishomepage.com on 27 Mar 2011 at 3:47

GoogleCodeExporter commented 9 years ago
For all you guys complaining about incompatibility with GWT 2.2, if you just 
download the source and compile it against 2.2, you'll get a JAR that will work 
with GWT 2.2.0. I have already built it and tested it myself, not sure about 
the licensing and stuff. If it's OK with the guys here, i can attach it. Let me 
know.

Original comment by akjosh...@gmail.com on 7 Apr 2011 at 3:15

GoogleCodeExporter commented 9 years ago
It would be indeed great if you could give us the JAR as well as the modified 
source code. I'll also check it against GWT 2.0 and 2.1 and then probably ask 
for a new release.

Thank you

Original comment by goo...@alishomepage.com on 7 Apr 2011 at 4:57

GoogleCodeExporter commented 9 years ago
I've attached the Jar file, didn't modify any source code. Just changed POM.xml 
to compile it against GWT 2.2.0.
Let me know how it goes. Sorry for the delayed reply.

Original comment by akjosh...@gmail.com on 11 Apr 2011 at 6:40

Attachments:

GoogleCodeExporter commented 9 years ago
It is not working for me, it goes like:

Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:1.2:compile (default) 
on project gwtprojsonserializer: artifact not found - Failure to find 
com.google.gwt:gwt-dev:jar:mac:2.2.0 in http://repo1.maven.org/maven2 was 
cached in the local repository, resolution will not be reattempted until the 
update interval of central has elapsed or updates are forced

Original comment by goo...@alishomepage.com on 18 Apr 2011 at 6:27

GoogleCodeExporter commented 9 years ago
OK fixed all these errors and commited revision 130.

As of that revision, the serializer works with GWT 2.2 but does not work with 
GWT 2.1 anymore; we get messages like:

java.lang.IncompatibleClassChangeError: Found class 
com.google.gwt.core.ext.typeinfo.JClassType, but interface was expected
    at com.kfuntak.gwt.json.serialization.SerializationGenerator.generate(SerializationGenerator.java:57)
    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)

In my opinion, GWT 2.1 support should be dropped, and basta. If Google has 
decided that GWT 2.2 should break backwards compability, it's not our 
responsibility anymore!

Original comment by goo...@alishomepage.com on 18 Apr 2011 at 6:46

GoogleCodeExporter commented 9 years ago
both 1.0.3 & 1.0.4 are available for download. Homepage updated.

Original comment by remi.barraquand on 25 Apr 2011 at 10:16