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

Minium テンプレートでサイトを作成するとエラーが発生する

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

learn-legacy-article-disclaimer-text

問題

  • Minium テンプレートを使用して新しいサイトを作成すると、ログに次スタック トレースが表示されます。

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

解決策

  • DXP 7.4 U32 にアップデートするか、 LPS-155945のホットフィックスをリクエストしてください。

did-this-article-resolve-your-issue

legacy-knowledge-base