java.lang.IllegalStateException: Set buffer size after commit

Liferay Issues | Henrique Fernandes | 2 years ago
  1. 0

    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

    Liferay Issues | 2 years ago | Henrique Fernandes
    java.lang.IllegalStateException: Set buffer size after commit
  2. 0

    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)

    Liferay Issues | 3 years ago | marius salomeia
    java.lang.IllegalStateException: Set buffer size after commit
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Set buffer size after commit

      at com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize()
    2. Liferay Portal Service
      PortletServletResponse.setBufferSize
      1. com.liferay.portal.kernel.servlet.MetaInfoCacheServletResponse.setBufferSize(MetaInfoCacheServletResponse.java:401)
      2. com.liferay.portlet.MimeResponseImpl.setBufferSize(MimeResponseImpl.java:142)
      3. com.liferay.portlet.PortletServletResponse.setBufferSize(PortletServletResponse.java:280)
      3 frames
    3. JavaServlet
      ServletResponseWrapper.setBufferSize
      1. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185)
      2. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:185)
      2 frames
    4. weblogic.servlet.jsp
      JspFactoryImpl.getPageContext
      1. weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:73)
      2. weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:109)
      3. weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:37)
      3 frames
    5. jsp_servlet._html._taglib
      __end._jspService
      1. jsp_servlet._html._taglib._aui._form.__end._jspService(__end.java:461)
      1 frame
    6. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      1 frame
    7. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      2. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      3. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
      5. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      6. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      6 frames
    8. Liferay Portal Service
      InvokerFilter.doFilter
      1. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      2. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
      3. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
      4. com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
      4 frames