I created a tiny sample with this problem -> might be found here. There is only one SLSB and a test class which injects it and attempts to use the InjectionPoint. I dropped the servlet entirely as it is not needed to simulate this problem.
Closer debugging shows that while InjectionPoint is NOT null, any call made to it will fail, since delegate() call will result in null. It leads to ThreadLocalStack, where there is an attempt to peek at the top most element on the stack; this call returns null. Specifically this line of code will yield null result.
NOTE: The injection point for SLSB was likely implemented based on
WELD-1177
and might have a connection to this one.
|