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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.20
    • Fix Version/s: 2.0.21, 3.0.0 PDFBox
    • Component/s: FontBox
    • Labels:
      None
    • Environment:
       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. catalina.out
          374 kB
          Joaquin Santana
        2. catalina.out
          273 kB
          Joaquin Santana
        3. image-2020-06-16-18-19-55-465.png
          91 kB
          Joaquin Santana
        4. image-2020-06-17-09-12-39-249.png
          52 kB
          Joaquin Santana

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: