]
Remy Maucherat resolved JBWEB-298.
----------------------------------
Fix Version/s: JBossWeb-7.5.0.GA
Resolution: Done
r2499 in web.
NPE on addFilter in WsServerContainer
-------------------------------------
Key: JBWEB-298
URL:
https://issues.jboss.org/browse/JBWEB-298
Project: JBoss Web
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Tomcat
Reporter: Bartosz Baranowski
Assignee: Remy Maucherat
Priority: Minor
Fix For: JBossWeb-7.5.0.GA
Attachments: jboss-websocket-hello.war
I'm not sure if this is just faulty test/edge case/WFLY/EAP integration failure, but
there is case when org.apache.tomcat.websocket.server.WsSci is scheduled and triggered
twice. This makes WsServerContainer throw NPE, since servletContext.addFilter[1] return
null if filter with specified name exist.
Regardless this case being a valid one or not, WsServerContainer should handle this
either with proper message or different exception than NPE.
I'm assigning this to myself for time being( until I can establish if WFLY/EAP being
at fault and procure testcase )
[1]
https://source.jboss.org/browse/JBossWeb/branches/7.4.x/src/main/java/org...