Legacy Knowledge Base
Published Sep. 10, 2025

Local development Liferay bundle will stop working with IllegalStateException: Send redirect after commit

Written By

Alfonso Crisci

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

  • Portal developers running a local Liferay bundle with a developer Activation Key may suddenly be unable to use the server. The interface will redirect to /c/portal/license URL showing the License Server details and the below error will appear in the server logs:

    ERROR [http-nio-8080-exec-3][MainServlet:1150] com.liferay.portal.kernel.events.ActionException: java.lang.IllegalStateException: Send redirect after commit
    com.liferay.portal.kernel.events.ActionException: java.lang.IllegalStateException: Send redirect after commit
    at com.liferay.portal.ee.license.LifecycleAction.processLifecycleEvent(Unknown Source)
    [...]
    Caused by: java.lang.IllegalStateException: Send redirect after commit
    at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.sendRedirect(MetaInfoCacheServletResponse.java:409)
    ... 147 more

    When this issue will happen, a server restart may be a temporary remediation.

Environment

  • Liferay DXP 7.0+

Resolution

  • Navigate to http://{hostname}:{port}/c/portal/license_lcs and hit the "Reset connections" button

Additional Information

  • In addition to the 3 concurrent sessions you are aware of, there are more concurrent sessions, and we recommend that you identify who or what is using up the rest of your sessions. Some possible situations that trigger the connection limit to be exceeded:

      •  The server is accessed by a user without cookies enabled, which causes a new session to be created with each request

      • The server is visible on the Internet and external users (for example, search engine crawlers) are accessing the web pages

      • The server is accessed through web services or RSS consumers

  • To identify which situation applies to you, or if you experience a different situation compared to the ones listed above, please monitor the access to your server. Natively in Liferay, it's possible to check the connections only for logged-in users, this can be done from Control Panel > Users > Monitoring. Any connections from Guest/Non-Authenticated users won't be shown in this view and will have to be tracked with other third-party monitoring tools at your discretion.
Did this article resolve your issue ?

Legacy Knowledge Base