[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-492) NPE in ParamMethodExpression

Stas Garifulin (JIRA) jira-events at jboss.com
Fri Nov 17 18:43:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBSEAM-492?page=all ]

Stas Garifulin updated JBSEAM-492:
----------------------------------

    Attachment: seam-simple.zip


Unless we are talking about EL variables here, it shouldn't matter when the


I attached little application which demonstrates the problem i described.
After deployment demo page will be accesible at:
http://localhost:8080/seam-simple/demo.seam
The demo page uses custom facelets tag defined in
view/WEB-INF/controls/sample.xhtml. Then you click button on the page you
will get NPE in MethodExpressionHelper.findParamTypes.
If you will debug this application please put breakpoints in
ParamMethodExpression constructor and "invoke" method. Then you will see
what ELContexts are different: context in constructor contains mapping info
between names used in "sample.xhtml" and actual values passed to control in
"demo.xhtml". I already mentioned you can also check facelets sources: they
create value expression objects for wrapped expressions during construction
too.
In my patch i create all neceary EL objects in constructor: target object
exression, method expression, arguments exprssions. "ve" variable is used in
findParamTypes (i commented 2 lines of code there), you rename it
to something like 'targetObjectVe'.

Stan


> NPE in ParamMethodExpression
> ----------------------------
>
>                 Key: JBSEAM-492
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-492
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>         Environment: jboss seam cvs head
> jsf-ri 1.2.03
> facelets 1.1.11
>            Reporter: Stas Garifulin
>         Assigned To: Stan Silvert
>             Fix For: 1.1.0.CR1
>
>         Attachments: MethodExpressionHelper.java, seam-simple.zip
>
>
> Forum thread:
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985161#3985161

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list