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

QQ登录

只需一步,快速开始

查看: 5782|回复: 4

[结贴] 报表导出excel乱码

[复制链接]

39

主题

136

帖子

2438

积分

金牌会员

Rank: 6Rank: 6

积分
2438
QQ
发表于 2017-9-22 14:13:02 | 显示全部楼层 |阅读模式
版本: 其它(帖子中说明) 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
2.7升级到3.7版本,同一个报表,tomcat在studio中启动导出excel正常,在外部启动导出excel乱码(<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" ><xhtml:head></xhtml:head><xhtml:body><div style="font-size:13px;" >鎶ヨ〃鎵ц閿欒锛氭姤琛ㄨ緭鍑哄け璐?/div></xhtml:body></xhtml:html>),报错信息如下:报表输出失败
生成xls文件失败
com.justep.report.exception.ReportServerException: 报表输出失败
        at com.justep.report.controller.OutputController.execute(Unknown Source)

        at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
        at com.justep.report.controller.CacheController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
        at com.justep.report.controller.ReportController.execute(Unknown Source)

        at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
        at com.justep.report.controller.DataController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
        at com.justep.report.controller.InitController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown S
ource)
        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(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: 生成xls文件失败
        at com.justep.report.convertor.ExcelConvertor.generateByte(Unknown Sourc
e)
        ... 26 more
Caused by: java.lang.RuntimeException: Excel转换为二进制格式失败
        at com.justep.report.convertor.ExcelConvertor.a(Unknown Source)
        ... 27 more
Caused by: java.lang.RuntimeException: 根据URL读取流失败,URL:http://192.168.1
.1:8080/DocServer/repository/file/view/1779-094CF8AC8BD84454BCC476779189171E/l
ast/content?key=63c386a3db4f2e24c651fc7849f2777d0b2bbd192092f3d283d998fdd592f88f
1831fe8595692c20d3ae6fd7c7c7a41e26e1907e3f1b0270099e0a260b40f501e913ab1830132c60
2ff770a6e7e46f00344a5828ca9097c222498b7840687cc72be57ec450feccf5907e57a3450b46ef
3af41dbf1e7d612566d4c0b87534880d
        at com.justep.report.convertor.ExcelConvertor.getUrlFileContent(Unknown
Source)
        at com.justep.report.convertor.ExcelConvertor.a(Unknown Source)
        at com.justep.report.convertor.ExcelConvertor.a(Unknown Source)
        ... 28 more
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL:
http://192.168.1.1:8080/DocServe ... 79-094CF8AC8BD84454
BCC476779189171E/last/content?key=63c386a3db4f2e24c651fc7849f2777d0b2bbd192092f3
d283d998fdd592f88f1831fe8595692c20d3ae6fd7c7c7a41e26e1907e3f1b0270099e0a260b40f5
01e913ab1830132c602ff770a6e7e46f00344a5828ca9097c222498b7840687cc72be57ec450fecc
f5907e57a3450b46ef3af41dbf1e7d612566d4c0b87534880d
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLCo
nnection.java:1840)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1441)
        ... 31 more



91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-9-22 15:55:31 | 显示全部楼层
报表中显示了附件组件上的文件吗?
地址栏中直接输入下面的地址看看显示正确吗:http://192.168.1
.1:8080/DocServer/repository/file/view/1779-094CF8AC8BD84454BCC476779189171E/l
ast/content?key=63c386a3db4f2e24c651fc7849f2777d0b2bbd192092f3d283d998fdd592f88f
1831fe8595692c20d3ae6fd7c7c7a41e26e1907e3f1b0270099e0a260b40f501e913ab1830132c60
2ff770a6e7e46f00344a5828ca9097c222498b7840687cc72be57ec450feccf5907e57a3450b46ef
3af41dbf1e7d612566d4c0b87534880d
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

39

主题

136

帖子

2438

积分

金牌会员

Rank: 6Rank: 6

积分
2438
QQ
 楼主| 发表于 2017-9-22 15:59:14 | 显示全部楼层
jishuang 发表于 2017-9-22 15:55
报表中显示了附件组件上的文件吗?
地址栏中直接输入下面的地址看看显示正确吗:http://192.168.1
.1:8080/ ...

不正确,报500错误。
错误信息:
HTTP Status 500 - BadRequestException

type Exception report

message BadRequestException

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.outerj.daisy.runtime.DaisyRTException: BadRequestException
        com.justep.doc.httpconnector.HttpConnector.service(Unknown Source)
        com.justep.doc.httpconnector.FileServlet.service(Unknown Source)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause

org.outerj.daisy.httpconnector.spi.BadRequestException: 认证服务认证失败
        com.justep.doc.httpconnector.HttpConnector.checkAuthentication(Unknown Source)
        com.justep.doc.httpconnector.HttpConnector.service(Unknown Source)
        com.justep.doc.httpconnector.FileServlet.service(Unknown Source)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.

Apache Tomcat/6.0.41
,问题是在内部启动,一切正常
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-9-22 17:00:26 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

39

主题

136

帖子

2438

积分

金牌会员

Rank: 6Rank: 6

积分
2438
QQ
 楼主| 发表于 2017-9-22 17:36:05 | 显示全部楼层
jishuang 发表于 2017-9-22 17:00
http://docs.wex5.com/bex5-server-question-list-10004/

完美,可以结帖了
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-25 22:32 , Processed in 0.064224 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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