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

QQ登录

只需一步,快速开始

查看: 2996|回复: 4

[结贴] 报表空指针异常

[复制链接]

8

主题

16

帖子

46

积分

新手上路

Rank: 1

积分
46
QQ
发表于 2014-3-15 00:22:48 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
java.lang.RuntimeException: Excel生成报表定义失败,文件名:F:\X5.2.5_dev\X5.2.5\model\UI\stubbsjysx\baobiao\process\studentbb\reports/fzActivity_groupReport.xls        at com.justep.report.xls.XLSTransformer.transform(Unknown Source)        at com.justep.xbl.report.Report.generateReportDoc(Report.java:351)        at com.justep.xbl.report.Report.generateReportDefine(Report.java:320)        at com.justep.xbl.report.Report.execute(Report.java:70)        at com.justep.xbl.runtime.TemplateEngine.computeJavaTemplate(Unknown Source)        at com.justep.xbl.runtime.TemplateEngine.exeucte(Unknown Source)        at com.justep.xbl.runtime.XBLEngine.parserBinding(Unknown Source)        at com.justep.xbl.runtime.XBLEngine.parser(Unknown Source)        at com.justep.xbl.runtime.XBLEngine.parser(Unknown Source)        at com.justep.xbl.runtime.XBLEngine.parser(Unknown Source)        at com.justep.xbl.runtime.XBLEngine.parser(Unknown Source)        at com.justep.xbl.runtime.XBLEngine.excute(Unknown Source)        at com.justep.ui.util.UIUtils.xbl(Unknown Source)        at com.justep.ui.WindowCompiler.w2Middle(Unknown Source)        at com.justep.ui.WindowCompiler.compile(Unknown Source)        at com.justep.ui.WindowServer.getWindow(Unknown Source)        at com.justep.ui.WindowServer.service(Unknown Source)        at com.justep.ui.servlet.MainServlet.service(Unknown Source)        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.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:857)        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(Thread.java:595)Caused by: java.lang.RuntimeException: Excel生成报表定义失败        at com.justep.report.xls.XLSTransformer.transform(Unknown Source)        ... 31 moreCaused by: java.lang.NullPointerException        at com.justep.report.xls.XLSTransUtils.initDataSource(Unknown Source)        at com.justep.report.xls.XLSTransModel.a(Unknown Source)        at com.justep.report.xls.XLSTransModel.transform(Unknown Source)        ... 32 more

1

主题

313

帖子

859

积分

高级会员

Rank: 4

积分
859
发表于 2014-3-15 12:12:31 | 显示全部楼层
应该是你excel文件中定义的不对,检查一下该文件,你是怎么定义的。

评分

参与人数 1 +3 收起 理由
jishuang + 3 赞一个!

查看全部评分

明天会更好。
回复 支持 反对

使用道具 举报

161

主题

1664

帖子

4092

积分

论坛元老

Rank: 8Rank: 8

积分
4092
QQ
发表于 2014-3-15 20:13:52 | 显示全部楼层
excel里面的那些定义检查下是否正确,然后 excel 最前面 留几个空行看看!

评分

参与人数 1 +3 收起 理由
jishuang + 3 赞一个!

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2014-3-15 21:03:00 | 显示全部楼层
报表里面的定义有问题,好好检查下呢

评分

参与人数 1 +3 收起 理由
jishuang + 3 赞一个!

查看全部评分

回复 支持 反对

使用道具 举报

13

主题

47

帖子

114

积分

初级会员

Rank: 2

积分
114
QQ
发表于 2014-10-23 10:25:47 | 显示全部楼层
我也遇到了这个问题,会有可能是什么问题呢?已经把报表删了重弄了好几次了
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 19:59 , Processed in 0.073043 second(s), 31 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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