You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Max Rudman (JIRA)" <de...@myfaces.apache.org> on 2006/01/28 22:24:32 UTC

[jira] Created: (MYFACES-1070) NullPointerException in MyFacesGenericPortlet.facesRender method

NullPointerException in MyFacesGenericPortlet.facesRender method
----------------------------------------------------------------

         Key: MYFACES-1070
         URL: http://issues.apache.org/jira/browse/MYFACES-1070
     Project: MyFaces
        Type: Bug
  Components: Implementation  
    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


[jira] Resolved: (MYFACES-1070) NullPointerException in MyFacesGenericPortlet.facesRender method

Posted by "Stan Silvert (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-1070?page=all ]
     
Stan Silvert resolved MYFACES-1070:
-----------------------------------

    Fix Version: 1.1.4-SNAPSHOT
     Resolution: Fixed

Fixed

> NullPointerException in MyFacesGenericPortlet.facesRender method
> ----------------------------------------------------------------
>
>          Key: MYFACES-1070
>          URL: http://issues.apache.org/jira/browse/MYFACES-1070
>      Project: MyFaces Core
>         Type: Bug

>   Components: Portlet_Support
>     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
>      Fix For: 1.1.4-SNAPSHOT

>
> 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


[jira] Updated: (MYFACES-1070) NullPointerException in MyFacesGenericPortlet.facesRender method

Posted by "Anonymous (JIRA)" <de...@myfaces.apache.org>.
     [ 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


[jira] Updated: (MYFACES-1070) NullPointerException in MyFacesGenericPortlet.facesRender method

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
     [ 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