2009/8/17 <[email protected]>

> 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).
>

Hi

I remember that one. Take a look at this one:

http://issues.apache.org/jira/browse/MYFACES-2165

A patch was applied, so the solution is included in 1.1.7 and 1.2.7. It
could be good to have confirmation that solution solves the problem (I
haven't close that one yet by that reason).

regards

Leonardo Uribe


>
> Thank you for your notice.
>
> Cheers, Matthias.
>

Reply via email to