Legacy Knowledge Base
Published Jun. 30, 2025

How to solve error: the parameter is 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

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

  • Trying to migrate from 7.4 to Q3, you could observe that in catalina.out file there are some errors such as the following:
    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'

Environment

  • DXP 7.4
  • 2023.Q3

Resolution

  • First, try to remove the portal-log4j-ext.xml, if the error disappears, try next steps.
  • A change was made in U-66 on LPS-175340 and you have to adapt your file to reflect this change.
    • You have to delete the line <Layout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}{Europe/Madrid} %-5p [%t][%c{1}:%L] %m%n" type="PatternLayout" /> and replace it with the correct values
    • <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>
  • In addition to this, the filePattern attribute of the <Appender filePattern="/SRV/LOGS/liferay/liferay.%d{yyyy-MM-dd}.log" ... is changed to dirPattern <Appender dirPattern="@liferay.home@/logs/companies/@company.id@" ...
Did this article resolve your issue ?

Legacy Knowledge Base