冯炼
侠客
侠客
  • UID175
  • 粉丝1
  • 关注0
  • 发帖数11
阅读:24754回复:2

数据库字段“创建时间”在新增时抛异常,对隐藏字段的操作

楼主#
更多 发布于:2016-10-09 17:37
17:46:08,144 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot invoke product.MES_PCC_PRM_DETAIL.setCreation_date on bean class 'class product.MES_PCC_PRM_DETAIL' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.Date"
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2235)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:2151)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1957)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:2064)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1017)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:830)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.BeanUtils.populate(BeanUtils.java:433)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.base.common.DataObjectUtils.ConvertMapToBean(DataObjectUtils.java:185)
17:46:08,145 ERROR [STDERR]  at com.sunsheen.base.common.CommonUtils.saveEditorGrid(CommonUtils.java:286)
17:46:08,145 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:46:08,145 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
17:46:08,145 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:46:08,145 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:483)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
17:46:08,145 ERROR [STDERR]  at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
17:46:08,146 ERROR [STDERR]  at com.sunsheen.base.common.CommonUtils_$$_javassist_seam_51.saveEditorGrid(CommonUtils_$$_javassist_seam_51.java)
17:46:08,146 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:46:08,146 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
17:46:08,146 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:46:08,146 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:483)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.remoting.Call.processInvocation(Call.java:207)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.remoting.Call.execute(Call.java:139)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.remoting.ExecutionHandler$1.process(ExecutionHandler.java:121)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:142)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:111)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80)
17:46:08,146 ERROR [STDERR]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
17:46:08,146 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
17:46:08,146 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
17:46:08,146 ERROR [STDERR]  at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:98)
17:46:08,146 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
17:46:08,146 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
17:46:08,146 ERROR [STDERR]  at com.sunsheen.jfids.system.servlet.SystemPageFilter.doFilter(Unknown Source)
17:46:08,146 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
17:46:08,146 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:72)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:61)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
17:46:08,146 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
17:46:08,147 ERROR [STDERR]  at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
17:46:08,147 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:70)
17:46:08,147 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:66)
17:46:08,147 ERROR [STDERR]  at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:159)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
17:46:08,147 ERROR [STDERR]  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
17:46:08,147 ERROR [STDERR]  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
17:46:08,147 ERROR [STDERR]  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:46:08,147 ERROR [STDERR]  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:46:08,147 ERROR [STDERR]  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
17:46:08,147 ERROR [STDERR]  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
17:46:08,147 ERROR [STDERR]  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
17:46:08,147 ERROR [STDERR]  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
17:46:08,147 ERROR [STDERR]  at java.lang.Thread.run(Thread.java:745)
17:46:08,148 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: argument type mismatch
17:46:08,148 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:46:08,148 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
17:46:08,148 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:46:08,148 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:483)
17:46:08,148 ERROR [STDERR]  at com.sunsheen.jfids.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:2170)
17:46:08,148 ERROR [STDERR]  ... 77 more

图片:aa.png

何万里
神圣使者
神圣使者
  • UID60
  • 粉丝20
  • 关注121
  • 发帖数37
  • 社区居民
  • 忠实会员
  • 追星一族
沙发#
发布于:2016-10-11 10:06
第一句:17:46:08,144 ERROR [STDERR] java.lang.IllegalArgumentException: Cannot invoke product.MES_PCC_PRM_DETAIL.setCreation_date on bean class 'class product.MES_PCC_PRM_DETAIL' - argument type mismatch - had objects of type "java.lang.String" but expected signature "java.util.Date"

你的类型不匹配。
用的哪个构件来实现新增操作的?看看能不能转换一下类型。
不勤劳,连棵花也养不活。
冯炼
侠客
侠客
  • UID175
  • 粉丝1
  • 关注0
  • 发帖数11
板凳#
发布于:2016-10-12 16:23
使用他们封装的构件:这是构件的使用说明

图片:fd.png

游客

返回顶部