2 Replies Latest reply on May 9, 2007 11:06 AM by mugwump

    EvaluationExcepion for page-action

    mugwump

      I'm getting a strange exception when I try to execute a page-action:

      javax.faces.el.EvaluationException: Exception while invoking expression #{resultsManager.selectResults}
      
      org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
      org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
      org.jboss.seam.core.Expressions$2.invoke(Expressions.java:148)
      org.jboss.seam.pages.Page.enter(Page.java:229)
      org.jboss.seam.core.Pages.enterPage(Pages.java:276)
      org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:276)
      org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:214)
      org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
      org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
      org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      java.lang.Thread.run(Thread.java:619)
      


      This is the pageAction:
      <page view-id="/protected/examResults.xhtml"
       action="#{resultsManager.selectResults(examId)}">
       <param name="examId" />
      </page>
      


      And this is the interface:
      public interface ResultsManager {
       public void selectResults(String examId);
      }
      


      with a StatelessSessionBean named "resultsManager" implementing it.

      This works fine on a windows-box where I develop, however it fails with the above exception on a linux-box where I deploy it. Anyone knows why this should not work?

      I even tried to go back to a request-parameter and calling the method without a parameter, but this gives the same exception on linux (and works fine on the windows-box) - is it maybe something about the expression-language extensions??!? I'm currently cluelless and any hints are highly appreciated!!!

      cheers
      stefan



        • 1. Re: EvaluationExcepion for page-action
          pmuir

          The param needs a value attribute for starters.

          • 2. Re: EvaluationExcepion for page-action
            mugwump

            I thought, when I leave the value blank, it just passes through the reqeust parameter with the given name - this seems to be working - at least under windows.

            Anyway, I tried it without the parameter and still get the same Exception - it does not even call the method, it just does not evaluate the el correctly. What other differences could there be between a linux and a jboss-box - both run the same seam/el-Versions (its the same app).