cancel
Showing results for 
Search instead for 
Did you mean: 

Error while processing internal filterchain

former_member664713
Active Participant
0 Kudos

Hi, Error while processing internal filterchain. Exception occurred at chain position: 10 of 16. Current filter: 'FilterChainProxy[Filter Chains: [[ Ant [pattern='/_ui/'], []], [ Ant [pattern='/checkout/'], [org.springframework.security.web.access.channel.ChannelProcessingFilter@7a95980e,

java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed] with root cause INFO | jvm 1 | main | 2019/01/23 21:10:23.223 | java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed INFO | jvm 1 | main | 2019/01/23 21:10:23.223 | at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:482)

Accepted Solutions (0)

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

The output buffer has already been flushed either manually by calling response.flushBuffer() or because you've written more to the response than the buffer size.

This commits the response and causes the status code and headers to be sent to the client.

Because you've sent the headers you can't then perform a redirect because that is sent as an HTTP header.

https://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html#flushBuffer()