GWT 应用程序无法在 IE 中运行
我有一个使用 GWT 开发的网络应用程序。在除 IE 之外的任何浏览器中一切正常。在 IE 7、8 或 9 中它会崩溃。
链接是 https://dev.sertal.net/SertalVision /?locale=de#LoginPlace:test:sertal.ch
在任何浏览器中,用户名填写为 test,租户填写为 sertal.ch
我找到的解决方案是告诉人们安装 ChromeFrame,但我的原因之一是选择 GWT 是因为它的浏览器可移植性。
IE 中的错误消息是:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Wed, 27 Apr 2011 12:47:25 UTC
Message: 'ch_sertal_vision_client_model_ClientUser_firstName' is null or not an object
Line: 5490
Char: 3
Code: 0
URI: http://micharoon.adb.intra.admin.ch:8080/SertalVision/sertalvision/96253B890BCF313B6DB7F1C5768930F2.cache.html
位于函数中:
function ch_sertal_vision_client_view_TopPanel_$setUser__Lch_sertal_vision_client_view_TopPanel_2Lch_sertal_vision_client_model_ClientUser_2V(this$static, user){
com_google_gwt_user_client_ui_DirectionalTextHelper_$setTextOrHtml__Lcom_google_gwt_user_client_ui_DirectionalTextHelper_2Ljava_lang_String_2ZV(this$static.ch_sertal_vision_client_view_TopPanel_userSettings.com_google_gwt_user_client_ui_LabelBase_directionalTextHelper, user.ch_sertal_vision_client_model_ClientUser_firstName + $intern_43 + user.ch_sertal_vision_client_model_ClientUser_lastName + $intern_225 + user.ch_sertal_vision_client_model_ClientUser_userName + $intern_226, false);
com_google_gwt_user_client_ui_DirectionalTextHelper_$setTextOrHtml__Lcom_google_gwt_user_client_ui_DirectionalTextHelper_2Ljava_lang_String_2ZV(this$static.ch_sertal_vision_client_view_TopPanel_tenantName.com_google_gwt_user_client_ui_LabelBase_directionalTextHelper, ch_sertal_vision_client_model_NamedElement_$getName__Lch_sertal_vision_client_model_NamedElement_2Ljava_lang_String_2Ljava_lang_String_2(user.ch_sertal_vision_client_model_ClientUser_tenant, $intern_42), false);
}
任何提示都值得赞赏。
米夏
I have a web app developed with GWT. In any browser except IE everything works fine. In IE 7, 8 or 9 it breaks.
The link is https://dev.sertal.net/SertalVision/?locale=de#LoginPlace:test:sertal.ch
In any Browser, the username is filled with test and the tenant with sertal.ch
The solution I found is to tell people to install ChromeFrame, but one reason I chose GWT was for its browser portability.
The error message in IE is:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Wed, 27 Apr 2011 12:47:25 UTC
Message: 'ch_sertal_vision_client_model_ClientUser_firstName' is null or not an object
Line: 5490
Char: 3
Code: 0
URI: http://micharoon.adb.intra.admin.ch:8080/SertalVision/sertalvision/96253B890BCF313B6DB7F1C5768930F2.cache.html
which is located in a function:
function ch_sertal_vision_client_view_TopPanel_$setUser__Lch_sertal_vision_client_view_TopPanel_2Lch_sertal_vision_client_model_ClientUser_2V(this$static, user){
com_google_gwt_user_client_ui_DirectionalTextHelper_$setTextOrHtml__Lcom_google_gwt_user_client_ui_DirectionalTextHelper_2Ljava_lang_String_2ZV(this$static.ch_sertal_vision_client_view_TopPanel_userSettings.com_google_gwt_user_client_ui_LabelBase_directionalTextHelper, user.ch_sertal_vision_client_model_ClientUser_firstName + $intern_43 + user.ch_sertal_vision_client_model_ClientUser_lastName + $intern_225 + user.ch_sertal_vision_client_model_ClientUser_userName + $intern_226, false);
com_google_gwt_user_client_ui_DirectionalTextHelper_$setTextOrHtml__Lcom_google_gwt_user_client_ui_DirectionalTextHelper_2Ljava_lang_String_2ZV(this$static.ch_sertal_vision_client_view_TopPanel_tenantName.com_google_gwt_user_client_ui_LabelBase_directionalTextHelper, ch_sertal_vision_client_model_NamedElement_$getName__Lch_sertal_vision_client_model_NamedElement_2Ljava_lang_String_2Ljava_lang_String_2(user.ch_sertal_vision_client_model_ClientUser_tenant, $intern_42), false);
}
Any hint is appreciated.
Micha
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IE 无法像其他异常一样处理 NullPointerException。我更正了 NullPointer,现在它可以工作了。
将 GWT 输出样式设置为 DETAILED 可以让我找出问题所在。
为了将来的通知,maven 插件配置:
IE can not handle NullPointerExceptions as well as others. I corrected the NullPointer and now it works.
Setting the GWT output style to DETAILED allowed me to identify what was wrong.
For future notice, the maven plugin config: