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

QQ登录

只需一步,快速开始

查看: 6081|回复: 1

[处理中3] 点击打印预览报错

[复制链接]

249

主题

695

帖子

1715

积分

金牌会员

Rank: 6Rank: 6

积分
1715
QQ
发表于 2021-6-16 15:06:59 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
SXCH0003: org.apache.fop.fo.ValidationException:
  file:/D:/X5.2.7_deva/X5.2.7_jn/apache-tomcat/temp/com.justep.report.convertor.StreamCache-7725912269168455488.temp:82:-1: Error(82/-1): fo:table-body is missing child elements.
Required Content Model: marker* (table-row+|table-cell+)
[ERROR] 2021-06-16 15:04:57,990 com.justep.report.controller.OutputController - 报表输出失败
报表转换文件失败
com.justep.report.exception.ReportServerException: 报表输出失败
        at com.justep.report.controller.OutputController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.CacheController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.ReportController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        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:662)
Caused by: java.lang.RuntimeException: 报表转换文件失败
        ... 26 more
Caused by: java.lang.RuntimeException: 生成PDF文件失败,文件名:D:\X5.2.7_deva\X5.2.7_jn\apache-tomcat\temp\com.justep.report.convertor.StreamCache-7725912269168455488.temp
        at com.justep.report.convertor.PDFConvertor.generateByte(Unknown Source)
        ... 26 more
Caused by: java.lang.RuntimeException: FO生成PDF文件失败
        at com.justep.report.convertor.PDFConvertor.a(Unknown Source)
        ... 27 more
Caused by: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: file:/D:/X5.2.7_deva/X5.2.7_jn/apache-tomcat/temp/com.justep.report.convertor.StreamCache-7725912269168455488.temp:82:-1: Error(82/-1): fo:table-body is missing child elements.
Required Content Model: marker* (table-row+|table-cell+)
        at net.sf.saxon.event.ContentHandlerProxy.handleSAXException(ContentHandlerProxy.java:521)
        at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:393)
        at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
        at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:441)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:180)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404)
        at net.sf.saxon.event.Sender.send(Sender.java:214)
        at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:30)
        ... 28 more
Caused by: org.apache.fop.fo.ValidationException: file:/D:/X5.2.7_deva/X5.2.7_jn/apache-tomcat/temp/com.justep.report.convertor.StreamCache-7725912269168455488.temp:82:-1: Error(82/-1): fo:table-body is missing child elements.
Required Content Model: marker* (table-row+|table-cell+)
        at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:449)
        at org.apache.fop.fo.flow.table.TableBody.endOfNode(TableBody.java:123)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
        at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
        ... 45 more


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2021-6-17 15:04:15 | 显示全部楼层
应该是报表数据中有特殊字符导致的解析失败了
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 03:52 , Processed in 0.108022 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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