访问使用DWR的页面时“Failed to find parameter: c0-scriptName”
2011-08-29 16:10
591 查看
做项目时使用了DWR实现AJAX。但是在使用的时候访问使用了DWR的页面时,网页加载时总是弹出一个对话框,提示内容为“Failed to find parameter: c0-scriptName”。同时后台出现如下异常:
java.lang.IllegalArgumentException: Failed to find parameter: c0-scriptName
访问的页面放在了一个iframe里面,但是如果在地址栏直接输入访问页面的地址此时就不会报错了。让人不解的时,有另一个模块使用DWR的方法和完成的功能类似,确没有这种问题....
后来,使用Firexfox的firebug进行调试的时候,查看了一下请求的头信息内容如下:
页面放在iframe里时的请求信息:
单独访问页面时的请求信息:
访问另一模块时的请求信息:
分析以上请求信息没有发现什么特别的地方,这时想起来以前做项目时曾遇到的一个问题:汉字字数为奇数会出现乱码(汉字字数为偶数时就不会出现乱码问题)的问题。所以就将iframe的name属性去掉了一个汉字,即:供应商管。此时再访问页面,竟然没有问题了,运行正常。
问题是解决了,但是请求是以post方式提交的不应该出现乱码问题,问题有待对engine.js进一步了解后解决。。。。。。
java.lang.IllegalArgumentException: Failed to find parameter: c0-scriptName
访问的页面放在了一个iframe里面,但是如果在地址栏直接输入访问页面的地址此时就不会报错了。让人不解的时,有另一个模块使用DWR的方法和完成的功能类似,确没有这种问题....
后来,使用Firexfox的firebug进行调试的时候,查看了一下请求的头信息内容如下:
页面放在iframe里时的请求信息:
单独访问页面时的请求信息:
访问另一模块时的请求信息:
分析以上请求信息没有发现什么特别的地方,这时想起来以前做项目时曾遇到的一个问题:汉字字数为奇数会出现乱码(汉字字数为偶数时就不会出现乱码问题)的问题。所以就将iframe的name属性去掉了一个汉字,即:供应商管。此时再访问页面,竟然没有问题了,运行正常。
问题是解决了,但是请求是以post方式提交的不应该出现乱码问题,问题有待对engine.js进一步了解后解决。。。。。。
相关文章推荐
- DWR: Failed to find parameter: c0-scriptName
- 使用samba时出现"Failed to find entry for user..."
- 使用ACE日志策略时遇到的问题:DLL::open failed for ACE: Error: check log for details Unable to find service 'Logger'
- 使用pyinstaller 打包程序后,运行Failed to execute script MainPage 报错,解决办法
- FileProvider 的使用(Failed to find configured root that contains/storage/emulated/0/DCIM/ )
- 使用叶神模拟器无法访问本机服务器的问题(报错:java.net.ConnectException: failed to connect to /127.0.0.1 (port 5000) )
- 使用samba时出现"Failed to find entry for user..."
- 使用Visual studio 2005遇到错误提示:Failed to return new Code Element Possible syntax error. New Element Name
- 使用WinDbg调试Silverlight中遇到“Failed to find runtime DLL (clr.dll), 0x80004005”问题的解决方法之一
- 使用samba时出现"Failed to find entry for user..."
- 使用MagicAjax 服务器出现unable to find script library'/ajaxcallobject.js
- Unable to find any test data conversion strategy for parameter with name ArrayList<XXX>
- 在android中使用proguard混淆代码出现“Conversion to Dalvik format failed with error 1”错误的解决方法
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- Android Studio Error:failed to find Build Tools reevision 21.0.1
- vs2010下使用qt的相关问题 -- unable to find a qt build
- Android 快捷方式的创建与查询 快捷方式问题大全 获取快捷方式在Launcher数据库中的信息 Failed to find provider info for com.android.la
- How to use FTP via Windows Explorer(如何使用资源管理器访问 ftp)
- QT移植无法启动 This application failed to start because it could not find or load the Qt platform plugin
- 无法访问Word组件,failed due to the following error: 80070005 拒绝访问。