Forum Stats

  • 3,838,710 Users
  • 2,262,394 Discussions
  • 7,900,739 Comments

Discussions

java.lang.IllegalStateException: cannot resize buffer

3612853
3612853 Member Posts: 2
edited Jan 4, 2018 10:24AM in Java Servlet

HI all,

Please bare with me for this question.

I have an action class.Once all of the processing is completed, I can see with the debugging statements that the following command

filterChain.doFilter(request, servletResponse);

is being called multiple times. Which causes an illgal state exception.

java.lang.IllegalStateException: Cannot resize buffer - 640 bytes have already been written (Servlet 2.3, sec. 5.1)

at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:416)

at com.tonbeller.sironkyc.server.SironKYCLoginFilter.doFilter(SironKYCLoginFilter.java:56)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at com.tonbeller.sironkyc.server.SironKYCRequestFilter.doFilter(SironKYCRequestFilter.java:53)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at com.tonbeller.sironkyc.server.XssPreventionFilter.doFilter(XssPreventionFilter.java:39)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3701)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3667)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)

at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)

at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)

at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)

at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2443)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2291)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2269)

at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1703)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1663)

at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)

at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)

at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)

at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)

at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)

at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)

Answers

This discussion has been closed.