org.springframework.web.context.request.RequestContextHolder documents that org.springframework.web.servlet.DispatcherServlet exposes it by default. However it's not true:
DispatcherServlet has removed that fuctionality since d950b56
Thus the exception message used inside org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes() is also misleading.