Thursday, August 21, 2014

Random IllegalArgumentException at application startup

I recently upgraded to GWT 2.6.1 and I see errors like below randomly at startup in DevMode.  I saw this issue before the upgrade but it seems worse now.  It does not happen all the time, it seems to occur when there is a delay in the DevMode starting.

E.g. I will see this in the console... 
Dev Mode initialized. Startup URL: 
http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997

...and then there is a very long pause before 'Debug enabled' appears in the console.  During this time the browser gives the busy/non-responding feedback and often will display the browser hung dialog box to which I select the continue option.  I'm using Firefox 24.2 and have been for some time as that works with DevMode.  This behavior does not happen all the time and I have not been able to determine what/when it will occur but it seems to occur more often now with 2.6.1.


SEVERE: Something other than a Java object was returned from JSNI method '@com.google.gwt.user.client.ui.PotentialElement::resolve()': JS value of type int, expected java.lang.Object
java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method '@com.google.gwt.user.client.ui.PotentialElement::resolve()': JS value of type int, 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.user.client.ui.PotentialElement$.resolve$(PotentialElement.java)
com.google.gwt.user.client.ui.PotentialElement$.resolve(PotentialElement.java:112)
com.google.gwt.user.client.DOM.insertChild(DOM.java:1224)
com.sencha.gxt.core.client.dom.XElement$.insertChild$(XElement.java:1357)
com.sencha.gxt.widget.core.client.container.Container.doPhysicalAttach(Container.java:321)
com.sencha.gxt.widget.core.client.container.Container.insert(Container.java:395)
com.sencha.gxt.widget.core.client.container.SimpleContainer.setWidget(SimpleContainer.java:109)
com.sencha.gxt.widget.core.client.container.SimpleContainer.add(SimpleContainer.java:56)

-Dave

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment