SSH开发,Ext表单提交不保存数据,跪求高手帮忙!

gaolq2008 2014-06-13 11:19:07
描述:
1.查询操作时,已经可以把数据加载面Ext页面;
2.增加操作时,addPerson(),在Junit测试通过,数据已保存到DB;
3.但在Ext表单提交时,报如下信息,数据没有保存到DB;

新手跪求高手帮忙,谢谢!

2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler:68) - Entering nullPropertyValue [target=[com.opensymphony.xwork2.DefaultTextProvider@786b4f], property=struts]
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler:68) - Entering nullPropertyValue [target=[com.opensymphony.xwork2.DefaultTextProvider@786b4f], property=struts]
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.DefaultActionProxy:68) - Creating an DefaultActionProxy for namespace / and action name personAction
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:68) - intercept '//personAction' {
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:68) - applied invocation context locale=zh_CN
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.interceptor.I18nInterceptor:68) - before Locale=zh_CN
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler:68) - Entering nullPropertyValue [target=[net.gzbus.base.action.PersonAction@1782f7c, com.opensymphony.xwork2.DefaultTextProvider@786b4f], property=struts]
2014-06-13 10:46:13,915 DEBUG (org.apache.struts2.interceptor.FileUploadInterceptor:68) - Bypassing //personAction
2014-06-13 10:46:13,915 DEBUG (com.opensymphony.xwork2.interceptor.StaticParametersInterceptor:68) - Setting static parameters {}
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.interceptor.ParametersInterceptor:68) - Setting params NONE
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.interceptor.ParametersInterceptor:68) - Setting params address => [ 11 ] birthday => [ 2014-06-03 ] createAccountId => [ 11 ] createAddress => [ 11 ] createDateTime => [ 2014-06-26 ] idCardNo => [ 11 ] issuingOrgan => [ 11 ] nation => [ 少数民族 ] personId => [ 11 ] personName => [ 11 ] sex => [ on ] status => [ 停止 ] validityDateB => [ 2014-06-11 ] validityDateE => [ 2014-06-04 ]
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Property: address
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Class: net.gzbus.base.action.PersonAction
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - field-level type converter for property [address] = none found
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - global-level type converter for property [address] = none found
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@70c52d]
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Creating converter with name [string]
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Converter of Type [com.opensymphony.xwork2.conversion.impl.StringConverter] with name [string], created!
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Property: birthday
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Class: net.gzbus.base.action.PersonAction
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - field-level type converter for property [birthday] = none found
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - global-level type converter for property [birthday] = none found
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@70c52d]
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Creating converter with name [string]
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Converter of Type [com.opensymphony.xwork2.conversion.impl.StringConverter] with name [string], created!
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Property: createAccountId
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Class: net.gzbus.base.action.PersonAction
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - field-level type converter for property [createAccountId] = none found
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - global-level type converter for property [createAccountId] = none found
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@70c52d]
2014-06-13 10:46:13,930 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Creating converter with name [string]

2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@70c52d]
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Creating converter with name [string]
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Converter of Type [com.opensymphony.xwork2.conversion.impl.StringConverter] with name [string], created!
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Property: validityDateE
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Class: net.gzbus.base.action.PersonAction
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - field-level type converter for property [validityDateE] = none found
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - global-level type converter for property [validityDateE] = none found
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@70c52d]
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Creating converter with name [string]
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.ObjectFactory:68) - Converter of Type [com.opensymphony.xwork2.conversion.impl.StringConverter] with name [string], created!
2014-06-13 10:46:13,947 DEBUG (org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:68) - Validating //personAction with method addPerson.
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.validator.ValidationInterceptor:68) - Invoking validate() on action net.gzbus.base.action.PersonAction@1782f7c
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil:68) - cannot find method [validateAddPerson] in action [net.gzbus.base.action.PersonAction@1782f7c]
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil:68) - cannot find method [validateDoAddPerson] in action [net.gzbus.base.action.PersonAction@1782f7c]
2014-06-13 10:46:13,947 DEBUG (com.opensymphony.xwork2.DefaultActionInvocation:68) - Executing action method = null
2014-06-13 10:46:13,963 DEBUG (org.apache.struts2.dispatcher.ServletDispatcherResult:68) - Forwarding to location /exception.jsp
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler:68) - Entering nullPropertyValue [target=[com.opensymphony.xwork2.interceptor.ExceptionHolder@1271a80, net.gzbus.base.action.PersonAction@1782f7c, com.opensymphony.xwork2.DefaultTextProvider@786b4f], property=org]
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler:68) - Entering nullPropertyValue [target=java.lang.NullPointerException, property=message]
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Property: message
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Class: java.lang.NullPointerException
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - field-level type converter for property [message] = none found
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Property: exception.message.message
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - Class: java.lang.NullPointerException
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - global-level type converter for property [message] = none found
2014-06-13 10:46:13,963 DEBUG (com.opensymphony.xwork2.conversion.impl.XWorkConverter:68) - falling back to default type converter [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@70c52d]
...全文
97 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
loveunittesting 2014-06-13
  • 打赏
  • 举报
回复
这都是不相关的问题,extjs就处理浏览器那里的事。如果能提交到服务器,是struts的事,到了struts成功了,还有什么可说的吗?
  • 打赏
  • 举报
回复
后台调试过了? 打出sql了? 事物提交了? 这三个测试完在告诉我答案
直接上代码,注意标签属性值name的写法需要和类Action中的写法保持一致,从而达到传值和接收值的效果。

81,091

社区成员

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

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

用户名