Uploading PDF file causes 'Stop reading corrupt stream.' messages in the logs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

  • Confluence may crash eventually due to running out of memory.
  • The following appears multiple times in the atlassian-confluence.log:
ERROR [scheduler_Worker-2] [apache.pdfbox.filter.FlateFilter] decode Stop reading corrupt stream.

原因

Most probably this PDFBox bug is causing the issue: https://issues.apache.org/jira/browse/PDFBOX-847. The result is in most cases having the Confluence instance running out of memory.

回避策

  1. Confluence をシャットダウンします。
  2. Remove pdfbox-x.x.x.jar from <CONFLUENCE-INSTALLATION-DIRECTORY>/confluence/WEB-INF/lib
  3. Download version 1.7.1 from Apache's site: http://pdfbox.apache.org/download.html
  4. Place the downloaded .jar file to <CONFLUENCE-INSTALLATION-DIRECTORY>/confluence/WEB-INF/lib
  5. Clear the plugin cache
  6. Confluence を起動します。

ソリューション

Upgrade to Confluence 4.3.7 which is now shipped with PDFBox version 1.7.1. Related bug report can be found here: CONF-27115 - Getting issue details... STATUS

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.