google-code-export / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
1 stars 2 forks source link

com.google.gwt.core.client.JavaScriptException: (TypeError): this.removeChild is not a function #498

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: 2.4.0

Use UiBinder and base element is TableRowElement failing.

Example code:

  public class SomeItemPanel {

    interface SomeItemUiBinder extends UiBinder<TableRowElement, SomeItemPanel> {}
    private static SomeItemPanelUiBinder uiBinder = GWT.create(SomeItemPanelUiBinder.class);

    private TableRowElement element;

    public SomeItemPanel() {
        element = uiBinder.createAndBindUi(this);
    }
}

// And SomeItemPanel.ui.xml 

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
             xmlns:g='urn:import:com.google.gwt.user.client.ui'>
    <tr>
        <td></td>
        <td></td>
    </tr>
</ui:UiBinder>

Exception:

ERROR: Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): this.removeChild 
is not a function
    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.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    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(Thread.java:722)

Original issue reported on code.google.com by mike@chaliy.name on 13 Apr 2012 at 11:17

GoogleCodeExporter commented 9 years ago
I think you want to post this to the code.google.com/p/google-web-toolkit issue 
tracker.  This project is for a library that uses GWT.

Original comment by zundel@google.com on 13 Apr 2012 at 11:21

GoogleCodeExporter commented 9 years ago
Yes, my bad. Wrong tab :(. Close please.

Original comment by mike@chaliy.name on 14 Apr 2012 at 8:15