-
Type:
Task
-
Status: Resolved
-
Priority:
Major
-
Resolution: Resolved
-
Affects Version/s: 1.4.2
-
Fix Version/s: 1.5.0
-
Component/s: Authentication (log-in), Configuration, Web
-
Labels:
-
Environment:OpenLiberty 18.0.0.4 and higher
Liberty Profile 18.0.0.4 and higher
++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.