Development Mode Exception: com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8

464 views
Skip to first unread message

otth2oskier

unread,
Jul 3, 2012, 1:06:35 PM7/3/12
to google-we...@googlegroups.com
I am getting this exception on an intermittent basis. It is really frustrating as it happens about 75% of the time, but, restarting development mode SOMETIMES makes it go away. What is this exception telling me?

com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
    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.GeneratedMethodAccessor33.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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(Unknown Source)

Thomas Broyer

unread,
Jul 3, 2012, 5:47:53 PM7/3/12
to google-we...@googlegroups.com


On Tuesday, July 3, 2012 7:06:35 PM UTC+2, otth2oskier wrote:
I am getting this exception on an intermittent basis. It is really frustrating as it happens about 75% of the time, but, restarting development mode SOMETIMES makes it go away. What is this exception telling me?

com.google.gwt.core.client.JavaScriptException: (NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8

See http://www.w3.org/TR/dom/#dom-domexception-not_found_err (and then search for "NotFoundError" in that spec to see when it's raised).

The easiest way to debug JavaScriptException's is to open the browsers' developer tools and set them up to break on all exceptions (in Chrome: Ctrl+Shift+I to open the tools, then go to the "sources" tab, and click the fourth icon on the bottom toolbar once). It'll break in the JSNI method that's causing the error, where you could deduce its name. Then try to set a breakpoint on that method back in the Java code.

Alternately, try SuperDevMode in Chrome: you'll see your Java code right in the dev tools when the exception happens.
Reply all
Reply to author
Forward
0 new messages