问题描述:在网上查找了多种资料,也试了很多方法,在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错误的dwr包,只需要将此包替换工程里面的dwr即可解决该错误信息,免去很多麻烦
使用DWR弹出failed to read input等错误框,修改DWR源码后可以避免。本次上传的资源供大家参考,如果在使用中遇到任何问题,欢迎大家及时交流,希望对大家能有所帮助
* 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 ...
全志R16平台编译linux系统V1.0.txt 2017/4/11 13:36 (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!...rootroot@cm-System-Product-Name:/home/...Preparing to unpack ......
- 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...
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: ...
// 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 ...
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...
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 ...
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_...
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++ ------------ // 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]...
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...
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 ...
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 = ...
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 ...
//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...
// 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...
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 ...