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

サーバーの起動ができない:データベースから設定を読み込む際にNPEが発生しました。

written-by

Zalán Szakolci

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

問題

  • この問題は通常 Oracle データベースで発生し、 テーブル Configuration_ の Configurationid org_apache_felix_cm_impl_DynamicBindingsに null dictionary が存在する。
  • このため、Liferayの起動に失敗し、次のような例外がスローされます:
    [exec] 15-Oct-2018 19:27:17.685 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.liferay.portal.spring.context.PortalContextLoaderListener]
         [exec]  java.lang.RuntimeException: org.osgi.framework.BundleException: Exception in com.liferay.portal.configuration.persistence.internal.activator.ConfigurationPersistenceBundleActivator.start() of bundle com.liferay.portal.configuration.persistence.impl.
         [exec] 	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:299)
         [exec] 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
         [exec] 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)

環境

  • Liferay DXP 7.2

解像度

  • 以下のクエリを実行し、DICTIONARYフィールドの値がNULLであることを確認し、サーバーを起動できるようにします:
    UPDATE CONFIGURATION_ SET DICTIONARY = ' ' WHERE CONFIGURATIONID = 'org_apache_felix_cm_impl_DynamicBindings' AND DICTIONARY IS NULL

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base