You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Anonymous (JIRA)" <de...@myfaces.apache.org> on 2006/04/03 19:14:51 UTC
[jira] Updated: (MYFACES-1070) NullPointerException in
MyFacesGenericPortlet.facesRender method
[ http://issues.apache.org/jira/browse/MYFACES-1070?page=all ]
updated MYFACES-1070:
----------------------
Status: Patch Available (was: Open)
> 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
>
> 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