2011-04-26 58 views
0

我有一个使用GWT开发的Web应用程序。在除IE以外的任何浏览器中,一切正常。在IE 7,8或9中,它会中断。GWT应用程序在IE中不起作用

的联系是https://dev.sertal.net/SertalVision/?locale=de#LoginPlace:test:sertal.ch

在任何浏览器,用户名是充满了测试,并与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); 
} 

任何暗示理解。

Micha

+1

具体什么情况?当您使用F12脚本调试器时,是否有任何错误消息? – EricLaw 2011-04-26 22:27:02

+0

有错误消息 – 2011-04-27 12:04:04

回答

1

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>