Legacy Knowledge Base
Published Sep. 10, 2025

Resolving 'UnsupportedOperationException' Caused by an Invalid Audit Max Queue Size Setting

Written By

Vincent Liu

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.

This article documents steps on how to increase the audit message max queue size that leads to an UnsupportedOperationException

By default, System Settings > Foundation > Audit > "Audit message max queue size" is set at 200. The value is supposed to be greater than 0. This specific message queue configuration is to manage the audit event. If an invalid value is set (for example, 0) the Portal Admin won’t be able to create User Groups as a result. Portlet is temporarily unavailable and UnsupportedOperationException will be observed on both the front and back ends respectively. 

Steps to Reproduce

  1. Navigate to Control Panel  > Configuration  > System Settings  > Foundation  > Audit
  2. Click Edit
  3. Set Audit message max queue size to 0
  4. Navigate to Users > User Groups
  5. Create a User Group and click Save

Observed Behavior

The user group can’t be created successfully with the following error message(snippet):

11:11:52,529 ERROR [ajp-nio-8009-exec-21][PortletServlet:111] javax.portlet.PortletException: com.liferay.portal.kernel.exception.ModelListenerException: java.lang.UnsupportedOperationException

javax.portlet.PortletException: com.liferay.portal.kernel.exception.ModelListenerException: java.lang.UnsupportedOperationException

       at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:203)

       at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:418)

       at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:93)

If above exception is observed, please check if the max queue size is valid or not. If not valid, please follow the below steps to update Audit message max queue size to resolve this.

Resolution

  1. Navigate to Control Panel > Configuration > System Settings > Foundation > Audit
  2. Click Edit
  3. Adjust Audit message max queue size greater than 0
  4. Connect to Gogo shell: eg: open command line and execute telnet localhost 11311
  5. Execute command: lb audit | grep Wiring
    1. It will return an output like:
      284|Active | 10|Liferay Portal Security Audit Wiring (2.0.4)
  6. Execute command: refresh 284
    1. Note: 284 is the service ID you get from previous step.
  7. Navigate to Users > User Groups
  8. Create a User Group and click Save
Did this article resolve your issue ?

Legacy Knowledge Base