我开发了我的项目与hybris.And我想在500Error.jsp 但我不能处理500错误的一些模板。下一步我无法获得jsp文件。500错误处理在Spring MVC
我得到这个错误:
SEVERE: Servlet.service() for servlet DispatcherServlet threw exception
java.lang.NullPointerException
Aug 10, 2017 3:14:07 PM org.apache.catalina.core.StandardHostValve custom
SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/serverError]
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
在web.xml文件
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/serverError</location>
</error-page>
在Controller.java
以下方法
@RequestMapping(value = "serverError", method = RequestMethod.GET)
public String renderErrorPage(final Model model, HttpServletRequest httpRequest) throws CMSItemNotFoundException {
也许你MST开头“SERVERERROR” – Jens