GWT throws random IllegalArgumentException in DevMode

113 views
Skip to first unread message

dhoffer

unread,
Nov 9, 2014, 6:21:59 PM11/9/14
to google-we...@googlegroups.com
All of a sudden I'm getting an IllegalArgumentException debugging a GWT app in DevMode.  I'm using 2.6.1.  It isn't clear to me what can cause this or how to debug the cause.  It seems somewhat random in its occurrence but seems to happen less if breakpoints are used.  What might be the cause of this?  

SEVERE: 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
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)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:286)
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:356)
sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
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:338)
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
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:356)
sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
...
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:286)
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:356)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
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:356)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)


Thomas Broyer

unread,
Nov 9, 2014, 6:39:41 PM11/9/14
to google-we...@googlegroups.com
I'd bet you're using Chrome. Search the issue tracker, it's a known bug with Chrome and the Dev plugin.

David Hoffer

unread,
Nov 9, 2014, 7:06:56 PM11/9/14
to Google Web Toolkit
I'm using Firefox ESR 24.2.0.

 

On Sun, Nov 9, 2014 at 4:39 PM, Thomas Broyer <t.br...@gmail.com> wrote:
I'd bet you're using Chrome. Search the issue tracker, it's a known bug with Chrome and the Dev plugin.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Tjrj4HVY10E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Thomas Broyer

unread,
Nov 10, 2014, 5:27:04 AM11/10/14
to google-we...@googlegroups.com
Then I can't understand how that could happen, sorry… (unless isScript() erroneously evaluated to 'true' maybe?)
That code has changed slightly in 2.7 (for nearly the reverse behavior as you're seeing: issue 8548) so maybe you could try the RC1?

If you can find the JS snippet corresponding to Impl::apply in Firefox dev tools, then maybe you could set a breakpoint there and try to understand why/when that happens.


On Monday, November 10, 2014 1:06:56 AM UTC+1, dhoffer wrote:
I'm using Firefox ESR 24.2.0.

 
On Sun, Nov 9, 2014 at 4:39 PM, Thomas Broyer <t.br...@gmail.com> wrote:
I'd bet you're using Chrome. Search the issue tracker, it's a known bug with Chrome and the Dev plugin.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Tjrj4HVY10E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

David Hoffer

unread,
Nov 10, 2014, 9:40:32 AM11/10/14
to Google Web Toolkit
I did try to upgrade to 2.7-rc1 but got some compiler errors, I also upgraded the gwt maven plugin to 2.7-rc1.  Then I read that SDM was the default so I added the flag so that DM would be used...but still got the compiler errors.  Could be that I have some 3rd party GWT code that isn't compatible or something like that.

I read on http://mojo.codehaus.org/gwt-maven-plugin/whats_new.html that 2.7-rc1 was updated to use 2.6.1??  That seems wrong to me.

So I went back to 2.6.1 as I'm not ready for SDM yet.

-Dave

To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.

Thomas Broyer

unread,
Nov 10, 2014, 12:31:19 PM11/10/14
to google-we...@googlegroups.com


On Monday, November 10, 2014 3:40:32 PM UTC+1, dhoffer wrote:
I read on http://mojo.codehaus.org/gwt-maven-plugin/whats_new.html that 2.7-rc1 was updated to use 2.6.1??  That seems wrong to me.

Ah, forgot to update the maven site…
Reply all
Reply to author
Forward
0 new messages