[jboss-jira] [JBoss JIRA] (WFLY-3460) Async servlet: HttpServletResponse.sendError() throws UT000048 if error page set
Darren Jones (JIRA)
issues at jboss.org
Fri Jun 6 06:44:16 EDT 2014
Darren Jones created WFLY-3460:
----------------------------------
Summary: Async servlet: HttpServletResponse.sendError() throws UT000048 if error page set
Key: WFLY-3460
URL: https://issues.jboss.org/browse/WFLY-3460
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.1.0.Final
Environment: Windows 7 Professional, Java 7u55
Reporter: Darren Jones
Assignee: Stuart Douglas
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)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jboss-jira
mailing list