myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anonymous (JIRA)" <>
Subject [jira] Updated: (MYFACES-1070) NullPointerException in MyFacesGenericPortlet.facesRender method
Date Mon, 03 Apr 2006 17:14:51 GMT
     [ ]

 updated MYFACES-1070:

    Status: Patch Available  (was: Open)

> NullPointerException in MyFacesGenericPortlet.facesRender method
> ----------------------------------------------------------------
>          Key: MYFACES-1070
>          URL:
>      Project: MyFaces Core
>         Type: Bug

>   Components: General
>     Versions: 1.1.1
>  Environment: JDK 1.5.0 on Mac OS X 10.4 (Tiger); JBoss AS 4.0.3.SP1; JBoss Portal 2.2.0-FINAL
>     Reporter: Max Rudman

> Here are the steps to reproduce:
> 1) Submit a form inside of JSF-based portlet (in other words generate a Faces request)
> 2) Hit JBoss Portal URL page URL (I believe this causes the page and portlets to re-render)
> 3) Hot-redeploy WAR file containg the portlet.
> You no can't get to the page because the portlet throws a NPE. Here is partial stack
> java.lang.NullPointerException
>         at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(
>         at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(
>         at javax.portlet.GenericPortlet.doDispatch(
>         at javax.portlet.GenericPortlet.render(
>         at org.jboss.portal.portlet.PortletContainer.invokeRender(
>         at org.jboss.portal.portlet.PortletContainer.dispatch(
> The problem seems to be that FacesContextImpl object is no longer in PortletSession even
though the PortletSession itself is present. This is probably a bug in JBoss Portal. However,
facesRender method should check for null FacesContextImpl and treat it as a non-Faces request
(just like when PortletSession times out).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message