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

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

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

查看: 7127|回复: 0

[环境搭建] 调用TagUtil出错

[复制链接]
发表于 2018-3-28 14:12:18 | 显示全部楼层 |阅读模式

  1. public void datagrid3(HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
  2.                 String matrixName =request.getParameter("matrixName");
  3.                 List<Map<String, Object>> li = tdao.select(matrixName);
  4.             List<Map<String, Object>> list=mDao.select(matrixName);
  5.                 dataGrid.setResults(li);
  6.                 dataGrid.setResults(list);
  7.                 TagUtil.datagrid(response, dataGrid);
  8.         }


  9. java.lang.NullPointerException

  10.         at org.jeecgframework.tag.core.easyui.TagUtil.getJson(TagUtil.java:340)
  11.         at org.jeecgframework.tag.core.easyui.TagUtil.datagrid(TagUtil.java:472)
  12.         at com.towery.zbgl.demo3.controller.TModelalgorithmController.datagrid3(TModelalgorithmController.java:189)
  13.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  14.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  15.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  16.         at java.lang.reflect.Method.invoke(Method.java:498)
  17.         at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:175)
  18.         at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:446)
  19.         at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:434)
  20.         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)
  21.         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
  22.         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
  23.         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
  24.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
  25.         at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
  26.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  27.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
  28.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  29.         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  30.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  31.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  32.         at org.jeecgframework.core.aop.GZipFilter.doFilter(GZipFilter.java:93)
  33.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  34.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  35.         at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:140)
  36.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  37.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  38.         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  39.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  40.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  41.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  42.         at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150)
  43.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
  44.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  45.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  46.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
  47.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  48.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  49.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
  50.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  51.         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  52.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  53.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
  54.         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100)
  55.         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)
  56.         at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2508)
  57.         at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2497)
  58.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  59.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  60.         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  61.         at java.lang.Thread.run(Thread.java:745)
复制代码
其中li和list都能取到值,但是dataGrid只能获取到list的值,并且TagUtil.datagrid(response, dataGrid);会出错
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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