legacy-knowledge-base
公開されました Sep. 10, 2025

Liferay DXP 7.1 Fix Pack 17 または 7.2 Fix Pack 5 のインストール後、SimpleCaptchaImpl で "関数への引数の互換性がありません" というエラーが発生する。

written-by

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay DXP 7.1 Fix Pack 17 または Liferay DXP 7.2 Fix Pack 5をインストールした後、Liferayをご利用のお客様は、起動時にエラーが発生することがあります。
    ERROR [Start Level: Equinox Container: 03872104-7588-4c48-9e30-b4e53004033b][SimpleCaptchaImpl:93] bundle com.liferay.captcha.api:2.0.21 (362)[com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl(1810)] : The activate method has thrown an exception
    java.lang.VerifyError: (class: nl/captcha/gimpy/BlockGimpyRenderer, method: gimp signature: (Ljava/awt/image/BufferedImage;)V) Incompatible argument to function
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
    at java.lang.Class.getConstructor0(Class.java:3075)
    at java.lang.Class.newInstance(Class.java:412)
    at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl._getInstance(SimpleCaptchaImpl.java:500)
    at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.initGimpyRenderers(SimpleCaptchaImpl.java:321)
    at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:171)
    at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:183)
    [...]

環境への配慮

  • Liferay DXP 7.1 Fix Pack 17
  • Liferay DXP 7.2 Fix Pack 5

決議

  • 回避策として、以下の手順をご利用ください。

    1) 影響を受けるインスタンスで。コントロール パネル > システム設定 > セキュリティ ツール > CAPTCHA
    2) メモを取り、そこに入力したすべての構成を保存します
    3) 上部にある縦の楕円形のアイコンをクリックします。右側 > デフォルト値をリセット
    4) 以前に保存した設定を再度入力して保存

    これは現在のパッチレベルで定義されたデフォルト値でフィールドの値を上書きします。 (例: nl.captcha.gimpy.BlockGimpyRendererの代わりに com.liferay.captcha.simplecaptcha.gimpy.BlockGimpyRenderer を設定する)

    以前の captcha 設定は削除されましたが、再度追加することで (現在は正しいレンダラーのクラス名で)、起動時にレンダラーを初期化する際の非互換性の問題が解消されます。 構成レコードが正しいレンダラークラス名を参照しているため、この問題は戻りません。

  • このエラーは、 https://issues.liferay.com/browse/LPS-113813で修正された確認済みのLiferayバグで、恒久的な解決策は7.1 DXP Fix Pack 20と7.2 DXP Fix Pack 8で表示されます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base