nikhilbchilwant / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
1 stars 1 forks source link

Unknown runtime error in IE. #364

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in what component (Widget/FAQ/Library):
gwt2.0
FixedWidthGrid method setWidget() in IE gives "Unknown runtime error"

Detailed description:
This only happens in IE both on Debug mode and on actual runtime.

This is the method invocation that I found using the debugger  

com.google.gwt.gen2.table.client.FixedWidthGrid.setWidget()
com.google.gwt.gen2.table.override.client.HTMLTable.setWidget()
com.google.gwt.user.client.ui.HTMLTable.removeFromParent()
com.google.gwt.user.client.ui.HTMLTable.cleanCell()
com.google.gwt.user.client.ui.HTMLTable.internalClearCell()

tries to do 
DOM.setInnerHTML() and this gives the error

Here is the Error from debug console:
00:24:34.938 [ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Unknown runtime error  
number: -2146827687  description: Unknown runtime error     at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:195)   at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)  at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:9
1)  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)    at 
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)  at 
sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a: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:157
)   at 
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelSe
rver.java:401)  at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Thread.java:619)

Workaround if you have one:
None

Original issue reported on code.google.com by ahmed.am...@gmail.com on 8 Jul 2010 at 11:01

GoogleCodeExporter commented 9 years ago
Any idea for workaround?

Original comment by ahmed.am...@gmail.com on 22 Jul 2010 at 7:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same one when I attempt to setHTML on an Anchor object like that:
topExportLink.setHTML("<a href='" + urlLink + "'>" + commonsLabels.export() + 
"</a>");

The same error appends if I replace the last line by this one : 
topExportLink.setText(commonsLabels.export());
topExportLink.setHref(urlLink);

But I think it's not these lines which are the cause of the issue, because when 
I'm debugging with eclipse, I have a TargetInvocationException with the Unknown 
Runtime Error in cause.

The complete trace in attachment.

Original comment by logan.ha...@gmail.com on 27 Jul 2010 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago
I finally could avoid the error by extending FixedWidthGrid and setting the 
clear text to empty string. The default clear text is " "

                public MyFixedWidthGrid() {
            super();
            setClearText("");
        }

Original comment by ahmed.am...@gmail.com on 27 Jul 2010 at 7:08