How to disable "ErrorPageFilter"?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to disable "ErrorPageFilter"?

Joud Kassem
Hi everyone, am getting this error when running my app on Tomcat:

ERROR org.springframework.boot.web.servlet.support.ErrorPageFilter - Cannot forward to error page for request [/static/authClient/login] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
javax.servlet.ServletException: Filtered request failed.
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:384)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

Anyone knows why and how to disable the `ErrorPageFilter`?

knwing that am working with grails4 so spring boot 2

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAAUdRBQSAAGhRtzvAdD5Ty%3D150Vjy9Ra_1zWr9WtV_uEp9nBDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to disable "ErrorPageFilter"?

Joud Kassem
This page propose some solutions but how to apply it in a grails application? :/


On Wednesday, May 29, 2019 at 1:29:03 PM UTC+2, Joud wrote:
Hi everyone, am getting this error when running my app on Tomcat:

ERROR org.springframework.boot.web.servlet.support.ErrorPageFilter - Cannot forward to error page for request [/static/authClient/login] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
javax.servlet.ServletException: Filtered request failed.
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:384)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

Anyone knows why and how to disable the `ErrorPageFilter`?

knwing that am working with grails4 so spring boot 2

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/c63767d7-436c-4557-be2e-3d6a2a912a5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.