Legacy Knowledge Base
Published Sep. 10, 2025

Error when we create a site with Minium template

Written By

Jamilly Macedo

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When creating a new Site using Minium template, the following stack trace is seen in the logs:

2022-09-22 13:06:24,120 main ERROR Could not create plugin of type class com.liferay.petra.log4j.internal.CompanyLogRoutingAppender for element 
CompanyLogRouting: java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(...)
Caused by: java.lang.NullPointerException
at com.liferay.portal.kernel.util.PropsUtil.get(PropsUtil.java:31)
at com.liferay.petra.log4j.internal.CompanyLogRoutingAppender.(CompanyLogRoutingAppender.java:254)
… 19 more

2022-09-22 13:06:24,125 main ERROR Unable to invoke factory method in class com.liferay.petra.log4j.internal.CompanyLogRoutingAppender for element
CompanyLogRouting: java.lang.IllegalStateException: No factory method found for class com.liferay.petra.log4j.internal.CompanyLogRoutingAppender
java.lang.IllegalStateException: No factory method found for class com.liferay.petra.log4j.internal.CompanyLogRoutingAppender
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:236)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)
(...)

2022-09-22 13:06:24,126 main ERROR Null object returned for CompanyLogRouting in Appenders.
2022-09-22 13:06:24,199 main ERROR Unable to locate appender "COMPANY_LOG_ROUTING_TEXT_FILE" for logger config "root"

Environment

  • Liferay DXP 7.4

Resolution

  • Update to DXP 7.4 U32 or request a hotfix with LPS-155945.

 

Did this article resolve your issue ?

Legacy Knowledge Base