Details
-
Bug
-
Resolution: Done
-
Major
-
8.1.0.Final
-
None
Description
If an async servlet calls sendError(...) when an <error-page> is added to the web.xml, the exception below occurs. If the <error-page> is removed (not possible for me), the servlet works just fine.
Exception in thread "default task-29" java.lang.IllegalStateException: UT000048: No request is currently active
at io.undertow.servlet.handlers.ServletRequestContext.requireCurrent(ServletRequestContext.java:63)
at io.undertow.servlet.spec.SecurityActions.requireCurrentServletRequestContext(SecurityActions.java:86)
at io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:324)
at io.undertow.servlet.spec.RequestDispatcherImpl.error(RequestDispatcherImpl.java:311)
at io.undertow.servlet.spec.HttpServletResponseImpl.sendError(HttpServletResponseImpl.java:128)
at TestAsyncServlet$1.run(TestAsyncServlet.java:25)
at io.undertow.servlet.spec.AsyncContextImpl$4.run(AsyncContextImpl.java:309)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)