大家帮我看看这个,Marshalling exception: Missing method or missing parameter converters

qizhenlifa 2009-05-06 02:00:38
我的js是这样的
<script type="text/javascript">
function getCommentInfo(){
commentdao.findComment(getResult);
}

function getResult(data){
DWRUtil.removeAllRows("mybody");
DWRUtil.addRows("mybody",data,dataCell);
}

var dataCell = [
function(commentVO) {
return "标题:"+commentVO.commentTitle;},
function(commentVO) {
return "评论:"+commentVO.comment;},
function(commentVO) {
return "时间:"+commentVO.time;}
];

function addCommentInfo() {
var com = new commentVO();
com.commentContent=DWRUtil.getValue("comment");
com.commentTitle=DWRUtil.getValue("commenttitle");
alert(com.commentContent);
commentdao.addComment(com,getAddResult());
alert("...");
}

function getAddResult(date){
alert("发表留言成功!");
getCommentInfo();
}
</script>

dwr.xml

<dwr>
<allow>
<create creator="new" javascript="commentdao">
<param name="class" value="cn.com.qz.dao.impl.UserDAOImpl">
<include method="findComment"/>
<include method="addComment"/>
</param>
</create>
<convert match="cn.com.qz.vo.CommentVO" javascript="commentVO" converter="bean">
</convert>
</allow>
</dwr>

..................................
commentdao.addComment(com,getAddResult());在这里的时候报错,
2009-05-06 13:51:30,265 WARN (http-8888-Processor23) [org.directwebremoting.dwrp.BaseCallMarshaller] - Marshalling exception: Missing method or missing parameter converters
2009-05-06 13:51:30,265 WARN (http-8888-Processor23) [org.directwebremoting.dwrp.BaseCallMarshaller] - --Erroring: batchId[2] message[java.lang.IllegalArgumentException: Missing method or missing parameter converters]
大家能不能帮我分析下。谢谢了
...全文
2691 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
bincun88 2011-04-15
  • 打赏
  • 举报
回复
Action类中相应的 方法的参数类型有误,参数类型只能是String

52,782

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧