myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3535) javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException:
Date Fri, 04 May 2012 11:06:48 GMT

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

Martin Kočí commented on MYFACES-3535:
--------------------------------------

Hi, this is Expression Language feature, not myfaces. All String #{ ... }  are instances of
javax.el.ValueExpression and resolving this expression is outside myfaces. I guess you are
able to reproduce this issue with simple

#{proj.stakeholders.get(0)} 

without any component, right? It seems that EL creates from "0" a java.util.Lang (that is
correct) but does not perform coertion from Long -> Integer . Same reason for MYFACES-3533.

I'm no expert for WAS, but log shows that WAS uses simply tomcat as web container and therefore
org.apache.el implementation. Please try to locate jasper-el.jar in WAS instalation and provide
Implementation-Version: form MANIFEST.MF . Please join IRC #myfaces if you need some operative
help
                
> javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException:
> -------------------------------------------------------------------------
>
>                 Key: MYFACES-3535
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3535
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>         Environment: WebSphere 8.002
>            Reporter: Jürg Brandenberger
>            Priority: Critical
>         Attachments: TextLog_12.05.04_11.09.24.log, TextLog_12.05.04_11.09.24.log, TextLog_12.05.04_11.09.24.log
>
>
> Application port from from Mojarra / Glassfish 3.1 and JBoss 7.1 to WebSphere 8 using
MyFaces. With the Mojarra implementation no problems arise, while with MyFaces almost nothing
is running! Class not found exceptions, Method not found exceptions, see log trace, while
every thing exist and the difference consist of the jsf implementation used by the AS!
> The method ProjectHandler#generateDocumentContent() exist, and is declared public!
> action="#{cc.attrs.handler.generateDocumentContent(cc.attrs.handler.documentId[0])}"
> "cc.attrs.handler" is correctly replaced by "ProjectHandler" so the syntax is correct
and Myfaces should also be able to find the method:
> public final String generateDocumentContent(final String contentType) { ... }
> [02.05.12 08:22:12:382 MESZ] 0000003a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider
logIncident FFDC1003I: FFDC Inci
> dent emitted on D:\programs\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\ffdc\server1_3a1fffb_12.05.02_08.22.12.272254
> 170309146331495.txt com.ibm.ws.webcontainer.webapp.WebApp.getResourceAsStream 602
> [02.05.12 08:22:12:428 MESZ] 0000003a ErrorPageWrit E   An exception occurred
>                                  javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException:
/resources/ut
> ils/listMenu.xhtml at line 98 and column 72 action="#{cc.attrs.handler.generateDocumentContent(cc.attrs.handler.document
> Id[0])}": Method not found: ch.commcity.monterosa.web.ProjectHandler@39c7d55.generateDocumentContent()
> 	at javax.faces.component._MethodExpressionToMethodBinding.invoke(_MethodExpressionToMethodBinding.java:92)
> 	at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:100)
> 	at javax.faces.component.UICommand.broadcast(UICommand.java:120)
> 	at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:973)
> 	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:275)
> 	at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1285)
> 	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:711)
> 	at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:34)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
> 	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
> 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1020)
> 	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
> 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
> 	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
> 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.j
> ava:214)
> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
> 	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
> 	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> 	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
> 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
> 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
> 	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
> 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
> 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
> Caused by: javax.el.MethodNotFoundException: /resources/utils/listMenu.xhtml at line
98 and column 72 action="#{cc.attrs
> .handler.generateDocumentContent(cc.attrs.handler.documentId[0])}": Method not found:
ch.commcity.monterosa.web.ProjectH
> andler@39c7d55.generateDocumentContent()
> 	at org.apache.myfaces.view.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:91)
> 	at javax.faces.component._MethodExpressionToMethodBinding.invoke(_MethodExpressionToMethodBinding.java:88)
> 	... 33 more

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

       

Mime
View raw message