nullpointerexception on request.getHeaderNames method call in websphere
java, nullpointerexception, websphere
Solution
Finally, I have got the answer, thanks everyone for helping me out. the issue was: 1. a developer has saved a request in class field and 2. by the time class level request field is accessed, some other thread started and ended, hence destroy call and nullPointer.
Problem
In websphere (version 6 sp11) on request.getHeaderNames method call, i get this exception ``` java.lang.NullPointerException at com.ibm.ws.webcontainer.srt.SRTServletRequest.getHeaderNames(SRTServletRequest.java:345) at .... ``` I dont have source code for SRTServletRequest. Has anybody faced this problem?