Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium GWT Debugging #5830

Closed
dankurka opened this issue Jun 10, 2015 · 4 comments
Closed

Chromium GWT Debugging #5830

dankurka opened this issue Jun 10, 2015 · 4 comments
Assignees

Comments

@dankurka
Copy link
Member

Originally reported on Google Code with ID 5831

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

@dankurka
Copy link
Member Author

http://code.google.com/p/google-web-toolkit/issues/detail?id=5778

Reported by jdougla@basis.com on 2011-01-04 18:11:51

@dankurka dankurka self-assigned this Jun 10, 2015
@dankurka
Copy link
Member Author

OK thanks.

Reported by skalimer0 on 2011-01-07 07:12:09

@dankurka
Copy link
Member Author

Reported by rjrjr@google.com on 2011-10-07 17:04:49

@dankurka
Copy link
Member Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant