起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3407|回复: 5

[结贴] reportdata获取数据失败

[复制链接]

115

主题

379

帖子

1072

积分

金牌会员

Rank: 6Rank: 6

积分
1072
QQ
发表于 2017-5-25 10:26:04 | 显示全部楼层 |阅读模式
报表页面reportdata获取数据失败,文件已添附在附件里,报错如下

com.justep.report.exception.ReportServerException: 报表数据获取失败
        at com.justep.report.controller.DataController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.InitController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.Servlet.a(Unknown Source)
        at com.justep.report.Servlet.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.report.exception.ReportServerException: 执行KSQL出错, KSQL: SELECT f.fileName,l.syear,l.mont1,l.mont2,l.mont3,l.mont4,l.mont5,l.mont6,l.mont7,l.mont8,l.mont9,l.mont10,l.mont11,l.mont12  FROM (select  t.fileName, t.fileCode from t_files t join t_file_detail t2 on t.fileCode = t2.fileCode  where  t.fileType = 1 AND t2.unitId = '010000' AND t2.delFlag = 0 ) f  join (select  licenseCode, licenseClass, year(t_license.applyDatetime) as syear, case when month(t_license.applyDatetime) = '1' then 1 else 0 end  as mont1, case when month(t_license.applyDatetime) = '2' then 1 else 0 end  as mont2, case when month(t_license.applyDatetime) = '3' then 1 else 0 end  as mont3, case when month(t_license.applyDatetime) = '4' then 1 else 0 end  as mont4, case when month(t_license.applyDatetime) = '5' then 1 else 0 end  as mont5, case when month(t_license.applyDatetime) = '6' then 1 else 0 end  as mont6, case when month(t_license.applyDatetime) = '7' then 1 else 0 end  as mont7, case when month(t_license.applyDatetime) = '8' then 1 else 0 end  as mont8, case when month(t_license.applyDatetime) = '9' then 1 else 0 end  as mont9, case when month(t_license.applyDatetime) = '10' then 1 else 0 end  as mont10, case when month(t_license.applyDatetime) = '11' then 1 else 0 end  as mont11, case when month(t_license.applyDatetime) = '12' then 1 else 0 end  as mont12 from t_license_detail t_license_detail join t_license t_license on t_license_detail.applyIdkey = t_license.idkey  where year(t_license.applyDatetime) = '2016'  order by licenseCode asc, licenseClass asc) l on f.fileCode = l.licenseCode WHERE ((l.syear= '2016')) LIMIT 0, -1
--> sql:
--> binds: []
        at com.justep.report.controller.DataController.a(Unknown Source)
        at com.justep.report.controller.DataController.a(Unknown Source)
        ... 20 more
Caused by: java.lang.Exception
        ... 22 more

statisticalReport.zip

23.41 KB, 下载次数: 25

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35878
发表于 2017-5-25 13:37:27 | 显示全部楼层
发tomcat控制台完整的错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

115

主题

379

帖子

1072

积分

金牌会员

Rank: 6Rank: 6

积分
1072
QQ
 楼主| 发表于 2017-5-31 13:20:42 | 显示全部楼层
本帖最后由 nikcol 于 2017-5-31 13:24 编辑
jishuang 发表于 2017-5-25 13:37
发tomcat控制台完整的错误信息

你好,我换了个Action,现在报如下错误了,Action的sql写法请看图片,另外js用的代码也在图片中
2017-05-31 13:19:12 action:<?xml version="1.0" encoding="UTF-8"?>
<action process="/OA_WS/statisticalReport/process/statisticalReport/statisticalReportProcess" activity="sealsReport" action-flag="__action_0__" executor="" execute-context="" name="query_sealReportData"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="sYear"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String">2016</xbiz:simple></parameter></parameters></action>
com.justep.exception.BusinessException: 编码: JUSTEP151044; 提示: 编译模块"/OA_WS/statisticalReport/logic/code"中的类"StatisticalReport"出错
警告: [options] 未与 -source 1.5 一起设置引导类路径
D:\BeX5_V3.2.1\model\BIZ\OA_WS\statisticalReport\logic\code\dsrc\StatisticalReport.java:71: 错误: 对于结果类型为空的方法, 无法返回值
                return SQL.select(sqlMap,null,"/management/data");               
                                 ^
1 个错误
1 个警告

        at com.justep.exception.BusinessException.create(Unknown Source)
        at com.justep.model.impl.ModelImpl$DynamicClassManager.compile(Unknown Source)
        at com.justep.model.impl.ModelImpl$DynamicClassManager.getDynamicClass(Unknown Source)
        at com.justep.model.impl.ModelImpl$DynamicClassManager.getDynamicMethod(Unknown Source)
        at com.justep.model.impl.ModelImpl.getModelMethod(Unknown Source)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
[ERROR] 2017-05-31 13:19:12,044 com.justep.report.controller.DataController - 报表数据获取失败
编译模块"/OA_WS/statisticalReport/logic/code"中的类"StatisticalReport"出错
警告: [options] 未与 -source 1.5 一起设置引导类路径
D:\BeX5_V3.2.1\model\BIZ\OA_WS\statisticalReport\logic\code\dsrc\StatisticalReport.java:71: 错误: 对于结果类型为空的方法, 无法返回值
                return SQL.select(sqlMap,null,"/management/data");               
                                 ^
1 个错误
1 个警告

com.justep.report.exception.ReportServerException: 报表数据获取失败
        at com.justep.report.controller.DataController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.InitController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.Servlet.a(Unknown Source)
        at com.justep.report.Servlet.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.report.exception.ReportServerException: 编译模块"/OA_WS/statisticalReport/logic/code"中的类"StatisticalReport"出错
警告: [options] 未与 -source 1.5 一起设置引导类路径
D:\BeX5_V3.2.1\model\BIZ\OA_WS\statisticalReport\logic\code\dsrc\StatisticalReport.java:71: 错误: 对于结果类型为空的方法, 无法返回值
                return SQL.select(sqlMap,null,"/management/data");               
                                 ^
1 个错误
1 个警告

        at com.justep.report.controller.DataController.a(Unknown Source)
        at com.justep.report.controller.DataController.a(Unknown Source)
        ... 20 more
Caused by: java.lang.Exception
        ... 22 more
QQ截图20170531131710.png
QQ截图20170531132408.png
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35878
发表于 2017-5-31 13:34:21 | 显示全部楼层
statisticalReport\logic\code\dsrc\StatisticalReport.java:71: 错误: 对于结果类型为空的方法, 无法返回值
                return SQL.select(sqlMap,null,"/management/data");               

确认方法定义正确吗?方法定义的返回类型正确吗?

java文件所在的dsrc右键设置源码路径根据错误提示修改
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

115

主题

379

帖子

1072

积分

金牌会员

Rank: 6Rank: 6

积分
1072
QQ
 楼主| 发表于 2017-5-31 13:54:23 | 显示全部楼层
本帖最后由 nikcol 于 2017-5-31 14:03 编辑
jishuang 发表于 2017-5-31 13:34
statisticalReport\logic\code\dsrc\StatisticalReport.java:71: 错误: 对于结果类型为空的方法, 无法返回 ...

原来是其他方法没正确引起的,现在又报sql执行错误了,这个sql我放在数据库编辑器上是可以执行的

SELECT f.fileName,l.syear,l.mont1,l.mont2,l.mont3,l.mont4,l.mont5,l.mont6,l.mont7,l.mont8,l.mont9,l.mont10,l.mont11,l.mont12 from (SELECT t.fileName,t.fileCode from t_files t JOIN t_file_detail t2 on t.fileCode = t2.fileCode where t.fileType = 1 and t2.unitId = '010000' and t2.delFlag = 0) f join  (SELECT T_license_detail.licenseCode,T_license_detail.licenseClass ,year(T_license.applyDatetime) as syear ,sum(case when month(T_license.applyDatetime)='1' then 1 else 0 end) as mont1 ,sum(case when month(T_license.applyDatetime)='2' then 1 else 0 end) as mont2 ,sum(case when month(T_license.applyDatetime)='3' then 1 else 0 end) as mont3 ,sum(case when month(T_license.applyDatetime)='4' then 1 else 0 end) as mont4 ,sum(case when month(T_license.applyDatetime)='5' then 1 else 0 end) as mont5 ,sum(case when month(T_license.applyDatetime)='6' then 1 else 0 end) as mont6 ,sum(case when month(T_license.applyDatetime)='7' then 1 else 0 end) as mont7 ,sum(case when month(T_license.applyDatetime)='8' then 1 else 0 end) as mont8 ,sum(case when month(T_license.applyDatetime)='9' then 1 else 0 end) as mont9 ,sum(case when month(T_license.applyDatetime)='10' then 1 else 0 end) as mont10 ,sum(case when month(T_license.applyDatetime)='11' then 1 else 0 end) as mont11 ,sum(case when month(T_license.applyDatetime)='12' then 1 else 0 end) as mont12 FROM T_license_detail T_license_detail JOIN T_license T_license ON T_license_detail.applyIdkey = T_license where year(T_license.applyDatetime)='2016' GROUP BY T_license_detail.licenseCode,T_license_detail.licenseClass)l on f.fileCode = l.licenseCode
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35878
发表于 2017-5-31 14:31:12 | 显示全部楼层
发tomcat控制台完整的错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-3-29 04:01 , Processed in 0.072370 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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