You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (Commented) (JIRA)" <ji...@apache.org> on 2012/04/19 00:48:40 UTC

[jira] [Commented] (GERONIMO-6330) NPE in CompositeELResolver

    [ https://issues.apache.org/jira/browse/GERONIMO-6330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257049#comment-13257049 ] 

Jarek Gawor commented on GERONIMO-6330:
---------------------------------------

The problem is that the CompositeELResolver was iterating over the resolvers array directly instead of relying on the size field.
Fix committed in revision 1327712.

                
> NPE in CompositeELResolver
> --------------------------
>
>                 Key: GERONIMO-6330
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6330
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: specs
>    Affects Versions: 3.0-beta-1
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0-beta-2
>
>
> When you create an application which contains a JSF mapping in your web.xml file, JSP (JavaServer *Pages*) files which contain an EL function, throw a NPE. Here is the web.xml changes I added to a small JSP application:
>   <servlet>
>     <servlet-name>Faces Servlet</servlet-name>
>     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>Faces Servlet</servlet-name>
>     <url-pattern>/faces/*</url-pattern>
>     <url-pattern>*.jsf</url-pattern>
>   </servlet-mapping>
> After doing this and deploying the application, the following page throws an NPE:
> hello.jsp:
>   Test: '${pageContext.getRequest()}'
> Exception:
> java.lang.NullPointerException
> javax.el.CompositeELResolver.invoke(CompositeELResolver.java:225)
> javax.el.CompositeELResolver.invoke(CompositeELResolver.java:225)
> org.apache.el.parser.AstValue.getValue(AstValue.java:159)
> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
> org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:985)
> org.apache.jsp.hello_jsp._jspService(hello_jsp.java:63)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira