java.lang.IllegalStateException: Cannot call sendError() after the response has been committed

GitHub | IgorRodchenkov | 6 months ago
  1. 0

    GitHub comment 253#224388334

    GitHub | 6 months ago | IgorRodchenkov
    java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
  2. 0

    Many to Many Hibernate Spring configuration, Error: HTTPMessageNotWritableException: Could not write JSON

    Stack Overflow | 10 months ago | invinciblemuffi
    java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
  3. 0

    Tomcat CSRF Filter configuration

    Stack Overflow | 2 years ago | Nilesh
    java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. tvrmsmith 114 times, last 1 month ago
  2. Andreas Häber 1 times, last 6 months ago
29 unregistered visitors
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

    Cannot call sendError() after the response has been committed

    at org.apache.catalina.connector.ResponseFacade.sendError()
  2. Glassfish Core
    ResponseFacade.sendError
    1. org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:467)[cpath2-server.jar:na]
    1 frame
  3. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.sendServerError(DefaultHandlerExceptionResolver.java:313)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleHttpMessageNotWritable(DefaultHandlerExceptionResolver.java:370)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    3. org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.doResolveException(DefaultHandlerExceptionResolver.java:140)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    4. org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:138)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    5. org.springframework.web.servlet.DispatcherServlet.processHandlerException(DispatcherServlet.java:1183)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    6. org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1020)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    7. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    8. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    9. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    10. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    10 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)[cpath2-server.jar:na]
    1 frame
  5. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)[spring-webmvc-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    1 frame
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)[cpath2-server.jar:na]
    1 frame
  7. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[cpath2-server.jar:na]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[cpath2-server.jar:na]
    3. org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:436)[cpath2-server.jar:na]
    4. org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:177)[cpath2-server.jar:na]
    5. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[cpath2-server.jar:na]
    6. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[cpath2-server.jar:na]
    6 frames
  8. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)[spring-web-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    2 frames
  9. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[cpath2-server.jar:na]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[cpath2-server.jar:na]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)[cpath2-server.jar:na]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)[cpath2-server.jar:na]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)[cpath2-server.jar:na]
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)[cpath2-server.jar:na]
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)[cpath2-server.jar:na]
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)[cpath2-server.jar:na]
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[cpath2-server.jar:na]
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[cpath2-server.jar:na]
    10 frames
  10. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)[cpath2-server.jar:na]
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)[cpath2-server.jar:na]
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)[cpath2-server.jar:na]
    3 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_66]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_66]
    3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_66]
    3 frames