Closed GoogleCodeExporter closed 9 years ago
Found in Release: GWT 2.2.0
Platform: Windows 7
MapWidget won't initialize... Error:
java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.maps.client.impl.MapImpl' (did you forget to inherit a required
module?) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at
com.google.gwt.core.client.GWT.create(GWT.java:98) at
com.google.gwt.maps.client.impl.MapImpl.<clinit>(MapImpl.java:45) at
com.google.gwt.maps.client.MapWidget.<init>(MapWidget.java:253) at
samar.clientserver.webapps.portal.client.pages.vehicles.MakeDealers.<init>(MakeD
ealers.java:403) at
samar.clientserver.webapps.portal.client.pages.vehicles.MakeDealers.wrap(MakeDea
lers.java:356) at
samar.clientserver.webapps.portal.client.PortalEntryPoint.wrap(PortalEntryPoint.
java:109) at
samar.clientserver.webapps.portal.client.PortalEntryPointPro.wrap(PortalEntryPoi
ntPro.java:36) at commons.gwt.client.ui.WidgetUtils.wrap(WidgetUtils.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157
) at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForRetu
rn(BrowserChannelServer.java:326) at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:207) at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107
) at
samar.clientserver.webapps.portal.client.PortalEntryPoint.wrapWidgets(PortalEntr
yPoint.java) at
samar.clientserver.webapps.portal.client.PortalEntryPoint.onModuleLoad(PortalEnt
ryPoint.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java
:183) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelSe
rver.java:510) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source) Caused by:
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.j
ava:277) at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48
) at
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWr
apper.java:60) at
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(Stan
dardGeneratorContext.java:662) at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41) at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOrac
le.java:74) at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:2
59) at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:1
41) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585) at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at
com.google.gwt.core.client.GWT.create(GWT.java:98) at
com.google.gwt.maps.client.impl.MapImpl.<clinit>(MapImpl.java:45) at
com.google.gwt.maps.client.MapWidget.<init>(MapWidget.java:253) at
samar.clientserver.webapps.portal.client.pages.vehicles.MakeDealers.<init>(MakeD
ealers.java:403) at
samar.clientserver.webapps.portal.client.pages.vehicles.MakeDealers.wrap(MakeDea
lers.java:356) at
samar.clientserver.webapps.portal.client.PortalEntryPoint.wrap(PortalEntryPoint.
java:109) at
samar.clientserver.webapps.portal.client.PortalEntryPointPro.wrap(PortalEntryPoi
ntPro.java:36) at commons.gwt.client.ui.WidgetUtils.wrap(WidgetUtils.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157
) at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForRetu
rn(BrowserChannelServer.java:326) at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:207) at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107
) at
samar.clientserver.webapps.portal.client.PortalEntryPoint.wrapWidgets(PortalEntr
yPoint.java) at
samar.clientserver.webapps.portal.client.PortalEntryPoint.onModuleLoad(PortalEnt
ryPoint.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java
:183) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelSe
rver.java:510) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
Original comment by piotr.go...@gmail.com
on 14 Feb 2011 at 9:45
There is a binary incompatibility introduced in GWT 2.2 which causes problems
when linking against binary jars compiled with older GWT distributions.
http://code.google.com/p/google-web-toolkit/source/detail?spec=svn9733&r=9400
The workarounds are to use an older version of GWT or to re-compile
gwt-maps.jar from source.
http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource
Original comment by zundel@google.com
on 14 Feb 2011 at 3:16
Attached new jar created with GWT 2.2, solves the problem.
Original comment by parvez.c...@gmail.com
on 15 Feb 2011 at 1:12
Attachments:
[deleted comment]
[deleted comment]
Attached new search.jar created with GWT 2.2 (solves the similar search problem)
Original comment by nick%nil...@gtempaccount.com
on 18 Feb 2011 at 10:09
Attachments:
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Thanks for posting the Jar, but someone should really update the standard
gwt-maps.jar since it no longer works with GWT. I think this issue should be
marked with "Priority-High" given that it completely breaks Maps in GWT 2.2.
Original comment by scott@selikoff.net
on 8 Mar 2011 at 6:29
I realize this is a big problem for those using GWT 2.2. Due to this binary
incompatibility, The next release of gwt-maps will only support GWT 2.2+.
Original comment by zundel@google.com
on 8 Mar 2011 at 7:13
Hello,
I guess there are a lot of applications built with GWT versions prior to
2.2. Such applications would benefit from any bugfix releases of gwt-maps or
other google api libraries.
Besides if newer release of gwt-maps don't directly depend on features provided
by GWT 2.2+ I can't see any reason why you should drop support for prior
versions of GWT.
I suggest you at least follow the path taken by google-gin (2 jars, one for
each version). This seems like the best option for now, till the dust from the
binary incompatibility settles down.
Otherwise you 'll make the upgrade path for the rest of us, time consuming,
error prone (as we 'll have to upgrade a lot more artifacts at once instead of
incrementally) and thus painful.
Hopefully I voice the opinion of other developers as well and that you are
willing to consider this option as well.
-fotos
Original comment by gfo...@gmail.com
on 8 Mar 2011 at 8:59
[deleted comment]
Thank you branflak.... the attached "gwt-maps" working for me...
Original comment by saikrris...@gmail.com
on 9 Mar 2011 at 8:20
I have to agree, it is unrealistic to make the maps 2.2 + only.
Original comment by john.d.r...@gmail.com
on 9 Mar 2011 at 8:51
[deleted comment]
I think this brings to light a greater flaw in the GWT 2.2 update. If you
upgrade to GWT 2.2, your plug-ins must *all* be updated to newer versions.
Alternatively, if you choose not to upgrade to GWT 2.2 at this time, you can no
longer download *any* new plug-in releases.
Granted, there are exceptions, such as plug-in developers who will release
multiple binary files, etc. Overall, this makes GWT 2.2 a bigger impact
release on existing code bases than the upgrade from GWT 1 to GWT 2. I
sincerely hope Google takes backwards compatibility into consideration in
future GWT releases and reduces the occurrence of such large impact upgrades.
Original comment by scott@selikoff.net
on 9 Mar 2011 at 10:10
Issue 456 has been merged into this issue.
Original comment by zundel@google.com
on 11 Mar 2011 at 1:15
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
gwt-search.jar for(gwt 2.2.0, compiled in this post) is not working...
Error:
java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.search.client.impl.GdrawOptions' (did you forget to inherit a
required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.google.gwt.search.client.SearchControlOptions.<init>(SearchControlOptions.java:32)
at com.pwigo.client.Pwigo.onModuleLoad(Pwigo.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
... 12 more
Original comment by dto...@gmail.com
on 21 Mar 2011 at 1:08
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Today I've uploaded a new set of release candidate downloads for all 7
libraries. The Maps library is unchanged (just renamed it) The
visualization library rolls in a pending fix for issue 446 in the
issue tracker (NPE in OnMouseOver events on charts)
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-ajaxloader-1.
1.1-rc1.zip
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-gadgets-1.2.1
-rc1.zip
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-gears-1.3.1-r
c1.zip
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-language-1.1.
1-rc1.zip
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-maps-1.1.1-rc
1.zip
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-search-1.1.1-
rc1.zip
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-visualization
-1.1.2-rc2.zip
There have only been a few downloads and I haven't had much feedback.
I'm going to leave these up for a week or so, and if no one reports
problems, I'll promote them to full release status.
There is unlikely to be another release of gwt-maps(v2), gwt-gears and
gwt-search because the underlying JS APIs are now deprecated.
Original comment by zundel@google.com
on 14 May 2011 at 3:20
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
I've downloaded gwt-gadgets-1.2.1-rc1.zip and tried it against GWT 2.3. I still
get the same error:
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator.java:475)
at com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java:93)
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:681)
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:285)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:274)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:513)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:538)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:492)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:405)
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)
Original comment by fabrice....@gmail.com
on 25 May 2011 at 9:01
If you have any other jar files on your class path that were compiled against
an old version of GWT, you'll have the same issue. I had to go in and make
sure that 'gwt-servlet.jar' was cleaned and re-populated from war/WEB-INF/lib
in the BUILD files.
Let us know if that helps.
Original comment by zundel@google.com
on 25 May 2011 at 9:09
[deleted comment]
[deleted comment]
Sorry for the delay. I want to promote them all at the same time. I don't
think the maps API will change but the gadgets API has a fatal flaw. I need to
add script tag support back or document a workaround.
Original comment by zundel@google.com
on 31 May 2011 at 12:40
[deleted comment]
Hi all,
Any news ? When can we expect having the gadgets API working with GWT 2.3 ?
Thanks
Original comment by fabrice....@gmail.com
on 29 Jun 2011 at 10:48
The script injector patch just landed yesterday in GWT 2.4.
Original comment by zundel@google.com
on 29 Jun 2011 at 11:13
Means the gadgets API will "only" be compatible with GWT 2.4 ? Not really a big
problem if the release date is not too far from now...
Original comment by fabrice....@gmail.com
on 29 Jun 2011 at 11:59
The latest RC1 release of google-maps.jar works with GWT 2.3.0.
Original comment by sunitkat...@gmail.com
on 18 Jul 2011 at 11:17
I was also having same problem while working with GWT 2.3.x.
gwt-maps.jar attached here in the thread works fine.
Thanks a lot.
Original comment by ashishmt...@gmail.com
on 20 Sep 2011 at 12:50
Original issue reported on code.google.com by
branflak...@gmail.com
on 12 Feb 2011 at 9:43