彭老师:关于SimpleJdonFrameworkTest的运行问题,急!急!急!急!急!急!

05-10-28 javadavid
彭老师:
您好!
我在模仿SimpleJdonFrameworkTest改动后遇到如下问题:
即:我在原例子的基础之上,新增加一个user所属部门(domain)之后,所有功能除删除之外都正常,唯有在运行删除确认之后,页面出现如下错误提示信息:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: System error! please call system Admin.java.lang.Exception: formCopyToModel error:
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


root cause

java.lang.Exception: System error! please call system Admin.java.lang.Exception: formCopyToModel error:
com.jdon.strutsutil.ModelSaveAction.execute(ModelSaveAction.java:96)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.5

banq
2005-10-28 17:32
formCopyToModel error:
可能是你Model和ModelForm两个类内容(方法或属性)没有完全一致,或者其中一个没有进行定义。

javadavid
2005-10-28 18:24
多谢彭老师您的回复!
谢谢!

David

2005-10-28