]
Stuart Douglas commented on WFLY-4589:
--------------------------------------
Is is caused by Undertow not waiting for all the close messages to be received when it
shuts down the deployment. The server starts shutting down and OnClose is invoked while
the server is in an inconsistent state.
I have added some code to Undertow so it will attempt to wait for all the close messages
to be received.
java.lang.IllegalStateException: PBOX000048: Failed to obtain
ApplicationPolicy for domain other
------------------------------------------------------------------------------------------------
Key: WFLY-4589
URL:
https://issues.jboss.org/browse/WFLY-4589
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 9.0.0.CR1
Environment: java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
cheffamille:wildfly-9.0.0.CR1 jfarcand$
Reporter: Jeanfrancois Arcand
Assignee: Stuart Douglas
Priority: Minor
Deploy atmosphere-chat.war (download it from Maven). Deploy, use WebSockets, then
shutdown Wildfly 9.0.0.CR1
08:47:41,792 ERROR [io.undertow.websockets.jsr.request] (default task-17) UT026006:
Exception running web socket method: java.lang.IllegalStateException: PBOX000048: Failed
to obtain ApplicationPolicy for domain other
at
org.jboss.security.plugins.mapping.JBossMappingManager.getMappingContext(JBossMappingManager.java:67)
at
org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.setup(SecurityContextThreadSetupAction.java:110)
at
io.undertow.servlet.core.CompositeThreadSetupAction.setup(CompositeThreadSetupAction.java:42)
at
io.undertow.websockets.jsr.ServerWebSocketContainer.invokeEndpointMethod(ServerWebSocketContainer.java:416)
at
io.undertow.websockets.jsr.ServerWebSocketContainer$3.run(ServerWebSocketContainer.java:403)
at io.undertow.websockets.jsr.OrderedExecutor$ExecutorTask.run(OrderedExecutor.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)