legacy-knowledge-base
公開されました Jun. 30, 2025

エラーの解決方法:パラメータがNULLです:COMPANYLOGRoutingFilePatterns

written-by

Alvaro Cabello Díaz

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

問題

  • 7.4からQ3に移行しようとすると、catalina.outファイルに以下のようなエラーがあることが確認できる:
    2023-11-17 09:54:43,839 main ERROR The parameter is null: _companyLogRoutingFilePatterns
    2023-11-17 09:54:43,840 main ERROR The parameter is null: _dirPattern
    2023-11-17 09:54:43,842 main ERROR Could not create plugin of type class com.liferay.portal.log4j.internal.CompanyLogRoutingAppender for element CompanyLogRouting org.apache.logging.log4j.core.config.ConfigurationException: Arguments given for element CompanyLogRouting are invalid: field '_companyLogRoutingFilePatterns' has invalid value '[Lcom.liferay.portal.log4j.internal.CompanyLogRoutingFilePattern;@69ec93c2', field '_dirPattern' has invalid value 'null'

環境

  • DXP 7.4
  • 2023.Q3

解像度

  • まず、portal-log4j-ext.xmlを削除してみて、エラーが消えたら、次のステップを試してください。
  • LPS-175340 のU-66に変更が加えられたので、この変更に合わせてファイルを修正する必要がある。
    • <Layout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}{Europe/Madrid} %-5p [%t][%c{1}:%L] %m%n" type="PatternLayout" /> の行を削除し、正しい値に置き換えてください。
    • <FilePattern fileNamePattern="liferay-@company.id@.%d{yyyy-MM-dd}.log">
      <Layout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}{Europe/Madrid} %-5p [%t][%c{1}:%L] %m%n" type="PatternLayout" />
      </FilePattern>
  • これに加えて、 <Appender filePattern="/SRV/LOGS/liferay/liferay.%d{yyyy-MM-dd}.log" ...dirPattern <Appender dirPattern="@liferay.home@/logs/companies/@company.id@" ...に変更されます。
did-this-article-resolve-your-issue

legacy-knowledge-base