[richfaces-issues] [JBoss JIRA] (RF-13740) Richfaces 4.5 with MyFaces causes NPE on AJAX requests

Michal Petrov (JIRA) issues at jboss.org
Tue Jul 29 06:06:29 EDT 2014


    [ https://issues.jboss.org/browse/RF-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988577#comment-12988577 ] 

Michal Petrov commented on RF-13740:
------------------------------------

This is in {{PartialViewContextImpl.processPartialRendering}} (myfaces 2.2.4):
{code}
    //TODO process partial rendering
    //https://issues.apache.org/jira/browse/MYFACES-2118
    //Collection<String> renderIds = getRenderIds();
{code}
the getRenderIds should set the ids, no idea why it is commented (the issue is marked as resolved). In Mojarra the ids are retrieved at the start of the corresponding method.

> Richfaces 4.5 with MyFaces causes NPE on AJAX requests
> ------------------------------------------------------
>
>                 Key: RF-13740
>                 URL: https://issues.jboss.org/browse/RF-13740
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.5.0.Alpha3
>         Environment: Simpleapp archetype
> Firefox/Chrome
> Myfaces (I tried with several latest versions)
> Tomcat 7
>            Reporter: Matej Novotny
>            Assignee: Michal Petrov
>            Priority: Critical
>             Fix For: 4.5.0.Beta1
>
>
> When you deploy RichFaces 4.5 application with MyFaces as JSF implementation to Tomcat, any Ajax request will get NPE in a response. Therefore the whole application will not work.
> Easiest way to reproduce this is with archetypes - see steps to reproduce.
> But it can be also reproducer with Metamer (generate WAR file with myfaced and deploy to Tomcat 7)
> This is how the Ajax response looks like:
> {code:xml}
> <partial-response>
> <error>
> <error-name>java.lang.NullPointerException</error-name>
> <error-message></error-message>
> </error>
> <changes>
> <extension id="org.richfaces.extension">
> <render>output</render>
> </extension>
> </changes>
> </partial-response>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the richfaces-issues mailing list