Hi
I hope someone can explain this to me - it looks like the latest
version of Chrome doesn't work with GWT.
Chrome updated itself to 10.0.612.1 and immediately my project fails
to load:
com.google.gwt.dev.shell.HostedModeException: Something other than a
boolean was returned from JSNI method
'@com.google.gwt.user.client.impl.HistoryImplTimer::init()': JS value
of type JavaScript object(1), expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
186)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:
35)
at
com.google.gwt.user.client.impl.HistoryImplTimer.init(HistoryImplTimer.java)
at com.google.gwt.user.client.History.<clinit>(History.java:63)
at
com.mechnicality.mollycore.client.HistoryWrapper.addValueChangeHandler(HistoryWrapper.java:
22)
at
com.mechnicality.mollyweb.client.MollyGWTApp.bind(MollyGWTApp.java:
276)
Which appears to relate to:
public class History {
private static HistoryImpl impl;
static {
impl = GWT.create(HistoryImpl.class);
if (!impl.init()) {
// Set impl to null as a flag to no-op future calls.
impl = null;
// Tell the user.
GWT.log("Unable to initialize the history subsystem; did you "
+ "include the history frame in your host page? Try "
+ "<iframe src=\"javascript:''\" id='__gwt_historyFrame' "
+ "style='position:absolute;width:0;height:0;border:0'>"
+ "</iframe>");
}
}
and the init() method is:
public native boolean init() /*-{
var token = '';
// Get the initial token from the url's hash component.
var hash = $wnd.location.hash;
if (hash.length > 0) {
token =
[email protected]::decodeFragment(Ljava/
lang/String;)(hash.substring(1));
}
@com.google.gwt.user.client.impl.HistoryImpl::setToken(Ljava/lang/
String;)(token);
var historyImpl = this;
$wnd.onhashchange = $entry(function() {
var token = '', hash = $wnd.location.hash;
if (hash.length > 0) {
token =
[email protected]::decodeFragment(Ljava/
lang/String;)(hash.substring(1));
}
[email protected]::newItemOnEvent(Ljava/
lang/String;)(token);
});
return true;
}-*/;
I tried updating from 2.1.0 to 2.1.1 and that makes no difference.
Regards
Alan
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.