Я использую Java 6, JSF 1.2, Spring на Tomcat, и если я выполняю операцию после тайм-аута с определенной страницы, я получаю исключение ниже.
Мой вопрос: почему страница не перенаправляется на мою страницу с ошибкой /error/error.jsf?
Это web.xml (у меня нет фильтров):
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/error/error.jsf</location>
</error-page>
<error-page>
<exception-type>java.lang.IllegalStateException</exception-type>
<location>/error/error.jsf</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error/error.jsf</location>
</error-page>
<error-page>
<exception-type>org.springframework.beans.factory.BeanCreationException</exception-type>
<location>/error/error.jsf</location>
</error-page>
Это сообщение об ошибке на моей странице:
An Error Occurred:
Error creating bean with name 'melaketViewHandler' defined in
ServletContext resource [/WEB-INF/JSFViewHandlersContext.xml]: Instantiation
of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [com.ewave.meuhedet.view.melaketViewHandlers.MelaketViewHandler]: Constructor threw
exception; nested exception is java.lang.NullPointerException
- Stack Trace
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'melaketViewHandler' defined in ServletContext resource
[/WEB-INF/JSFViewHandlersContext.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [com.ewave.meuhedet.view.melaketViewHandlers.MelaketViewHandler]:
Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
...