GWT 2.2 and gwt-maps.jar not compatible

634 views
Skip to first unread message

pac

unread,
Feb 13, 2011, 5:34:43 PM2/13/11
to Google Web Toolkit
Just upgraded to GWT 2.2 and getting in error in project compilation,
looks gwt-maps library no longer compatible.
Do I need something to make it work?


[ERROR] Errors in 'jar:file:/myproject/war/WEB-INF/lib/gwt-
maps.jar!/com/google/gwt/maps/client/impl/InfoWindowImpl.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:
277)
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)

Jeff Larsen

unread,
Feb 14, 2011, 8:48:20 AM2/14/11
to google-we...@googlegroups.com
You probably need to check out gwt-maps.jar and recompile the source with gwt 2.2 instead of previous versions. There were some internal changes to generator classes and some old libraries will be binary incompatible with 2.2. 

dilbert

unread,
Feb 14, 2011, 9:29:24 AM2/14/11
to google-we...@googlegroups.com
True. You can go here:
and follow the instructions to rebuild the maps with GWT 2.2. After the build you will get a .../maps/build/lib/ directory with the gwt-maps.jar inside.

roger7467

unread,
Feb 14, 2011, 10:39:00 AM2/14/11
to Google Web Toolkit
I have the same problem since I updated to 2.2.
I reinstalled everything, but nothing changed.

Miroslav Genov

unread,
Feb 14, 2011, 10:44:49 AM2/14/11
to google-we...@googlegroups.com
You made a new build of gwt-maps ? 

Aurelian

unread,
Feb 14, 2011, 11:52:40 AM2/14/11
to Google Web Toolkit
For me it worked !!

Eric Ayers

unread,
Feb 14, 2011, 11:52:56 AM2/14/11
to google-we...@googlegroups.com
FYI, I updated an issue in the issue tracker on this problem:

http://code.google.com/p/gwt-google-apis/issues/detail?id=447


On Mon, Feb 14, 2011 at 10:44 AM, Miroslav Genov <mge...@gmail.com> wrote:
> You made a new build of gwt-maps ?
>

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

--
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

pac

unread,
Feb 14, 2011, 8:15:22 PM2/14/11
to Google Web Toolkit
Thanks dilbert, that worked.
Built new jar, also attached here http://code.google.com/p/gwt-google-apis/issues/detail?id=447
may help some other people.

culov

unread,
Mar 15, 2011, 12:25:48 AM3/15/11
to Google Web Toolkit
This problem here. Is there a solution to this?

Juan Pablo Gardella

unread,
Mar 15, 2011, 9:24:28 AM3/15/11
to google-we...@googlegroups.com
Compile the sources with gwt 2.2


2011/3/15 culov <cul...@gmail.com>

André Nunes

unread,
Jul 26, 2011, 9:20:07 PM7/26/11
to Google-We...@googlegroups.com
Hi, how i can rebuild gwt-maps ?? I using gwt 2.3, what version of gwt-maps i
should use ?
tkxs !

Alexander Bertram

unread,
Jul 28, 2011, 5:46:21 PM7/28/11
to Google Web Toolkit
I had the same issue, you can download from here:
You can download it from
http://nexus.bedatadriven.com/content/repositories/thirdparty/com/google/gwt/google-apis/gwt-maps/1.1.0/

If you use maven/ivy you can add it so:


<dependency>
<groupId>com.google.gwt.google-apis</groupId>
<artifactId>gwt-maps</artifactId>
<version>1.1.0</version>
<classifier>gwt23</classifier>
<scope>provided</scope>
</dependency>

<repositories>
<repository>
<id>bedatadriven-public</id>
<name>Bedatadriven Public Repo</name>
<url>http://nexus.bedatadriven.com/content/groups/public</
url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

Carlisle Henning

unread,
Jul 30, 2011, 10:15:31 PM7/30/11
to Google Web Toolkit
Thanks Alexander Bertram

On Jul 29, 7:46 am, Alexander Bertram <a...@bedatadriven.com> wrote:
> On Jul 27, 3:20 am, André Nunes <an...@hotmail.com> wrote:
>
> > Hi, how i can rebuild gwt-maps ?? I using gwt 2.3, what version of gwt-maps i
> > should use ?
> > tkxs !
>
> I had the same issue, you can download from here:
> You can download it fromhttp://nexus.bedatadriven.com/content/repositories/thirdparty/com/goo...
Reply all
Reply to author
Forward
0 new messages