[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
- [org.jeecgframework.core.common.exception.MyExceptionHandler]org.springframework.
- [org.jeecgframework.core.common.exception.MyExceptionHandler]com.thoughtworks.xstream.mapper.CannotR
- org.springframework.core.CollectionFactory
- org.springframework.core.CollectionFactory
- org.springframework.jdbc.core.JdbcTemplate
- org.springframework.core.Ordered接口
- org.springframework.core.NestedI…
- 解决: org.springframework.core.MethodClassKey
- org.springframework.core.convert.ConversionFailedException
- JUnit报错nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to...
- nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse cla
- nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.core.type.clas
- Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFai
- Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/ResolvableTypePr
- 报错nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to...
- An exception occurred: org.springframework.dao.InvalidDataAccessApiUsageException
- nested exception is org.springframework.beans.NotWritablePropertyException:
- org.springframework.core.BridgeMethodResolver异常的解决
- 基于SSH框架前后端分页
- 逆序提取不重复的整数
- 文件管理 - 2
- 处理Android不能调用apache Base64 问题
- IDEA配置项目部署到tomcat
- [org.jeecgframework.core.common.exception.MyExceptionHandler]org.springframework.
- Apache Shiro 快速入门教程,shiro 基础教程
- Linux 中的五种 IO 模型
- JavaScript parseFloat() 函数
- 使用SDWebImage的时候,从服务器请求回来的头像URL没有变化,但图片资源已经变。需要展示最新图片
- scrapy经验总结
- C/C++复习:统计字符串种类(指针)
- 【BZOJ1531】[POI2005]Bank notes【多重背包】
- 研讨会URL