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

ポータル起動時の sun.reflect.Reflection.getCallerClass 警告メッセージ

written-by

Peter Nyiro

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

問題

  • Java 11 を使用している場合、ポータルの起動時に次のエラー メッセージが表示される場合があります。
    WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

環境

  • DXP 7.0+

解決

  • この警告メッセージは無視することができ、LPS-87421で修正される予定です。
  • 現時点で利用可能な回避策があります。Tomcat などの各アプリケーションサーバー環境で、以下の JDK_JAVA_OPTIONS を設定できます。
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.io=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.net=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.nio=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.text=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/sun.nio.ch=ALL-UNNAMED"
    JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
did-this-article-resolve-your-issue

legacy-knowledge-base