We are currently (Confluence 4.3.2) shipping PDFBox 1.6.0.

      Attaching certain PDF files, can affect performance with the following error in the logs:

      ERROR [scheduler_Worker-2] [apache.pdfbox.filter.FlateFilter] decode Stop reading corrupt stream.

      Upgrading to PDFBox 1.7.1 solved the issue, even though I could not find any related issue in PDFBox issue tracker related to this problem and fixed between those versions.

            [CONFSERVER-27115] Upgrade PDFBox to 1.7.1

            I see in Confluence 5.10.1 with pdfbox-1.8.10.jar

            2016-09-26 16:31:05,686 ERROR [Indexer: 2] [apache.pdfbox.filter.FlateFilter] decode FlateFilter: stop reading corrupt stream due to a DataFormatException
             -- url: /admin/reindex.action | traceId: a7c412d68362069c | userName: 310276 | referer: http://confluence.abcde.com:8001/admin/search-indexes.action | action: reindex
            

            Pranjal Shukla added a comment - I see in Confluence 5.10.1 with pdfbox-1.8.10.jar 2016-09-26 16:31:05,686 ERROR [Indexer: 2] [apache.pdfbox.filter.FlateFilter] decode FlateFilter: stop reading corrupt stream due to a DataFormatException -- url: /admin/reindex.action | traceId: a7c412d68362069c | userName: 310276 | referer: http: //confluence.abcde.com:8001/admin/search-indexes.action | action: reindex

            Michaël added a comment -

            Also occured in Confluence 5.8.18 with pdfbox 1.8.11

            Michaël added a comment - Also occured in Confluence 5.8.18 with pdfbox 1.8.11

            We also saw that upgrading to PDFBox 1.7.1 in Confluence 4.3.2 resolved our errors like the issues mentioned above:

            ERROR [scheduler_Worker-2] [apache.pdfbox.filter.FlateFilter] decode Stop reading corrupt stream.
            

            We found that out during investigation in my service request: https://support.atlassian.com/browse/CSP-84193

            Please bundle latest PDFBox with Confluence!

            Michael Michael added a comment - We also saw that upgrading to PDFBox 1.7.1 in Confluence 4.3.2 resolved our errors like the issues mentioned above: ERROR [scheduler_Worker-2] [apache.pdfbox.filter.FlateFilter] decode Stop reading corrupt stream. We found that out during investigation in my service request: https://support.atlassian.com/browse/CSP-84193 Please bundle latest PDFBox with Confluence!

            Not sure whether version PDFBox 1.7.1 solve this issue - this version at least provide real cause (as described in PDFBOX-1202 and PDFBOX-847) - which in most cases is OOM.

            This bug appeared to me after running production Confluence on low memory - e.g. Xmx512.

            Jozef Kotlár added a comment - Not sure whether version PDFBox 1.7.1 solve this issue - this version at least provide real cause (as described in PDFBOX-1202 and PDFBOX-847 ) - which in most cases is OOM. This bug appeared to me after running production Confluence on low memory - e.g. Xmx512.

              drizzuto David Rizzuto
              aconde Alejandro Conde Carrillo (Inactive)
              Affected customers:
              5 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: