[ 
https://issues.apache.org/jira/browse/MYFACES-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jakob Korherr resolved MYFACES-2826.
------------------------------------

    Fix Version/s: 2.0.2-SNAPSHOT
       Resolution: Fixed

> NPE when using the new UEL inside a composite component in Glassfish 3.0.1
> --------------------------------------------------------------------------
>
>                 Key: MYFACES-2826
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2826
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.1
>         Environment: glassfish3.0.1
>            Reporter: Jan-Kees van Andel
>            Assignee: Jakob Korherr
>             Fix For: 2.0.2-SNAPSHOT
>
>
> When I write a composite component like this one:
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:f="http://java.sun.com/jsf/core";
>       xmlns:h="http://java.sun.com/jsf/html";
>       xmlns:p="http://www.parleys.com/jsf/taglib";
>       xmlns:composite="http://java.sun.com/jsf/composite";>
> <composite:interface>
>     <composite:attribute name="navigateToPage" type="java.lang.String"/>
> </composite:interface>
> <composite:implementation>
>     <h:commandLink id="asdsadsdadasdas"
>                    action="#{testBean.gotoPage(cc.attrs.navigateToPage)}"
>                    value="MyFaces Test">
>         <composite:insertChildren/>
>     </h:commandLink>
> </composite:implementation>
> </html>
> And I use it in my page like this:
> <parleys:navigationLink2 navigateToPage="channels"/>
> I get the following NPE:
> [#|2010-07-18T15:27:08.227+0200|SEVERE|glassfish3.0.1|org.apache.myfaces.renderkit.ErrorPageWriter|_ThreadID=27;_ThreadName=Thread-1;|An
>  exception occurred
> javax.faces.FacesException: java.lang.NullPointerException
>       at 
> org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
>       at 
> org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
>       at 
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:191)
>       at 
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
>       at 
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>       at 
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>       at 
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
>       at 
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>       at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>       at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>       at 
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>       at 
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>       at 
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>       at 
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>       at 
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>       at 
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>       at 
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>       at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>       at 
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>       at 
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.myfaces.view.facelets.el.ValueExpressionMethodExpression.getExpressionString(ValueExpressionMethodExpression.java:70)
>       at 
> org.apache.myfaces.view.facelets.el.TagMethodExpression.getExpressionString(TagMethodExpression.java:101)
>       at 
> javax.faces.component._MethodExpressionToMethodBinding.getExpressionString(_MethodExpressionToMethodBinding.java:60)
>       at 
> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:97)
>       at javax.faces.component.UICommand.broadcast(UICommand.java:120)
>       at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:889)
>       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:238)
>       at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1201)
>       at 
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:627)
>       at 
> org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:34)
>       at 
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
>       ... 26 more
> I am using Glassfish 3.0.1, with the Sun UEL implementation. It works when I 
> disable MyFaces and use Mojarra.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to