luckystar 发表于 2018-8-22 00:37:04

进行页面控件权限规则定义后发生类型转换错误

       3.7.8定制了页面控件权限规则后后台触发类型转换的错误,之前3.7.2也是这样定制但是不会发生错误?
[org.jeecgframework.core.common.exception.GlobalEx
ceptionResolver:86] 全局处理异常捕获:
java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.S
tring
      at org.jeecgframework.web.cgform.controller.autolist.CgAutoListControlle
r.datagrid(CgAutoListController.java:278)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.springframework.web.method.support.InvocableHandlerMethod.doInvok
e(InvocableHandlerMethod.java:221)
      at org.springframework.web.method.support.InvocableHandlerMethod.invokeF
orRequest(InvocableHandlerMethod.java:137)
      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocabl
eHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
andlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingH
andlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)
      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapt
er.handle(AbstractHandlerMethodAdapter.java:85)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
erServlet.java:938)
      at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
rServlet.java:870)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
workServlet.java:961)
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServ
let.java:863)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkSer
vlet.java:837)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:165)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:165)
      at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.j
ava:123)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:165)
      at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:114)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:165)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterIntern
al(CharacterEncodingFilter.java:88)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:165)
      at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.do
FilterInternal(OpenSessionInViewFilter.java:150)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:165)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:96)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:474)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:79)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAcce
ssLogValve.java:624)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:349)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java
:783)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLig
ht.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(Abstract
Protocol.java:789)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpo
int.java:1437)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBas
e.java:49)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh
read.java:61)
      at java.lang.Thread.run(Thread.java:722)

luckystar 发表于 2018-8-22 10:27:17

CgAutoListController.java的278行,当数据类型为bigdecimal时转换出错!

admin 发表于 2018-8-23 09:46:21

订制是什么意思?请详细描述清楚

luckystar 发表于 2018-8-24 09:41:19

admin 发表于 2018-8-23 09:46 static/image/common/back.gif
订制是什么意思?请详细描述清楚

就是 页面控件权限 的设定,譬如按钮的隐藏与否,但是会发生错误,后来发现是框架中默认类型转换时发生错误,与页面控件权限设定 无关

admin 发表于 2018-8-24 09:58:02

截图看看你怎么配置的,发帖请务必详细,减少大家沟通的时间
页: [1]
查看完整版本: 进行页面控件权限规则定义后发生类型转换错误