NullPointer exception in ErrorPageWriter
----------------------------------------
Key: MYFACES-1740
URL: https://issues.apache.org/jira/browse/MYFACES-1740
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.1.6
Environment: Oracle Application Server 10.1.3.1
Myfaces 1.1.6 + Tomahawk + Ajax4JSF (also happens without the AJAX library)
Java 5
In a Suse 9 Box
Reporter: Ricardo RamÃrez
Since I updated to 1.1.6, my error log has a lot of these:
java.lang.NullPointerException:
javax.faces.webapp._ErrorPageWriter.isText(_ErrorPageWriter.java:344)
javax.faces.webapp._ErrorPageWriter.writeComponent(_ErrorPageWriter.java:220)
javax.faces.webapp._ErrorPageWriter.debugHtml(_ErrorPageWriter.java:143)
javax.faces.webapp._ErrorPageWriter.handleException(_ErrorPageWriter.java:359)
javax.faces.webapp.FacesServlet.handleLifecycleException(FacesServlet.java:182)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:145)
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
I'm sorry, I've tried reproduced the problem, but I can't. In my single-machine
installation, it works fine. Once I load it in the productions servers, with
100+ concurrent users, I start getting this issue. The application itself works
fine, and the users haven't reported an unavailable service, but i get like 20
or so of this exceptions daily.
Any chance that at line 344 of ErrorPageWriter:
return (c.getClass().getName().startsWith("com.sun.facelets.compiler"));
would be changed to:
return c != null &&
(c.getClass().getName().startsWith("com.sun.facelets.compiler"));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.