Hello,

We found a NullPointerException occuring in
JspViewHandlerImpl.getServletMappings().
It could be traced back to an implementation problem in method
org.apache.myfaces.shared_impl.webapp.webxml.WebXML.getServletMappings()
.

This method is used as singleton. When called simultaneously from
different requests, the result collection saved as member variable
remains in inconsistent state and contains some unexpected null entries
causing the NPE in JspViewHandlerImpl.

We produced that error with a frameset having 2 frames using JSF pages,
but the frameset definition itself not.
It might probably come under different circumstances too.

Our simplest solution was to synchronize the whole block of the method
altough more efficient ways shall be possible.
Please note that other methods (e.g. getFacesExtensionsFilterMappings())
of this and similar classes will lack the same problem.

Sorry if you already have fixed this in later versions of MyFaces (we
ourself can not upgrade yet).

Thank you for your notice.

Cheers, Matthias.

Reply via email to