Legacy Knowledge Base
Published Jun. 30, 2025

After configuring an asset publisher display template and applying fix pack 20, a free marker error appears when trying to configure the asset publisher

Written By

Ahmed Abdin

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • After creating an Asset Publisher Display Template and installing fix pack 20 to my Service Pack 5 (SP%), I cannot configure the Asset Publisher. I received an Internal Server Error in the UI and a Free Marker Template error in the logs.

Reproduction Steps:

1. Set up DXP 7.2 SP5 with fix pack 14

2. Go to Site Builder -->Widget Templates --> and add an Asset Publisher Template

3. Go to Content & Data --> Web Content and create basic web content.

4. On the Home page place an Asset Publisher and configure its Display with the Asset Publisher Display Template.

5. Shut down the instance.

6. Install Fix Pack 20

7. Start the instance and try to configure the Asset Publisher.

Actual Result: An Internal Server error appears in the UI and a Free Mareker Template error in the log like this:

Error executing FreeMarker template

FreeMarker template error:

Java method "com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor.processMax()" threw an exception when invoked on com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor object "com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor@18992655"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):

- Failed at: ${processor.processMax()}  [in template "classic_WAR_classictheme_STANDARD_pop_up" at line 4, column 25]

 

Expected Result: The Asset Publisher can be configured without any issues. 

 

Environment

  • Liferay DXP 7.2

Resolution

        LIFERAY_HOME/osgi/marketplace/Liferay Data Engine - API.lpkg
 
        LIFERAY_HOME/osgi/marketplace/Liferay Data Engine - SPI.lpkg
 
         LIFERAY_HOME/osgi/marketplace/Liferay Data Engine - Impl.lpkg
 

Did this article resolve your issue ?

Legacy Knowledge Base