Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Resolved
-
1.4.2
-
OpenLiberty 18.0.0.4 and higher
Liberty Profile 18.0.0.4 and higher
Description
++When calling a method which is async (available since servlet 3.1 or even earlier), some web servers like liberty will throw a NPE.
example code:
@GET public void getAction(final @Suspended AsyncResponse asyncResponse) { asyncResponse.resume(() -> Response.ok().build()); }
Even before the code is executed, shiro causes a NullPointerException in some application servers, because it does not advertise it is compatible with async servlets / methods.
This happens when used with the dependency shiro-servlet.
FIX (PR on the way): Add async to the web_fragment.xml.