首先,我的一个report中有多个数据源,一个单表结构,三个主从结构,我在做测试的时候单表和一个主从结构赋值(excel模板编辑)可正常显示数据,但是我再放一个主从结构的报表后就报错,报错信息如下:
Error at /xsl:stylesheet/xsl:template[1]/xsl:element[1]/xsl:element[1]/xsl:element[1]/xsl:for-each-group[1]/xsl:element[1]/xsl:for-each-group[1]
XPST0008: XPath syntax error at char 42 on line -1 in {...d='e2']/record[fMastID=$p2/...}:
Variable $p2 has not been declared
Error at /xsl:stylesheet/xsl:template[1]/xsl:element[1]/xsl:element[1]/xsl:element[1]/xsl:for-each-group[1]/xsl:element[1]/xsl:for-each-group[2]
XPST0008: XPath syntax error at char 42 on line -1 in {...d='e3']/record[fMastID=$p3/...}:
Variable $p3 has not been declared
[ERROR] 2016-04-19 10:48:53,874 com.justep.report.controller.ReportController - 报表执行失败
转换数据失败
com.justep.report.exception.ReportServerException: 转换数据失败
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:595)
Caused by: com.justep.report.data.ReportDataTransformException: 转换数据失败
at com.justep.report.data.ReportDataTransformer.a(Unknown Source)
at com.justep.report.data.ReportDataTransformer.transform(Unknown Source)
at com.justep.report.core.XReportHelper.executeXReport(Unknown Source)
... 22 more
Caused by: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 2 errors detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
... 25 more