]
Radoslav Husar reassigned WFLY-11514:
-------------------------------------
Assignee: Flavia Rainone (was: Stuart Douglas)
NPE in ServletContextImpl#getContextPath on undeploy
----------------------------------------------------
Key: WFLY-11514
URL:
https://issues.jboss.org/browse/WFLY-11514
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 15.0.0.Final
Reporter: Radoslav Husar
Assignee: Flavia Rainone
Priority: Major
Reproduced intermittently with
{{org.jboss.as.test.clustering.cluster.web.DistributableTestCase}} (as reported on
WFLY-11403).
{noformat}
15:22:51,695 ERROR [io.undertow.request] (default task-2) UT005071: Undertow request
failed HttpServerExchange{ GET /DistributableTestCase/simple request
{Connection=[Keep-Alive], Accept-Encoding=[gzip,deflate],
Cookie=[JSESSIONID=4Djfh5OorcTQsOL7EDiIJrFN1zWdBXx46cg5BdXu.node-1],
User-Agent=[Apache-HttpClient/4.5.4 (Java/1.8.0_152)], Host=[[::1]:8080]} response {}}:
java.lang.NullPointerException
at
io.undertow.servlet.spec.ServletContextImpl.getContextPath(ServletContextImpl.java:210)
at
io.undertow.servlet.spec.HttpServletRequestImpl.getContextPath(HttpServletRequestImpl.java:293)
at
io.undertow.servlet.handlers.ServletDebugPageHandler.handleRequest(ServletDebugPageHandler.java:107)
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:332)
at
io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at
io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at
io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at
io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at
io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at
org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
{noformat}