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

Chrome 10.0.612.1 dev breaks GWT DevMode #5777

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

Chrome 10.0.612.1 dev breaks GWT DevMode #5777

dankurka opened this issue Jun 10, 2015 · 101 comments

Comments

@dankurka
Copy link
Member

@dankurka dankurka commented Jun 10, 2015

Originally reported on Google Code with ID 5778

Found in GWT Release (e.g. 1.5.3, 1.6 RC):

GWT 2.1.0, 2.1.1

Encountered on OS / Browser (e.g. WinXP, IE6-7, FF3):

Win 7 64bit, Chrome 10.0.612.1 (Build 69289) dev, Eclipse 3.5, Development mode

Detailed description (please be as specific as possible):

Create a new GWT project and run it in Development mode, open the URL in Chrome dev,
warnings appear in the console:

[WARN] [visapienzadbcreator] JSNI method '@com.google.gwt.user.client.impl.WindowImpl::initWindowCloseHandler()'
returned a value of type JavaScript object(9) but was declared void; it should not
have returned a value at all
[WARN] [visapienzadbcreator] JSNI method '@com.google.gwt.user.client.impl.DOMImplStandard::initEventSystem()'
returned a value of type JavaScript object(38) but was declared void; it should not
have returned a value at all

Application stop working.

Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result):

Use the New Web Application Project template.

Workaround if you have one:

Use another browser or Chrome Stable/Beta.
Problems may be caused by the WebKit update (534.15)

Links to relevant GWT Developer Forum posts:

None

Reported by f.rapana on 2010-12-18 17:26:58

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

found via/see also http://stackoverflow.com/questions/4454939/google-web-toolkit-starter-application-not-working

Reported by antony.trupe on 2010-12-19 20:20:40

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

re: "Problems may be caused by the WebKit update"

This is more likely to be related to the recent integration of Crankshaft into Chromium.
 The problem is not apparent in the current nightly build of WebKit.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d6172b553c6f3a1d#

Incidentally, the issue description kind of buries the lead by just mentioning the
warning messages.  A better description would be something like "Chrome 10.0.612.1
dev breaks GWT DevMode".

Reported by jdougla@basis.com on 2010-12-19 21:47:02

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

ahhhadu

Reported by avatarin.2012 on 2010-12-20 07:56:30

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Reported by conroy@google.com on 2010-12-20 16:13:33

  • Status changed: Accepted
@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Reported by conroy@google.com on 2010-12-20 16:14:48

  • Labels added: Category-DevPlugin, Type-Defect
@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Please fix this soon. Developers are googles friends!

Reported by funkforce on 2010-12-20 17:42:42

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Reported by jat@google.com on 2010-12-20 19:43:23

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

There is also a full stop using the GWT Timer class on a JSNI call getting a non-int
return value.

Reported by kebernet on 2010-12-21 00:51:58

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

As a sanity check, could you check if it is still a problem in 

Chrome 10.0.612.3 (Official Build 69636) dev

which is being rolled out to users as we speak. An issue that broke quite a lot of
sites has been fixed in this new version. 

Reported by ager@google.com on 2010-12-21 07:38:55

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Still present in 10.0.612.3 (Official Build 69636) dev

Reported by f.rapana on 2010-12-21 08:04:55

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Retested with 10.0.612.3 dev on Mac OS X 10.6.5.  No change from 10.0.612.1; I get the
following warning messages on load:

00:01:44.733 [WARN] JSNI method '@com.basis.bbj.web.gwt.client.GWTRPCServlet_TypeSerializer::registerMethods()'
returned a value of type JavaScript object(3) but was declared void; it should not
have returned a value at all
00:01:44.752 [WARN] JSNI method '@com.basis.bbj.web.gwt.client.GWTRPCServlet_TypeSerializer::registerSignatures()'
returned a value of type JavaScript object(4) but was declared void; it should not
have returned a value at all
00:01:44.820 [WARN] JSNI method '@com.google.gwt.user.client.Cookies::loadCookies(Ljava/util/HashMap;)'
returned a value of type JavaScript object(8) but was declared void; it should not
have returned a value at all
00:01:44.882 [WARN] JSNI method '@com.google.gwt.xhr.client.XMLHttpRequest::setOnReadyStateChange(Lcom/google/gwt/xhr/client/ReadyStateChangeHandler;)'
returned a value of type JavaScript object(11) but was declared void; it should not
have returned a value at all
00:01:44.882 [WARN] JSNI method '@com.google.gwt.xhr.client.XMLHttpRequest::setOnReadyStateChange(Lcom/google/gwt/xhr/client/ReadyStateChangeHandler;)'
returned a value of type JavaScript object(11) but was declared void; it should not
have returned a value at all

* GWTRPCServlet is:
@RemoteServiceRelativePath("gwtrpcservlet")
public interface GWTRPCServlet extends RemoteService

Reported by jdougla@basis.com on 2010-12-21 09:16:40


- _Attachment: Chrome10.0.612.3dev.png
![Chrome10.0.612.3dev.png](https://storage.googleapis.com/google-code-attachments/google-web-toolkit/issue-5778/comment-11/Chrome10.0.612.3dev.png)_
@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

10.612.3 still gives the same problem in dev mode:


06:02:01.042 [ERROR] [mollywebgwt] Unable to load module entry point class com.mechnicality.mollyweb.client.MollyWebGWT
(see associated exception for details)
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(6), 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.mollycore.client.BaseApplicationController.bind(BaseApplicationController.java:38)
    at com.mechnicality.mollyweb.client.MollyGWTApp.bind(MollyGWTApp.java:284)
    at com.mechnicality.mollyweb.client.MollyGWTApp.run(MollyGWTApp.java:464)
    at com.mechnicality.mollyweb.client.MollyGWTApp.run(MollyGWTApp.java:503)
    at com.mechnicality.mollyweb.client.MollyWebGWT.onModuleLoad(MollyWebGWT.java:27)
    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:619)

Reported by alanattcc on 2010-12-21 14:06:19

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

19:56:12.308 [WARN] [egrportal3_5] JSNI method '@com.google.gwt.xhr.client.XMLHttpRequest::setOnReadyStateChange(Lcom/google/gwt/xhr/client/ReadyStateChangeHandler;)'
returned a value of type JavaScript object(3) but was declared void; it should not
have returned a value at all

Browser: Chrome 10.0.612.3 dev

my application is stopped with this warning. But in IExplorer8 i have no error or warnings...
Clausing with try-catch do not fixed this. What i must do for running my application
in Chrome?

Reported by neo.bsuir on 2010-12-25 18:05:08

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

neo.bsuir -- switch to the beta or stable version of Chrome until this incompatibility
between GWT DevMode and Chrome is sorted out.

Reported by jdougla@basis.com on 2010-12-25 18:24:42

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

You'd think this would be included in release regression testing. 
Is anybody awake at the googleplex?

Reported by jhowe321 on 2010-12-26 05:54:34

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Doesn't work with firefox either? This time yet different problem...

Initializing AppEngine server
Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Successfully processed C:\Users\jhowe\workspace\SportzCasterAlpha3a\war\WEB-INF/appengine-web.xml
Successfully processed C:\Users\jhowe\workspace\SportzCasterAlpha3a\war\WEB-INF/web.xml
The server is running at http://localhost:8888/
Connection received from 127.0.0.1:49623
   [ERROR] Invalid version number "2.1.1" passed to external.gwtOnLoad(), expected
"2.1"; your hosted mode bootstrap file may be out of date; if you are using -noserver
try recompiling and redeploying your app
[WARN] No file found for: /favicon.ico

Reported by jhowe321 on 2010-12-26 05:58:57

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

It works with Safari on Mac but I couldn't get it work with the Chrome :(

Reported by re.shojaei on 2011-01-03 06:11:21

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Problem of error due to Window.setInterval returning a JSObject instead of an int (Issue
5830) and warnings described at start of this issue still exist in 10.0.628.0 (70486).
The problem was introduced sometime subsequent to build 66100.

Since the GWT plug-in is not compatible with Firefox 4.0 and I am working on WebGL
stuff, I have no alternative but Chrome so this is a complete showstopper for me. Please
fix it.

Reported by google@erewhon0.net on 2011-01-05 06:31:38

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

As workaround you can download and unzip old version of chromium (http://build.chromium.org/f/chromium/snapshots/chromium-rel-xp/66224/
- it works for me) and run it with custom data dir, e.g. command line argument --user-data-dir=/some/dir/
and use it for dev mode (standard dev channel chrome installation - for everything
else).

Reported by 1.Plamen on 2011-01-05 09:04:52

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Thanks for the tip. That is what I am doing. However the WebGL implementation keeps
marching on and I need to be using the latest Chrome to get the latest WebGL. I sure
hope this problem is fixed soon.

I doubt GWT is the only victim of this bug. Other applications are not likely to behave
very well when a JSObject is returned instead of an int.

Reported by google@erewhon0.net on 2011-01-05 09:12:45

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

FWIW, still broken with 10.0.634.0 dev.

Reported by jdougla@basis.com on 2011-01-12 00:50:13

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Also broken on:
10.0.636.0 (71137) Built on Ubuntu 10.04, running on Debian 6.0

Reported by Pavel.Tavoda on 2011-01-12 12:46:58

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

See http://gwt-code-reviews.appspot.com/1277801/show

Reported by t.broyer on 2011-01-12 13:30:28

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Issue 5771 has been merged into this issue.

Reported by conroy@google.com on 2011-01-12 15:30:46

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

fixed by http://code.google.com/p/google-web-toolkit/source/detail?r=9525

update site should go live later today.

Reported by conroy@google.com on 2011-01-12 22:49:02

  • Status changed: Fixed
@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Is this the same problem? I see it in Chrome 14.0.835.186 with GWT 2.4.0:

Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than a short
was returned from JSNI method '@com.google.gwt.dom.client.Node::getNodeType()': JS
value of type null, expected short
    at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
    at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:154)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeShort(ModuleSpace.java:279)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeShort(JavaScriptHost.java:99)
    at com.google.gwt.dom.client.Node$.getNodeType$(Node.java)
    at com.google.gwt.dom.client.Element$.is(Element.java:76)
    at com.google.gwt.dom.client.Element$.is(Element.java:65)
    at com.google.gwt.user.client.ui.PopupPanel.eventTargetsPopup(PopupPanel.java:1160)
    at com.google.gwt.user.client.ui.PopupPanel.previewNativeEvent(PopupPanel.java:1332)
    at com.google.gwt.user.client.ui.PopupPanel.access$11(PopupPanel.java:1313)
    at com.google.gwt.user.client.ui.PopupPanel$3.onPreviewNativeEvent(PopupPanel.java:1425)
    at com.google.gwt.user.client.Event$NativePreviewEvent.dispatch(Event.java:195)
    at com.google.gwt.user.client.Event$NativePreviewEvent.dispatch(Event.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at com.google.gwt.user.client.Event$NativePreviewEvent.fire(Event.java:87)
    at com.google.gwt.user.client.Event$NativePreviewEvent.access$4(Event.java:73)
    at com.google.gwt.user.client.Event$.fireNativePreviewEvent(Event.java:488)
    at com.google.gwt.user.client.DOM.previewEvent(DOM.java:1328)
    at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
    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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
    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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
    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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:662)

Reported by volgin@spiraluniverseinc.com on 2011-09-22 03:51:26

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Now I see a trace very similar to the ones posted in December 2010. It seems like this
issue is back. I did not have it before upgrading to GWT 2.4.0 or Chrome 14 - not sure
which upgrade has caused it. This exception appears after an application sits idle
for 15-30 minutes. It does not crash it, but it keeps popping up.

java.lang.IllegalArgumentException: Something other than a Java object was returned
from JSNI method '@com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)':
JS value of type boolean, expected java.lang.Object
    at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
    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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:662)

Reported by volgin@spiraluniverseinc.com on 2011-09-22 06:44:06

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

The problem is still present in chrome version  
19.0.1084.1 dev-m

Reported by yves.konen on 2012-04-06 21:30:23

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

I've been having these problems with Chrome for months (see post back in Oct).

I've given up on Chrome to do my development.  Switched to OmniWeb (on a mac).  It
works, and in dev mode it's much much quicker than Chrome......

Reported by iandstephenson on 2012-04-10 13:37:56

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

This seems to be happening frequently in the current production release of Chrome as
well (its not just the chrome dev version)..can we expect a fix in the next release

Reported by pradeepbpillai on 2012-04-25 05:37:11

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

I am using GWT 2.4 chrome version 18.0.1025.165 .... i am frequently seeing these kind
of JS IllegalArgumentExceptions.

Reported by pradeepbpillai on 2012-04-25 05:40:37

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

I see the exception on the the Compiled App as well..its not just in DevMode

Reported by pradeepbpillai on 2012-04-25 05:44:08

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

@pradeepbpillai - if you are seeing these particular errors, you aren't running the
compiled app.  You might have other IllegalArgumentExceptions, but not these.

Reported by jat@google.com on 2012-04-25 19:30:52

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

@jat  these are the kind of errors i'm seeing(i have pasted below)...the errors look
similar to what have been posted here...

I am not using any JSNI code on my own....the only thing I'm using is RequestFactory
--there might be some   chance it is related to the request factory internals (I am
not sure if its related to the history handler , i'm using activities & places)

But so far the exceptions look almost similar to the issues  posted here for this bug

Usually GWT releases are pretty stable but these errors are worrying me


SEVERE:  : invoke arguments: JS value of type boolean, expected java.lang.String -



 STACKTRACE : com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:65)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
java.lang.Thread.run(Thread.java:680)
 from sourceClassjava.lang.IllegalArgumentExceptionwith exception java.lang.IllegalArgumentException:
invoke arguments: JS value of type boolean, expected java.lang.String

Reported by pradeepbpillai on 2012-04-26 02:49:34

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

The following is the other error i get and this seems like its more related to request
factory
and I dont know why its happening


One or more exceptions caught, see full set in UmbrellaException#getCauses - 
 CAUSE java.lang.IllegalArgumentException: Something other than a Java object was returned
from JSNI method '@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext$Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/AbstractAutoBean;Ljava/lang/String;)':
JS value of type boolean, expected java.lang.Object
java.lang.IllegalArgumentException: Something other than a Java object was returned
from JSNI method '@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext$Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/AbstractAutoBean;Ljava/lang/String;)':
JS value of type boolean, expected java.lang.Object
 STACKTRACE : com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$StandardPayloadDialect.processPayload(AbstractRequestContext.java:387)
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$5.onTransportSuccess(AbstractRequestContext.java:1108)
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136)
com.citrix.ws.democenter.module.shared.client.requestfactory.DemoCenterRequestTransport$1.onResponseReceived(DemoCenterRequestTransport.java:84)
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
java.lang.Thread.run(Thread.java:680)
 from sourceClasscom.google.web.bindery.event.shared.UmbrellaExceptionwith exception
com.google.web.bindery.event.shared.UmbrellaException: One or more exceptions caught,
see full set in UmbrellaException#getCauses

Reported by pradeepbpillai on 2012-04-26 03:08:37

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

@pradeepbpillai Those are the right stack traces for this bug, but they only occur in
DevMode. (The 'OOPHM' in the stacktrace means you're running in DevMode.)  This won't
occur in compiled mode.  If you see those stack traces, you're still in Dev Mode. 
If you see other IllegalArgumentExceptions, you've got another issue. 

FWIW, I first saw these issues on Safari two years ago (Issue #5011).  I caught it
in gdb, but couldn't figure out what was going on.  It looked like a function argument
magically changed into another object of a different type during nested calls to the
java process. Frequently the change was from object to string.  I suspected a threading
race condition or gc was recycling a function's "arguments" that was still in use,
but never managed to pinpoint it exactly.

In the end, I ran out of time to spend debugging the issue, and we switched to using
"Multi-safari" 4.0.5.  We've been using it ever since.  (NB safari 4.0.5 will crash
if you refresh the page while the web inspector is open, but otherwise it works and
doesn't trigger this bug.)

This issue should go away in "super dev mode" when GWT 2.5 comes out.

Reported by dunhamsteve on 2012-04-26 03:44:17

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

As far as we can tell it's a bug in NPAPI in Chrome, that's why it's taking so long
to get fixed. :(

Reported by cromwellian@google.com on 2012-04-26 03:46:17

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Same here,
Win 7 ultimate 64 bit, Chrome 19.0.1084.56 m. GWT 2.4
I ended up using Firefox 13 and its manually installed plugin.

Reported by angelo.schiavone on 2012-06-20 15:05:17

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Not just in Chrome im getting this error in Firefox as well. Any luck with a solution
?

Reported by dilantha.tyrant on 2012-07-11 06:20:10

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

@dilantha.tyrant: any chance it's just issue 6130?

Reported by t.broyer on 2012-07-11 08:45:17

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

@t.broyer : No thats not the issue. When i run the application in Dev mode im getting

java.lang.IllegalArgumentException: Something other than a Java object was returned
from JSNI method '@com.google.gwt.core.client.impl.Impl::getModuleBaseURL()': JS value
of type int, expected java.lang.Object
    at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.getModuleBaseURL(Impl.java)


Reported by dilantha.tyrant on 2012-07-11 13:05:09

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Hi Google,

Any luck in solving this issue? It's blocking my development...

gr Bas

Reported by gbastiaan on 2012-08-12 09:01:23

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

@Gbasiti How is this blocking you?  This issue happens only in Dev mode, and (at least
for me) it's not something that has any effect on the UI, even in Dev mode.  If your
stack trace has any of your own code in it, then you're seeing a different issue.

Reported by canada@onlyinsight.com on 2012-08-13 13:08:25

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

I have been getting the following message when tracking another bug that only occurs
in Chrome.  

[WARN] [app] - JSNI method '@com.google.gwt.dom.client.Style::setPropertyImpl(Ljava/lang/String;Ljava/lang/String;)'
returned a value of type JavaScript object(17289) but was declared void; it should
not have returned a value at all

Stuart

Reported by sasconsul on 2012-09-10 22:05:02

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Chrome has all sorts of problems when it come to development mode, and it is the slowest
of all the browsers that I've tried to work with (in dev mode). Firefox has proved
as the quickest one, and the best to do development with.

I'm aware that, when you need cross browser compatibility support, some bugs occurs
in one browser and not in another and you need to run the dev mode in the Chrome, or
any other browser, also, but, in general, I recommend Firefox as primary GWT development
browser.

I wonder, how come Chrome (Google product) and GWT (Google product) are such poor combination
when it comes to GWT development, much slower then GWT in combination with other browsers?

Reported by tomislav.haramustek on 2012-09-14 08:07:17

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Google not being able to make their own products (Chrome and GWT) work together looks
really bad. I'm really disappointed as this has been an ongoing problem for a while
now.........

Reported by sergiumartin on 2012-09-21 13:22:14

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Hello recent posts. Be aware of these recent things with respect to GWT:

1) Look for Super Dev Mode, which will not need a plugin
2) Understand that keeping all the plugins for all the variety of browsers was not
scaling up. (Can't spend all time doing plugins and not GWT work...)
3) Understand that GWT is transitioning to becoming an open-source project rather than
a Google project.

This sums it up: http://youtu.be/VOf27ez_Hvg?t=13m37s

Do you have some input on the topic? See Wednesday's blog post asking for your input:
http://googlewebtoolkit.blogspot.com/2012/09/gwt-survey.html

Reported by broc.seib on 2012-09-21 13:37:31

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Issue 7718 has been merged into this issue.

Reported by t.broyer on 2012-10-08 11:36:24

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

There's a new release of the Chrome plugin which may (or may not) be more stable. It
includes a fix that was made more than a year ago [1] but was somehow never released.
I'd be interested in knowing if there's any change.

[1] http://gwt-code-reviews.appspot.com/1469803

Reported by skybrian@google.com on 2012-10-18 22:51:50

@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

Seems like this is not coming up anymore with the new release of the Chrome dev plugin.

Please let me know if this is coming up with the new version still, so lang closing
off.

Reported by dankurka@google.com on 2013-04-14 05:12:55

  • Status changed: AssumedStale
@dankurka
Copy link
Member Author

@dankurka dankurka commented Jun 10, 2015

I'm running into this error with gwt-2.6 and Chrome 34.0.1847.116.  It's unfortunate
because I'm developing a hybrid GWT/Javascript application and IntelliJ has very good
integrated debugging with Chrome, not Firefox.

Reported by navels on 2014-04-25 22:15:47

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.