`

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源码后可以避免。本次上传的资源供大家参考,如果在使用中遇到任何问题,欢迎大家及时交流,希望对大家能有所帮助

    安装Esxi出错,PartedUtil 重置分区格式为MBR.docx

    在本文中,我们将深入探讨这个问题,以便找出如何解决“PartedUtil failed with message error can’t have a partition outside the disk”的错误,以及如何处理从已安装Windows系统的机器上拔下的硬盘。...

    Cyclone10LP FPGA读写DS1302 RTC实验Verilog逻辑源码Quartus17.1工程文件+文档资料

    “S_READ”状态下一个状态迚入读地址状态“S_READ_ADDR”,再迚入读数据状态 “S_READ_DATA”,完成一个寄存器的读取,最后应答,拉低 CE。 module top( //sys input clk, input rst_n, output rtc_sclk, output ...

    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 ...

    quazipTestDemo.rar

    qCritical() << "Failed to open input file"; return; } QuaZipFile zipFile(&zip); if (!zipFile.open(QIODevice::WriteOnly)) { qCritical() << "Failed to open ZIP file for writing"; return; } ...

    read_gpio_liunx驱动GPIO读_源码

    printk(KERN_ERR "Failed to set GPIO %d as input\n", MY_GPIO_PIN); goto err_release_gpio; } ``` 3. **读取GPIO值**:然后,源码会定期或根据需要读取GPIO的值,通常使用`gpio_get_value`函数。 ```c int gpio...

    完美解决Linux搭建sftp出现Write failed:Broken pipe的问题

    在Linux中,可以使用`ufw allow 22/tcp`或`iptables -A INPUT -p tcp --dport 22 -j ACCEPT`来允许SFTP流量。 3. **调整SSH配置**:检查 `/etc/ssh/sshd_config` 文件,确保没有禁止SFTP的相关配置,如`Subsystem ...

    C++编程的方式读写ZIP文件,基于ZipLib封装的库

    throw runtime_error("Failed to open input file"); } char buffer[CHUNK]; while (inFile.read(buffer, CHUNK)) { zipWriteInFileInZip(outputFile.c_str(), buffer, inFile.gcount()); } ...

    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...

    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 ......

    VC++从零到知道

    std::cout << "Failed to open file for writing!" ; } std::ifstream inputFile("example.txt"); std::string line; if (inputFile.is_open()) { std::getline(inputFile, line); std::cout << "Read from ...

    计算机网络第六版答案

    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 ...

    vc中关于文件的操作--程序源代码

    std::cerr << "Failed to open input file!" ; } else if (!outputFile) { std::cerr << "Failed to open output file!" ; } ``` 或使用Windows API的GetLastError()获取错误代码。 总结,VC++中的文件操作涉及到...

    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: ...

    icoextract:从Windows PE文件(.exe.dll)中提取图标

    提取物 icoextract是使用Python编写的Windows PE文件(.exe / .dll)的图标提取器。 它还包括用于Linux桌面的缩略图脚本( ... usage: icoextract [-h] [-V] [-n NUM] [-v] input output Windows PE EXE icon extracto

    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...

    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 ...

    VC中用CStdioFile读写文件的方法完整的源码

    throw "Failed to open input file"; CString line; while (fileIn.ReadString(line)) AfxMessageBox(line); fileIn.Close(); } int main() { WriteToFile(); ReadFromFile(); return 0; } ``` 在...

Global site tag (gtag.js) - Google Analytics