Hi Mario, the only case i remember where the FacesContext is null was rendering the errorpage after another error occurs.
I don't think this is the case in your situation, you wrote you see this in the logs only, if i remember correct. But maybe it gives you a hint. Regards, Volker Mario Ivankovits wrote: > Hi! > > Ok, In my case the FacesContext is null. > > html.HtmlRendererUtils - *NULL* context null > Servlet.service() for servlet opsj threw exception > java.lang.NullPointerException > at > org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:1008) > at > org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader(AddResource.java:713) > at > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:139) > > It will be hard work to determine why the facesContext is null. > One idea I have in mind is, that the given page has an iframe which will > also be a faces page. > > Now that exactly this page works multiple times and only fails rarely I > guess this has something to do with concurrency, though, the faces > context is in an thread local, so why should this have something to do > with conc? > > Odd, thing - If no one else has a new idea, I have to add more debug > statements. > > --- > Mario > -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.

