JVM crashes during Import from Word in Confluence

お困りですか?

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

コミュニティに質問

この記事はアトラシアンのサーバー製品にのみ適用されます。クラウドとサーバー製品の違いについてはこちらをご確認ください。

問題

JVM crashes after attempting to import some Microsoft Word documents into Confluence using the Import form Word option.

The following appears in atlassian-confluence.log

2016-03-15 09:47:32,283 WARN [http-bio-8857-exec-15] [com.benryan.webwork.WordImportAction] executeFileUpload Failed to delete uploaded file /Users/person/instances/con57home/temp/upload_cbeeb5d3_176d_4655_a18c_08d216aa6987_00000001.tmp
 -- referer: http://localhost:8857/confluence/pages/worddav/uploadimport.action?pageId=98307 | url: /confluence/pages/worddav/importword.action | userName: admin | action: importword | page: 98307

原因

We believe this error is related to the following JDK bugs:

回避策

If you experience this problem regularly you can enable an Office Connector Canary that will check whether an import is likely to succeed before proceeding with the actual import. This workaround is available in Confluence 5.9.1 and later. 

To enable the Office Connector Canary:

  1. Go to http://<yoursite>/admin/darkfeatures.action
  2. Paste the following dark feature key in the Enable dark feature field then hit Submit.

    com.atlassian.confluence.officeconnector.canary

When a user attempts to import a file from Word, the Office Connector Canary will spawn a new JVM to try the document first. If the spawned JVM crashes we consider the document to unsafe and stop the import process. Users will see the following error in Confluence: "The uploaded file contains data which cannot be safely imported".

メモリに関する考慮事項

The Office Connector Canary process does consume additional memory. You can use the com.atlassian.confluence.officeconnector.canary.memory_value system property to increase the amount of memory if necessary. It currently defaults to 1024mb. See Configuring System Properties for more information.

 

最終更新日 2016 年 7 月 28 日

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

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