Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nullpointerexception on request.getHeaderNames method call in websphere

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?

like image 568
Vinesh Avatar asked Jan 31 '26 10:01

Vinesh


1 Answers

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.

like image 105
Vinesh Avatar answered Feb 03 '26 11:02

Vinesh