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/licenseURL 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.