Unable to startup the server: NPE while loading configurations from database

Issue

  • The issue usually comes with Oracle database and having a null dictionary in the table Configuration_ for the configurationid org_apache_felix_cm_impl_DynamicBindings
  • Due to this, Liferay fails to start, and throws the following exception:
    [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)

Environment

  • Liferay DXP 7.2

Resolution

  • Execute the following query to fill the DICTIONARY field where the value is null to be able to start your server: 
    UPDATE CONFIGURATION_ SET DICTIONARY = ' ' WHERE CONFIGURATIONID = 'org_apache_felix_cm_impl_DynamicBindings' AND DICTIONARY IS NULL

Additional Information

这篇文章有帮助吗?
2 人中有 2 人觉得有帮助