xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pardha Paruchuri <pardha_paruch...@yahoo.com>
Subject [DEBUG] Last page-sequence produced 3 pages.
Date Wed, 25 Nov 2009 19:56:28 GMT
Hi,
I have a WordML file that I am trying to convert into PDF using FOP 0.20.5, is giving below
error.

; SystemID: file:///E:/FOP/fop-0.20.5-bin/fop-0.20.5/pageLayout.xsl; Line#: 160; Column#:
43
javax.xml.transform.TransformerException: java.lang.ClassCastException
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2344)
at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:435)
at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:273)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
at mypackage.FOPServlet.renderXML(FOPServlet.java:162)
at mypackage.FOPServlet.doGet(FOPServlet.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ClassCastException

here is a snippet from pagelayout.xsl section that is causing the error.
    <xsl:for-each select="$main-sections">
      <xsl:variable name="next-main-sect-pos" select="position() + 1"/>
      <xsl:variable name="next-main-section" select="$main-sections[position()=$next-main-sect-pos]"/>

when I ran in debug mode it is showing this message '[DEBUG] Last page-sequence produced 3
pages'. Could someone let me know what could be causing this error.

Thanks,
Pardha


      

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message