关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 5511|回复: 1

[Online开发] 非数据库字段datagrid显示正常后台报错

[复制链接]
发表于 2018-7-22 10:35:49 | 显示全部楼层 |阅读模式

datagrid能正常显示非数据库字段,但后台报空指针异常,只有getNoPayAmount()中有引用数据库字段做计算就报错 但前台页面能正常显示计算结果




java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBea
n.java:1773)
    at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUti
lsBean.java:1132)
    at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.j
ava:408)
    at org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHqlJoinAlias
(HqlGenerateUtil.java:152)
    at org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(HqlGener
ateUtil.java:81)
    at com.jeecg.yx.controller.YxIncomeController.datagrid(YxIncomeController.java:
116)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(Invoc
ableHandlerMethod.java:221)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForReque
st(InvocableHandlerMethod.java:137)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandle
rMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerA
dapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerA
dapter.handleInternal(RequestMappingHandlerAdapter.java:676)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.hand
le(AbstractHandlerMethodAdapter.java:85)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl
et.java:938)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle
t.java:870)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer
vlet.java:961)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.jav
a:863)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.ja
va:837)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:208)
    at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:119)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:208)
    at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140
)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:208)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
acterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:208)
    at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterI
nternal(OpenSessionInViewFilter.java:150)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:218)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:110)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:506)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169
)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103
)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
ssor.java:1087)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
tProtocol.java:637)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:
318)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
45)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
15)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.ja
va:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
    at org.jeecgframework.core.util.NumberComparator.sub(NumberComparator.java:108)
    at com.jeecg.yx.entity.YxIncomeEntity.getNoPayAmount(YxIncomeEntity.java:532)
    ... 61 more

发表于 2018-7-23 09:41:38 | 显示全部楼层
这个是自己开发的功能,请自己debug解决
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表