In websphere (version 6 sp11), when I call the request.getHeaderNames method, I get this exception
java.lang.NullPointerException at com.ibm.ws.webcontainer.srt.SRTServletRequest.getHeaderNames(SRTServletRequest.java:345) at ....
I do not have source code for SRTServletRequest.
Has anyone encountered this problem?
Finally, I have an answer, thanks to everyone for helping me. the problem was as follows: 1. the developer saved the request in the class field and 2. according to the request field of the time level to which access is made, some other thread starts and ends, therefore, it destroys the call and nullPointer.
NPE .
, WebSphere, NPE SRTServletRequest.getHeaderNames() , , , " ". , , WebSphere . , , WebSphere Spring, , , , WebSphere .
doPost() getHeaderNames(), , -, WebSphere , ? - , .
Source: https://habr.com/ru/post/1713825/More articles:Невозможно создать JAXBContext в веб-службе Java - javaWPF Insert DLL into EXE - exeCan I read and write to multiple file descriptors at the same time (Perl)? - perlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1713823/send-commands-to-other-command-line-programs&usg=ALkJrhjy1pwYePjaSrMnRxErI_VAp6GpgADownload WPF Animation - asynchronousHow do you debug Display / CSS issues in multiple browsers? - cssEnabling file name completion in the new vim command - vimCan Pre-Build Events Raise Alerts? - build-processhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1713829/svn-path-to-repository&usg=ALkJrhgVbzbs9up8EFKign5SkY8T3AW-WQCSS Questions - IE7 and 8 - jqueryAll Articles