Why does HttpServletRequest.getRemoteAddr() return null sometimes? For approximately 2 out of 10 identical requests is returns null for no apparent reason.
Why does HttpServletRequest.getRemoteAddr() return null sometimes ? For approximately 2 out of 10 identical
Share
Using Tomcat7. Apparently
getRemoteAddr()can returnNULLif the request has already been consumed, i.e. a response has been sent. It can even throw NPE sometimes. An error in my code in any case.