java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When navigating in Liferay control panel there are several actions that cause a java.lang.IllegalStateException with the message "Set buffer size after commit" and the UI is not correctly presented to the user. This seems to be happening when using Liferay and WebLogic server. Steps to reproduce: # Sign in and go to control panel # Enter "Pages > Site Pages" # Click on one of the existing to see page details # A java.lang.IllegalStateException: Set buffer size after commit is presented in liferay log # Page details do not apear on the user interface The following message can be found in liferay log 15:37:30,145 ERROR [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=bMNQBhW7&p_p_id=156&p_p_lifecycle=2&p_p_state=maximized&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=10182&refererPlid=10411&controlPanelCategory=current_site.pages&_156_treeId=layoutsTree&_156_groupId=10182&_156_tabs1=public-pages&_156_viewLayout=true&_156_struts_action=%2Fgroup_pages%2Fedit_layouts&_156_selPlid=10411&_156_historyKey= generates exception: java.lang.IllegalStateException: Set buffer size after commit java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:73) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:109) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._form.__end._jspService(__end.java:461) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) A similiar issue can be reproduced in the Web Content tab: # Go to control panel # Enter "Content > Web Content" # Sort Web Content by Display or Modified Date # A java.lang.IllegalStateException: Set buffer size after commit is presented in liferay log # Contents are not sorted accordingly
    via by Henrique Fernandes,
  • Import of a LAR file previously exported from Liferay 6.2 fails with following exception: Environment: Liferay 6.2.1 EE - liferay-portal-6.2.10.1-ee-ga1-20131126141110470 AS: Weblogic 12c Release 2 (12.1.2) OS: Solaris 11 and Windows 7 Java Version: 1.6.45 14:05:31,572 ERROR [[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=GsnFqnJ7&p_p_id=156&p_p_lifecycle=2&p_p_state=pop_up&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=23501&refererPlid=11289&controlPanelCategory=sites&_156_groupId=23501&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_privateLayout=false&_156_validate=false generates exception: java.lang.IllegalStateException: Set buffer size after commit java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._input.__page._jspService(__page.java:596) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) 14:05:31,575 ERROR [[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=GsnFqnJ7&p_p_id=156&p_p_lifecycle=2&p_p_state=pop_up&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=23501&refererPlid=11289&controlPanelCategory=sites&_156_groupId=23501&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_privateLayout=false&_156_validate=false generates exception: java.lang.IllegalStateException: Set buffer size after commit java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._button_row.__start._jspService(__start.java:424) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) 14:05:31,579 ERROR [[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=GsnFqnJ7&p_p_id=156&p_p_lifecycle=2&p_p_state=pop_up&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=23501&refererPlid=11289&controlPanelCategory=sites&_156_groupId=23501&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_privateLayout=false&_156_validate=false generates exception: java.lang.IllegalStateException: Set buffer size after commit java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._button.__page._jspService(__page.java:451) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) 14:05:31,582 ERROR [[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=GsnFqnJ7&p_p_id=156&p_p_lifecycle=2&p_p_state=pop_up&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=23501&refererPlid=11289&controlPanelCategory=sites&_156_groupId=23501&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_privateLayout=false&_156_validate=false generates exception: java.lang.IllegalStateException: Set buffer size after commit java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._button.__page._jspService(__page.java:451) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) 14:05:31,585 ERROR [[ACTIVE] ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=GsnFqnJ7&p_p_id=156&p_p_lifecycle=2&p_p_state=pop_up&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=23501&refererPlid=11289&controlPanelCategory=sites&_156_groupId=23501&_156_struts_action=%2Fgroup_pages%2Fimport_layouts&_156_privateLayout=false&_156_validate=false generates exception: java.lang.IllegalStateException: Set buffer size after commit java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._form.__end._jspService(__end.java:461) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
    via by marius salomeia,
    • java.lang.IllegalStateException: Set buffer size after commit at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401) at com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142) at com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185) at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:73) at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:109) at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37) at jsp_servlet._html._taglib._aui._form.__end._jspService(__end.java:461) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
    No Bugmate found.