MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-390

Scope sanbox component is not working with seam, and will broke aplication.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.3-SNAPSHOT
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      myfaces last svn version, all seam version.

      Description

      11:29:37,141 INFO [org.apache.myfaces.custom.scope.ScopeUtils] ScopeContainer not found - has not been initialized.
      javax.faces.el.EvaluationException: Cannot get value for expression '#

      {ScopeContainer}

      '
      at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
      at org.apache.myfaces.custom.scope.ScopeUtils.getManagedBean(ScopeUtils.java:78)
      at org.apache.myfaces.custom.scope.AfterScopePhaseListener.afterPhase(AfterScopePhaseListener.java:44)
      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamServletFilter.doFilter(SeamServletFilter.java:48)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)
      at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
      at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:150)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalStateException: No active application scope
      at org.jboss.seam.core.Init.instance(Init.java:89)
      at org.jboss.seam.Component.getInstanceFromFactory(Component.java:2261)
      at org.jboss.seam.Component.getInstance(Component.java:2207)
      at org.jboss.seam.Component.getInstance(Component.java:2179)
      at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
      at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
      at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574)
      at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
      at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
      ... 34 more
      11:29:37,157 ERROR [org.jboss.seam.servlet.SeamServletFilter] ended request due to exception
      java.lang.IllegalStateException: No active event context

        Activity

        Hide
        Werner Punz added a comment -

        Please do not use this experimental component it is a work in progress and probably will be remodeled to a full seam like conversation system, if you work in seam use either seam conversations or use saveState which does the same as scope over lifefcycles

        Show
        Werner Punz added a comment - Please do not use this experimental component it is a work in progress and probably will be remodeled to a full seam like conversation system, if you work in seam use either seam conversations or use saveState which does the same as scope over lifefcycles
        Hide
        Werner Punz added a comment -

        I will close this, since the scope is a component in progress, not being expected to work everywhere, and it soon will be revamped to something else anyway.

        Show
        Werner Punz added a comment - I will close this, since the scope is a component in progress, not being expected to work everywhere, and it soon will be revamped to something else anyway.
        Hide
        Grigoras Cristinel added a comment -

        I' dont want to use this component ...
        The problem is that will broke sandbox jar.

        Cristi

        Show
        Grigoras Cristinel added a comment - I' dont want to use this component ... The problem is that will broke sandbox jar. Cristi
        Hide
        Mike Kienenberger added a comment -

        Werner, it sounds like what he's saying is that your Scope PhaseListener is breaking his application even though he's not using your component!

        Show
        Mike Kienenberger added a comment - Werner, it sounds like what he's saying is that your Scope PhaseListener is breaking his application even though he's not using your component!
        Hide
        Grigoras Cristinel added a comment -

        Thanks Mike,

        Yes.

        Any custom phase listener not work toghether with seam.
        I have the same problem in ajax components when is trying to solve beans.

        Cristi.

        Show
        Grigoras Cristinel added a comment - Thanks Mike, Yes. Any custom phase listener not work toghether with seam. I have the same problem in ajax components when is trying to solve beans. Cristi.
        Hide
        Werner Punz added a comment -

        Since the scope component was only a proof of concept and some of its mechanisms will go into the new component done by mario, I will pull this one, I see no use in having it in there anymore.
        The scopeshop demo can be remodeled for saveState in fact it would be an excellent demo on how to use saveState.
        And the save and restore mechanisms explored by this component already are recycled by Mario conceptwise, for its own approach.
        There is no need to keep that component anymore and its associated phase listener.

        Show
        Werner Punz added a comment - Since the scope component was only a proof of concept and some of its mechanisms will go into the new component done by mario, I will pull this one, I see no use in having it in there anymore. The scopeshop demo can be remodeled for saveState in fact it would be an excellent demo on how to use saveState. And the save and restore mechanisms explored by this component already are recycled by Mario conceptwise, for its own approach. There is no need to keep that component anymore and its associated phase listener.
        Hide
        Werner Punz added a comment -

        Additional comment,
        since my phase listener is not the only one having problems, as it seems, Seam messes around a little bit too much with the variable resolvement.
        I am not sure as yet what happens here, but there might be a bug on the Seam side as well.
        (Seam bends the variable resolvement towards its dialog system and EJB3 to my knowledge)

        Show
        Werner Punz added a comment - Additional comment, since my phase listener is not the only one having problems, as it seems, Seam messes around a little bit too much with the variable resolvement. I am not sure as yet what happens here, but there might be a bug on the Seam side as well. (Seam bends the variable resolvement towards its dialog system and EJB3 to my knowledge)
        Hide
        Werner Punz added a comment -

        This issue is resolved for now, I removed the scope phase listener entirely, from the definitions, also the tag definition already has been removed.
        I will keep the code in for now just in case someone needs it.
        Please if you can find similar problems in the ajax phase listeners open separate jira requests.

        Show
        Werner Punz added a comment - This issue is resolved for now, I removed the scope phase listener entirely, from the definitions, also the tag definition already has been removed. I will keep the code in for now just in case someone needs it. Please if you can find similar problems in the ajax phase listeners open separate jira requests.

          People

          • Assignee:
            Werner Punz
            Reporter:
            Grigoras Cristinel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development