You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Santosh Kumar (Jira)" <ji...@apache.org> on 2020/06/22 07:27:00 UTC
[jira] [Created] (FOP-2948) Null pointer exception in render
(AbstractRenderer.java:527) when XML send for printing on TCP/IP printer
Santosh Kumar created FOP-2948:
----------------------------------
Summary: Null pointer exception in render (AbstractRenderer.java:527) when XML send for printing on TCP/IP printer
Key: FOP-2948
URL: https://issues.apache.org/jira/browse/FOP-2948
Project: FOP
Issue Type: Bug
Components: renderer/pdf, unqualified
Affects Versions: 2.4
Reporter: Santosh Kumar
Attachments: projectteam.xml, projectteam2fo.xsl
With same XML and XSL-FO FOP1.0 works fine. But after upgrade to FOP2.4 ,
I can see below warning and exception when converting the xml to print doc for printing on the TCP/IP printer. And see below exception .
Attached is the XML and XSL-FO for this issue.[link title|[https://stackoverflow.com/questions/61927733/encounter-exception-after-upgrading-from-fop1-0-to-fop2-4]]
Attached the sample file from FOP2.4 example. Also complete program is listed on the above link to reproduce the same.
lang.NullPointerException
at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:527)
at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:433)
at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:380)
at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:345)
at org.apache.fop.render.java2d.Java2DRenderer.print(Java2DRenderer.java:1008)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2166)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1548)
at sun.print.Win32PrintJob.pageableJob(Win32PrintJob.java:576)
at sun.print.Win32PrintJob.print(Win32PrintJob.java:393)
at PrinterHandler.print(PrinterHandler.java:65)
at Test.main(Test.java:734)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)