You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application with Timer() to display date/time on the page like this:
...
final int REFRESH_INTERVAL = 1000;
final Label displayDate = new Label();
Timer refreshTimer = new Timer() {
public void run() {
Date today = new Date();
displayDate.setText(DateTimeFormat.getFormat("EEEE d MMMM y HH:mm:ss").format(today));
}
};
refreshTimer.scheduleRepeating(REFRESH_INTERVAL);
refreshTimer.run();
...
I Use GWT 2.1.1 on Eclipse Helios with all Updated plugins.
IE 6.0 : OK
Firefox 3.5.15 : OK
Chromium 10.0.628.0 (70409) : ERROR
I have no problem on IE and Firefox to run my app, but on Chromium i have this error
:
onModuleLoad() threw an exception
Exception while loading module fr.example.test. See Development Mode for details.
java.lang.reflect.InvocationTargetException
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.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(Thread.java:662)
Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than an int
was returned from JSNI method '@com.google.gwt.user.client.Timer::createInterval(Lcom/google/gwt/user/client/Timer;I)':
JS value of type JavaScript object(163), expected int
at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75)
at com.google.gwt.user.client.Timer.createInterval(Timer.java)
at com.google.gwt.user.client.Timer.scheduleRepeating(Timer.java:126)
Reported by skalimer0 on 2011-01-04 08:57:30
The text was updated successfully, but these errors were encountered:
@skalim..., If you're able to reproduce this reliably could you join the discussion
on issue 5777? It would be particularly interesting to know if you have any odd flags
or plugins set on Chrome
Reported by rjrjr@google.com on 2011-10-07 17:06:03
Originally reported on Google Code with ID 5831
Reported by
skalimer0
on 2011-01-04 08:57:30The text was updated successfully, but these errors were encountered: