Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1740

NullPointer exception in ErrorPageWriter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.6
    • 1.1.6
    • None
    • None
    • 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

    Description

      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"));

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            ricardo_ramirez Ricardo Ramírez
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: