myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <...@myfaces.apache.org>
Subject [jira] Updated: (MYFACES-1070) NullPointerException in MyFacesGenericPortlet.facesRender method
Date Mon, 03 Apr 2006 17:29:52 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-1070?page=all ]

Mike Kienenberger updated MYFACES-1070:
---------------------------------------

    Status: Open  (was: Patch Available)

> NullPointerException in MyFacesGenericPortlet.facesRender method
> ----------------------------------------------------------------
>
>          Key: MYFACES-1070
>          URL: http://issues.apache.org/jira/browse/MYFACES-1070
>      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
>     Assignee: Stan Silvert

>
> 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
trace:
> java.lang.NullPointerException
>         at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:393)
>         at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
>         at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:154)
>         at javax.portlet.GenericPortlet.render(GenericPortlet.java:394)
>         at org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:499)
>         at org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:416)
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message