Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2948

Null pointer exception in render (AbstractRenderer.java:527) when XML send for printing on TCP/IP printer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.4
    • None
    • renderer/pdf, unqualified
    • 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

        1. projectteam.xml
          1 kB
          Santosh Kumar
        2. projectteam2fo.xsl
          3 kB
          Santosh Kumar

        Issue Links

          Activity

            People

              ssteiner Simon Steiner
              krsantosh Santosh Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: