[org.jeecgframework.core.common.exception.MyExceptionHandler]org.springframework.

来源:互联网 发布:linux安装gz文件 编辑:程序博客网 时间:2024/05/18 20:07

问题出现的前提是:

1)我制作一个主表,如下:



主表里面有字段用了textarea数据类型
2)还制作了一个附表,如下:



j生成代码后,添加出错

[org.jeecgframework.core.common.exception.MyExceptionHandler]org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 4 errors

Field error in object 'rgProjectPage' on field 'existQuestion': rejected value []; codes [typeMismatch.rgProjectPage.existQuestion,typeMismatch.existQuestion,typeMismatch.javax.xml.soap.Text,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [rgProjectPage.existQuestion,existQuestion]; arguments []; default message [existQuestion]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'javax.xml.soap.Text' for property 'existQuestion'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.xml.soap.Text] for property 'existQuestion': no matching editors or conversion strategy found]
Field error in object 'rgProjectPage' on field 'overallEvaluation': rejected value []; codes [typeMismatch.rgProjectPage.overallEvaluation,typeMismatch.overallEvaluation,typeMismatch.javax.xml.soap.Text,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [rgProjectPage.overallEvaluation,overallEvaluation]; arguments []; default message [overallEvaluation]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'javax.xml.soap.Text' for property 'overallEvaluation'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.xml.soap.Text] for property 'overallEvaluation': no matching editors or conversion strategy found]
Field error in object 'rgProjectPage' on field 'qualityObjectives': rejected value []; codes [typeMismatch.rgProjectPage.qualityObjectives,typeMismatch.qualityObjectives,typeMismatch.javax.xml.soap.Text,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [rgProjectPage.qualityObjectives,qualityObjectives]; arguments []; default message [qualityObjectives]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'javax.xml.soap.Text' for property 'qualityObjectives'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.xml.soap.Text] for property 'qualityObjectives': no matching editors or conversion strategy found]
Field error in object 'rgProjectPage' on field 'scale': rejected value []; codes [typeMismatch.rgProjectPage.scale,typeMismatch.scale,typeMismatch.javax.xml.soap.Text,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [rgProjectPage.scale,scale]; arguments []; default message [scale]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'javax.xml.soap.Text' for property 'scale'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.xml.soap.Text] for property 'scale': no matching editors or conversion strategy found]
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doBind(HandlerMethodInvoker.java:818)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:367)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Unknown Source)


主要原因是:生成page对象时,textarea类型生成了javax.xml.soap.Text类型


解决:

找到
将里面的javax.xml.soap.Text类型改成java.lang.String类型就行了



0 0
原创粉丝点击