Getting a System Error screen when adding a comment/answer into any Question

お困りですか?

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

コミュニティに質問


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

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

When a user adds a comment or answer to an existing question in Questions for Confluence, a System Error is triggered in the Confluence UI. 

環境

Confluence 7.19

診断

Reviewing the atlassian-confluence.log  files, you can find the following NoClassDefFoundError related to org/jsoup/safety/Whitelist  class:

2023-07-31 08:58:44,753 ERROR [https-jsse-nio2-8443-exec-806] [[Standalone].[localhost].[/confluence].[action]] log Servlet.service() for servlet [action] in context with path [/confluence] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoClassDefFoundError: org/jsoup/safety/Whitelist
        at com.atlassian.confluence.plugins.questions.util.JsoupUtils.isBlankExcludingHtmlTags(JsoupUtils.java:9)
        at com.atlassian.confluence.plugins.questions.actions.AnswerQuestionAction.execute(AnswerQuestionAction.java:45)
        at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
...
...

原因

The Whitelist class has been removed completely in Jsoup 1.15.1 library, Safelist class should be used instead.

ソリューション

Atlassian engineering team already implemented this change in Questions for Confluence plugin when implement the fix for:

CONFSERVER-82222 - Getting issue details... STATUS  

In order to solve this issue, follow these steps: 

  1. Upgrade your Questions for Confluence to v3.3.2 or older
    • Browse to General Configuration > Manage Apps
    • Search for Questions for Confluence and click on Update
  2. Clear the plugins cache following the KB How to clear Confluence plugins cache.


最終更新日: 2023 年 10 月 5 日

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

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