`

Failed to read input

阅读更多
问题描述:在网上查找了多种资料,也试了很多方法,在dwr包中的engine.js进行修改
         

解决方案:过滤 failed to read input,改为

dwr.engine.defaultErrorHandler = function(message, ex) {
dwr.engine._debug("Error: " + ex.name + ", " + ex.message, true);
if (message == null || message == "") alert("A server error has occured.");
// Ignore NS_ERROR_NOT_AVAILABLE if Mozilla is being narky
else if (message.indexOf("0x80040111") != -1) dwr.engine._debug(message);
else if (message.indexOf("Failed to read input") == -1) alert(message);
};


或修改成

dwr.engine.defaultErrorHandler = function(message, ex) {
dwr.engine._debug("Error: " + ex.name + ", " + ex.message, true);
if (message == null || message == "") alert("A server error has occured.");
// Ignore NS_ERROR_NOT_AVAILABLE if Mozilla is being narky
else if (message.indexOf("0x80040111") != -1) dwr.engine._debug(message);
else alert(message);
};

都没有反应,也许我的程序还没有运行到这里来。


      在自己的项目中修改common.jsp,对下面这一段代码进行修改。
       DWREngine.setErrorHandler(function(e){
      Ext.MessageBox.show({
           title: 'Error:',
           msg:e.toString(),
           buttons: Ext.MessageBox.OK,
           icon: Ext.MessageBox.ERROR
       });
     });

     修改后的结果为
      DWREngine.setErrorHandler(function(e){
     if(e.toString()=="Failed to read input"){
return Ext.topShow.msg("Friendly tips:","Server busy!");
     }
     Ext.MessageBox.show({
           title: 'Error:',
           msg:e.toString(),
           buttons: Ext.MessageBox.OK,
           icon: Ext.MessageBox.ERROR
       });
    });
   
分享到:
评论

相关推荐

    failed to read input

    修改过的failed to read input错误的dwr包,只需要将此包替换工程里面的dwr即可解决该错误信息,免去很多麻烦

    DWR弹出"failed to read input...”

    使用DWR弹出failed to read input等错误框,修改DWR源码后可以避免。本次上传的资源供大家参考,如果在使用中遇到任何问题,欢迎大家及时交流,希望对大家能有所帮助

    eac3to V3.17

    * when a read error occurs, reading is tried again up to 3 times * (E-)AC3 frames with -0db dialnorm are now automatically patched to -31db * updated to newer libAften build -> fixes 44.1khz encoding ...

    计算机网络第六版答案

    14. If the two ISPs do not peer with each other, then when they send traffic to each other they have to send the traffic through a provider ISP (intermediary), to which they have to pay for carrying ...

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!...rootroot@cm-System-Product-Name:/home/...Preparing to unpack ......

    S7A驱动720版本

    - In the device dialog of the communication way "MPI/PB CIF", the input fields "Rack:" and "slot no. of CPU" have been added. This extension now allows the connection to "external" Profibus- CPs...

    hadoop 2.7.6 eclipse插件

    18/05/25 19:51:34 INFO input.FileInputFormat: Total input paths to process : 3 18/05/25 19:51:35 INFO mapreduce.JobSubmitter: number of splits:3 18/05/25 19:51:35 INFO mapreduce.JobSubmitter: ...

    F2812GPIO文件

    // input pins. These tests are repeated for various qualifier // values and for GPIO ports A, B and F. // // Similar tests could be written for GPIO ports D, E and G. // Tests for ports A, D and F ...

    thl_r16_tinav2.0_hm1375验证通过_增加打印设备ID_20170824_1447.7z

    vfe_err("Failed to install at probe handle\n"); mutex_unlock(&probe_hdl_lock); return ; } 4、 R:\wyb\thl_r16_tinav2.0_hm1375\package\allwinner\cameratest\src\common\hawkview.c int fetch_sub_cmd...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00327929 Defect Command to enable Patrol Read on SSDs controller property is not shown in Help SCGCQ00331576 Defect LSI MegaCLI EncInfo (Enclosure Info) duplicates the first power supply status ...

    hm1375_tinav2.1验证通过_增加设备ID的读取显示_20170825_1333没有外层目录.7z

    vfe_err("Failed to install at probe handle\n"); mutex_unlock(&probe_hdl_lock); return ; } 4¡¢ R:\wyb\thl_r16_tinav2.0_hm1375\package\allwinner\cameratest\src\common\hawkview.c int fetch_sub_...

    linux 添加字符设备驱动程序及测试程序.zip

    printf("Please input the device's name you wanna to use :"); gets(devName); strcat(dir, devName); fd = open(dir, O_RDWR | O_NONBLOCK); if (fd != -1) { read(fd, buf, sizeof(buf)); printf("The...

    From C to C++

    //-------- From C to C++ ------------ // A simple C Program! // convert a string to uppercase! #include #define N 200 int main(){ char ms[N]; int i; printf("Input ms: "); gets(ms); for(i=0;ms[i]...

    BURNINTEST--硬件检测工具

    will need to be sent to Microsoft as per the normal process. However, a log entry will be added to the normal BurnInTest log. - Changes to trace logging to reduce activity when trace logging is not...

    微软内部资料-SQL性能优化3

    Prior to SQL Server 7.0, REPEATABLE READ and SERIALIZABLE isolation levels were synonymous. There was no way to prevent non-repeatable reads while not preventing phantoms. By default, SQL Server 2000 ...

    php.ini-development

    To disable this feature set this option to empty value ;user_ini.filename = ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes) ;user_ini.cache_ttl = ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    Parameters to C/C++ functions are either input to the function, output from the function, or both. Input parameters are usually values or const references, while output and input/output parameters ...

    esp8266 mp3

    //We're most likely out of buffer and need to call input() again break; } error(NULL, stream, frame); continue; } mad_synth_frame(synth, frame); } } } int getIpForHost...

    DES加密算法DES加密算法

    // check if input is all hex or not boolean ishex = true; for (int i = 0; i (); i++) if (Character.digit(line.charAt(i), 16) ) { ishex = false; break; } // check hex key...

    Bochs - The cross platform IA-32 (x86) emulator

    devices (currently only used to set the speed reported by device and to specify an alternative redolog file of USB MSD disk image modes) - hard drive - new disk image mode 'vvfat' - ported the ...

Global site tag (gtag.js) - Google Analytics