Everything worked fine in the previous versions, but once I upgraded,
GWT in IE hosted mode threw the following exception when I interact
with any of the infowindows in the map:
com.google.gwt.dev.shell.HostedModeException: Calling method
'onClick': JavaScript undefined, expected
com.mapitz.gwt.googleMaps.client.JSObject
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:101)
at
com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
57)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
119)
at
com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:
150)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
293)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
196)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:689)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:550)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:321)
In hosted mode, some markers are not able to receive the onClick
events as well....
However, everything works fine in web mode. Anyone else encountered
the same issue?
Kind Regards,
A. Laforge
On Jun 2, 9:25 am, searchHouse <chueny...@gmail.com> wrote:
> I just downloaded the latest GWT 1.4 RC1 and upgraded to Aglaforge's
> googlemaps_gwt_2_1_4___4gwt1.4.jar as well.
>
> Everything worked fine in the previous versions, but once I upgraded,
> GWT in IE hosted mode threw the following exception when I interact
> with any of the infowindows in the map:
>
> com.google.gwt.dev.shell.HostedModeException: Calling method
> 'onClick': JavaScript undefined, expected
> com.mapitz.gwt.googleMaps.client.JSObject
> at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:101)
> at
> com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
There is no error in safari itself (and I'm developing on a mac, so my
version of hosted mode is a safari variant), so it looks like a very
similar situation.
Here's the full dump, which is similar, but different:
[ERROR] Uncaught exception escaped
com.google.gwt.dev.shell.HostedModeException:
invokeNativeInteger(@com.google.gwt.user.client.impl.DOMImpl::eventGetKeyCode(Lcom/
google/gwt/user/client/Event;)): JavaScript undefined, expected
java.lang.Integer
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:101)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:
233)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:
97)
at
com.google.gwt.user.client.impl.DOMImpl.eventGetKeyCode(DOMImpl.java:
80)
at com.google.gwt.user.client.DOM.eventGetKeyCode(DOM.java:435)
at
com.google.gwt.user.client.ui.CustomButton.onBrowserEvent(CustomButton.java:
577)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1211)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1194)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1161)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/6af0911bea9f4bc4
i am using the googlemaps_gwt_2_1_4 on linux and get the same
exception in host mode. Is there a workaround or a svn version which
solves the problem?
best regards
qpid
On 20 Jun., 01:11, Reinier Zwitserloot <reini...@gmail.com> wrote:
> Referenced this on -Contributors here:
>
> http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse...
Aglaforge here is the code I am using to get the error:
public void addMarkersToMap(ArrayList rides)
{
for (int i = 0; i < rides.size(); i++)
{
ArrayList routepts = ((Ride) rides.get(i)).getRoute();
if (routepts.size()<0)
{
return;
}
GMarker marker = new GMarker(new GLatLng(((LatLon)
routepts.get(0)).getLat(), ((LatLon) routepts.get(0)).getLon()));
GMarkerEventManager markerEventManager =
GMarkerEventManager.getInstance();
markerEventManager.addOnClickListener(marker, new
MarkerClickListener((Ride)rides.get(i)));
rideMarkers.add(marker);
}
gmaps.addOverlay(rideMarkers);
}
private class MarkerClickListener implements
GMarkerEventClickListener
{
Ride ride;
public MarkerClickListener(Ride _ride)
{
ride = _ride;
}
public void onClick(GMarker marker)
{
RideInfoWindow window = new RideInfoWindow(ride);
marker.openInfoWindow(window);
}
public void onDblClick(GMarker marker)
{
// TODO Auto-generated method stub
}
}
Hopefully I have included enough code to make it useful.
My stack trace is identical to searchHouse's.
Thanks
blizzard