GWT 2.0 Javascript IE Crash

94 views
Skip to first unread message

Charlie M

unread,
Nov 16, 2009, 9:51:24 AM11/16/09
to Google Web Toolkit
Hi All,

I have been recently testing out GWT 2.0 currently from the 2.0 branch
of the SVN although I have also tried Milestone 2. My app works fine
in Chrome and Firefox in both development and hosted modes.

When I try and run it in IE 6, 7 or 8 it complains of Javascript
errors. It complains of an "Invalid Argument" on the finally
statement.

The generated code is below:

function
com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
(jsFunction, thisObj, arguments){
var initialEntry;
initialEntry = com_google_gwt_core_client_impl_Impl_entryDepth++ ==
0;
try {
return jsFunction.apply(thisObj, arguments);
}
finally {
initialEntry && (com_google_gwt_core_client_impl_SchedulerImpl_
$clinit__V() ,
com_google_gwt_core_client_impl_SchedulerImpl_runScheduledTasks__Lcom_google_gwt_core_client_JsArray_2Lcom_google_gwt_core_client_JsArray_2V
(com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS,
com_google_gwt_core_client_impl_SchedulerImpl_FINALLY_1COMMANDS));
--com_google_gwt_core_client_impl_Impl_entryDepth;
}
}

Does anyone have any ideas.

Thanks,

Charlie M

Chris Ramsdale

unread,
Nov 17, 2009, 2:33:20 PM11/17/09
to google-we...@googlegroups.com
Would you mind entering an issue for this? Also, do you happen to have a the snippet of Java code that is resulting in the above JS?


--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.



Charlie M

unread,
Nov 20, 2009, 8:27:05 AM11/20/09
to Google Web Toolkit
I think the problem might lie with GWT core code. I can't see which
part of my code this relates to.

I have tried it in the the 2.0 RC and it sitll has the same problem.
Below is the Javascript call stack from IE.

> com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2
JScript anonymous function
gwtOnLoad
maybeStartModule
JScript anonymous function
JScript global code

Thanks,

Charlie M
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .

jd

unread,
Nov 20, 2009, 11:22:32 AM11/20/09
to Google Web Toolkit
One more thing of note is that DevMode in Eclipse then starts to take
close to 100% CPU.

jd

unread,
Nov 20, 2009, 11:21:07 AM11/20/09
to Google Web Toolkit
I wonder if this is the bug that I am also seeing. I am running
2.0RC2 and in IE6 also get an Illegal Argument error when I run it as
compiled JS. From hosted mode this exception is thrown


com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument. number: -2147024809 description: Invalid argument. at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27) at
java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException
(ModuleSpace.java:64) at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:157) at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120) at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
509) at


stepping through the code my problem occurs in LayoutImplIE6 on the
line with the *


public Element attachChild(Element parent, Element child, Element
before) {
if (!isIE6) {
return super.attachChild(parent, child, before);
}

DivElement container = Document.get().createDivElement();
* container.insertBefore(child, before);


It works fine in IE7, 8, Safari and Firefox

Charlie M

unread,
Nov 23, 2009, 5:35:18 AM11/23/09
to Google Web Toolkit
I raised an issue for this a few days ago.

http://code.google.com/p/google-web-toolkit/issues/detail?id=4258

I have just worked out what causing it. Its a mistake in my code UI
XML. I had a colon in the width value. IE was throwing an exception
where as Firefox and Chrome were simply ignoring it.

Thanks,

Charlie M
Reply all
Reply to author
Forward
0 new messages