Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-59449

PDF macro stops working after a few days

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 7.2.0
    • None

    Description

      Issue Summary

      PDF macro works fine when an attachment is added to it. Though, after a few days (usually 1-2 days), it stops showing previews

      Steps to Reproduce

      1. Confluence v7.2.0
      2. Upload the PDF file to a page
      3. Preview it via an attachment - this will work
      4. Add a PDF macro and select this attachment - this will work as well
      5. Leave Confluence running for 1-2 days
      6. Refresh the page with PDF

      Expected Results

      PDF macro should be woking and preview attachment

      Actual Results

      PDF macro stops working and the below exception is thrown in the log file:

      2020-02-08 16:01:42,050 ERROR [http-nio-6720-exec-6] [ContainerBase.[Standalone].[localhost].[/c720]] log Unhandled exception occurred whilst decorating page
       -- referer: http://localhost:6720/c720/display/PDF/for | url: /c720/plugins/servlet/pptslide | traceId: 7eb5fdd967684410 | userName: admin
      java.lang.NullPointerException
      	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2314)
      	at org.apache.commons.io.IOUtils.copy(IOUtils.java:2270)
      	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2291)
      	at com.benryan.components.DefaultSlideCacheManager.writeSlideToStream(DefaultSlideCacheManager.java:334)
      	at com.benryan.conversion.PPTSlideServlet.doGet(PPTSlideServlet.java:112)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      

      Workaround

      The issue seems to be resolved after rebooting Confluence

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              haftab Hassan Aftab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: