myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Huemer (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-1740) NullPointer exception in ErrorPageWriter
Date Tue, 09 Oct 2007 18:47:50 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533451
] 

Bernhard Huemer commented on MYFACES-1740:
------------------------------------------

The only possible reason for this failure - or at least the only reason I can think of without
further investigation - is the UIViewRoot being null, for example because of an error that
occurs while restoring the view.  However, Mario has fixed this issue recently and therefore
I'd recommend you to retry using the current head. 

> 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
>            Priority: Minor
>
> 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.


Mime
View raw message