javascript exception with internet explorer

63 views
Skip to first unread message

arker statis

unread,
Apr 18, 2007, 6:29:18 AM4/18/07
to Google Web Toolkit
Hi all!
I have a little problem with internet explorer, versions 6 and 7.
I have a html page with 3 GWT gui, all are derived from the same super
class. When I visit the page with ie 6 and 7, an exception happens,
more clearly, ie tells me that there is a throw without a catch, that
has no meaning for me...
The error happens always with the same gui, but what stucks me is that
the others two works perfectly, showing data, instead the other one
blocks data load after ie error message. Here the code that ie says is
not correct:
--------
function _attach(_name){
try {
if (typeof $wnd[_name] != 'object') {
_resourceErrorBadType(_name);
}
this._dict = $wnd[_name];
}
catch (_e) {
_resourceErrorBadType(_name);
}
}
--------

This is code autogenerated, so I eventually can't hand change it, and
as you can see, it's correct and there is not any throw....
The method after this is :
--------
function _$Dictionary(_this$static, _name){
_$clinit5();
if (_name === null || _$equals('', _name)) {
throw _$IllegalArgumentException(new _IllegalArgumentException(),
'Cannot create a Dictionary with a null or empty name');
}
_this$static._label = 'Dictionary ' + _name;
_this$static._attach0(_name);
if (_this$static._dict === null) {
throw _$MissingResourceException(new _MissingResourceException(),
"Cannot find JavaScript object with the name '" + _name + "'", _name,
null);
}
return _this$static;
}
--------

Here there are effectively 2 throw, but they are correct....
Has anybody experienced a similar behaviuor or knows anything about
this???
Obviously with firefox everything works correctly, but I can't rely on
this, because our clients use internet explorer....

Browser version: internet explorer version 6 and 7
GWT version: 1.3.3

Thanks all for support!

arker statis

unread,
Aug 28, 2007, 4:48:42 AM8/28/07
to Google Web Toolkit
I tried to recompile with gwt 1.4.10 and I have the same exception, this time on this portion of code:

function com_google_gwt_i18n_client_Dictionary_attach__Ljava_lang_String_2(name){
try {
if (typeof $wnd[name] != 'object') {
com_google_gwt_i18n_client_Dictionary_resourceErrorBadType__Ljava_lang_String_2(name);
}
this.com_google_gwt_i18n_client_Dictionary_dict = $wnd[name];
}
catch (e) {
com_google_gwt_i18n_client_Dictionary_resourceErrorBadType__Ljava_lang_String_2(name);
}
}

This is content of com_google_gwt_i18n_client_Dictionary_resourceErrorBadType__Ljava_lang_String_2(name):
function com_google_gwt_i18n_client_Dictionary_resourceErrorBadType__Ljava_lang_String_2(name){
  com_google_gwt_i18n_client_Dictionary_$clinit__();
  throw java_util_MissingResourceException_$MissingResourceException__Ljava_util_MissingResourceException_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(new java_util_MissingResourceException(), "'" + name + "' is not a JavaScript object and cannot be used as a Dictionary", null, name);
}
Reply all
Reply to author
Forward
0 new messages