Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.4
-
None
-
None
Description
With same XML and XSL-FO FOP1.0 works fine. But after upgrade to FOP2.4 ,
Below exception raised when converting the xml to print doc for printing on the TCP/IP printer.
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)
Attachments
Attachments
Issue Links
- is fixed by
-
FOP-2919 Direct Printing throws NullpointerException in AbstractRenderer
- Resolved