简体   繁体   English

GWT应用程序在IE中不起作用

[英]GWT Application does not work in IE

I have a web app developed with GWT. 我有一个用GWT开发的Web应用程序。 In any browser except IE everything works fine. 在除IE之外的任何浏览器中,一切正常。 In IE 7, 8 or 9 it breaks. 在IE 7、8或9中会中断。

The link is https://dev.sertal.net/SertalVision/?locale=de#LoginPlace:test:sertal.ch 链接为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 在任何浏览器中,用户名都填充了test,而租户则填充了sertal.ch

The solution I found is to tell people to install ChromeFrame, but one reason I chose GWT was for its browser portability. 我发现的解决方案是告诉人们安装ChromeFrame,但是我选择GWT的原因之一是其浏览器的可移植性。

The error message in IE is: 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

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 美茶

IE can not handle NullPointerExceptions as well as others. IE无法像其他人一样处理NullPointerExceptions。 I corrected the NullPointer and now it works. 我更正了NullPointer,现在它可以工作了。

Setting the GWT output style to DETAILED allowed me to identify what was wrong. 将GWT输出样式设置为Detailed使我能够确定出什么问题了。

For future notice, the maven plugin config: 为了将来通知,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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM