If anyone knows why this is happening.. please reply.. Thanks!
On Mar 30, 11:47 pm, "[email protected]" <[email protected]> wrote: > Hi all > > A question in regard of the method, createTextNode, in DocumentImpl. > So I invoked the method, and I happened to come across a case where I > pass in the a "null" parameter to the method, and it's not pretty. It > throws back aJavaScriptExceptionas the following. I noticed how the > method invokes the XMLParserImpl's createTextNode method, which in > terms invokes the JSNI code... So my question is why this method > doesn't accept the "null" parameter.. i tested it, if I pass in an > empty string, it will work properly, it just doesn't like the "null" > parameter... > > Please advise if you know what's going on with this. Thanks so much! > > at com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent > (FocusWidget.java:102) > at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308) > at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java: > 1287) > at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255) > at sun.reflect.GeneratedMethodAccessor8.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.ie.IDispatchImpl.callMethod > (IDispatchImpl.java:126) > at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke > (IDispatchProxy.java:155) > at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke > (IDispatchImpl.java:294) > at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 > (IDispatchImpl.java:194) > at org.eclipse.swt.internal.ole.win32.COMObject.callback6 > (COMObject.java:117) > at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native > Method) > at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java: > 2966) > at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > Caused by: com.google.gwt.core.client.JavaScriptException: > (TypeError): Type mismatch > number: -2146828275 > description: Type mismatch > at com.google.gwt.xml.client.impl.XMLParserImpl.createTextNode > (Native Method) > at com.google.gwt.xml.client.impl.DocumentImpl.createTextNode > (DocumentImpl.java:111) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
