GWT 应用程序无法在 IE 中运行

发布于 2024-11-03 11:33:55 字数 2069 浏览 0 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

下壹個目標 2024-11-10 11:33:55

IE 无法像其他异常一样处理 NullPointerException。我更正了 NullPointer,现在它可以工作了。

将 GWT 输出样式设置为 DETAILED 可以让我找出问题所在。

为了将来的通知,maven 插件配置:

 <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <version>${gwt-maven-plugin}</version>
    <configuration>
       <style>DETAILED</style>
       <logLevel>TRACE</logLevel>
       <runTarget>/SertalVision.html</runTarget>
       <inplace>false</inplace>
    </configuration>
    <executions>
       <execution>
          <goals>
             <!-- <goal>mergewebxml</goal> -->
             <goal>compile</goal>
             <goal>test</goal>
          </goals>
       </execution>
    </executions>
 </plugin>

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:

 <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <version>${gwt-maven-plugin}</version>
    <configuration>
       <style>DETAILED</style>
       <logLevel>TRACE</logLevel>
       <runTarget>/SertalVision.html</runTarget>
       <inplace>false</inplace>
    </configuration>
    <executions>
       <execution>
          <goals>
             <!-- <goal>mergewebxml</goal> -->
             <goal>compile</goal>
             <goal>test</goal>
          </goals>
       </execution>
    </executions>
 </plugin>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文