Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4890

Stack overflow in BufferedRandomAccessFile.read() while creating font cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.20
    • 2.0.21, 3.0.0 PDFBox
    • FontBox
    • None
    •  5.3.0-53-generic #47~18.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

    Description

      Hello, when I'm trying to print a pdf it's giving me a problem creating the font cache, the same pdf is printable on Windows from IDE but doesn't work on ubuntu inside tomcat 

       

      try {
          pdf = PDDocument.load(inputStream);
          pdf.getDocumentInformation().setTitle(filename);
          reportServiceBL.printPageablePdf(pdf);
      } catch (Exception e) {
          LOGGER.error("An unexpected error occurred while dispatching document", e);
          return wrapResponseKO(null, "There was an error generating document");
      
      }
      

       

      is there a way to find where the issue is?

      Attachments

        1. image-2020-06-16-18-19-55-465.png
          91 kB
          Joaquin Santana
        2. image-2020-06-17-09-12-39-249.png
          52 kB
          Joaquin Santana
        3. catalina.out
          273 kB
          Joaquin Santana
        4. catalina.out
          374 kB
          Joaquin Santana

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              joaquinjsb Joaquin Santana
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: