What this exception means is that the same JavaScript object has been
attempted to be 'wrapped' more than once by the JSIO library used in the
Maps API to interface with JavaScript.

One divergence between the Maps JavaScript API and the GWT bindings to the
API is that in the Maps API, there is one info window per map.  The GWT
bindings make it seem as though you can make as many info window objects as
you like, but in fact, there is only one underneath.  I can see how this
might cause a problem.

Can you reproduce this in a small complete sample showing both adds?
 Besides the InfoWindow thing I just mentioned, I'm wondering what "Grid"
is, as you're passing it as a parameter to construct the info window.  Also,
make sure to step through the code to see if it is crashing in info.open()
somewhere or within the constructor for InfoWindowContent.

-Eric.

On Mon, Jan 11, 2010 at 11:03 AM, morfeusys <morfeu...@gmail.com> wrote:

> Hi. I found next problem with my gwt-maps based project.
> I use several map components on one page. The both components are in
> pop-up windows. The both components should provide handler for on map
> click event.
> When the first map component initialized - everything works ok. But
> when the second tries to add onclick handler - the runtime error
> occurs:
>
> Deferred binding failed for
> 'com.google.gwt.maps.client.impl.EventImpl' (did you forget to inherit
> a required module?)
>
> Stack trace:
>
> com.google.gwt.maps.jsio.client.MultipleWrapperException: null
>    at
>
> com.google.gwt.maps.jsio.client.impl.JSONWrapperUtil.throwMultipleWrapperException
> (JSONWrapperUtil.java:169)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    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)
> ...
>
> My code is:
>
> ...
> Grid grid = new Grid(4, 2);
> Marker marker = new Marker(point);
> map.addOverlay(marker);
> InfoWindow info = map.getInfoWindow();
> info.open(marker, new InfoWindowContent(grid));
> ...
>
> The program crashes on line "info.open(marker, new InfoWindowContent
> (grid));". The interesting thing is that if I change the order of
> initialization of first and second map components in pop-up windows,
> the problem occurs only on those component which was initialized last.
>
> Has anybody seen such problem?
> Thanks.
>
> --
> 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-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@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
--
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-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to