GWT application throws "JavaScriptException" only in IE, stack trace does not contain any useful information

My GWT application throws a JavaScriptException at a specific point. This issue only occurs in Internet Explorer (IE 8 and IE 8 work in IE7 mode).

The stack trace is as follows:

com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument. number: -2147024809 description: Invalid argument. com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) 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:188) sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) 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:157) com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668) com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401) com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) java.lang.Thread.run(Unknown Source) 

Debugging was not possible. Google told me that it could be something from a property set incorrectly (i.e. a Bad character, for example setWidth("190px!") ), Or setting the width to 0px or it could be completely different.

Since the problem only occurs in IE, I tried to use the IE developer tools for debugging, but didn't come up with anything.

How can I debug this correctly?

+4
source share
3 answers

It also happened to me, and it's a pretty nightmare. The proper use of some GIT / SVN / CVS, however, really saves the situation, reaching the point where it works. So what you can do now:

  • temporarily get rid of all custom CSS and see what happens (leave plain CSS from GWT by default)
  • debugging on an external server, it’s not so slow, but
  • try to play a “specific point” and comment out any related lines.
  • check the generated site properly (some kind of firebug-like tool for IE, I hope such a thing exists)
  • as suggested above, use a stylish / verbose output style
  • Reading generated JavaScript from GWT never solved my problem: (This is usually due to CSS or the usual use of the DOM from GWT
  • get people (or do it yourself) to check various browsers on a regular basis, it's just nobrainer
+2
source

Compile the application with a pretty output style for web mode. You can then get more information about this exception.

0
source

this code caused the same error for me

 flexTableWidget.getElement().getStyle().setBackgroundColor("rgba(255,255,255,0.5)"); 
0
source

Source: https://habr.com/ru/post/1340244/


All Articles