The reason for the exception was in my SessionBean classes.
I asked above if the reason could be the injection of beans into another via faceContext. Now I give an answer to myself: "Yes, this may be the reason."
public class MySessionBean { private static FacesContext facesContext = FacesContext.getCurrentInstance(); private utils.AnotherSessionBean injectedSessionBean = (utils.AnotherSessionBean) facesContext.getApplication().getELResolver().getValue(facesContext.getELContext(), null, "anotherSessionBean");
I felt free to instantiate the current FacesContext outside of any method or constructor, which was not very good, because after the timeout session I used the old or mabey no session context. MySessionBean was rebooted or received a new instance, but it did not update the FacesContext. The result of this is described above ^^
Conclusion: therefore, getting the FacesContext belongs to the code block of a method or constructor.
Many thanks for your help!
source share