7 Replies Latest reply on May 6, 2009 5:31 PM by Arnie Morein

    Startup - not working?

    Arnie Morein Newbie

      I have a class that needs to be created when a new user session is created.


      It also needs to have the Seam Identity object @Injected. I cannot get either to work.


      I should clarify that I'm actually writing a Seam-based Portlet using the Bridge and so far things are working fine. But this bit of automation isn't. Could the Bridge be part of the problem?


      I'm not sure of the life-cycle - when the Bridge inserts the portal identity into the Seam app as its local identity, but it seems that at some point, I should be able to do this...


      @Name("authorizer")
      @Startup
      @Scope(ScopeType.SESSION)
      @Install(classDependencies="org.jboss.seam.security.Identity")
      @AutoCreate


      Granted, @AutoCreate shouldn't be necessary but I was trying everything.

        • 1. Re: Startup - not working?
          Arbi Sookazian Master

          I just tried the following (w/o portlet bridge w/ Seam 2.0.2-FP) and deployed successfully.  Are you seeing any stack trace?  If so, post it here.


          import java.io.Serializable;
          
          import org.jboss.seam.ScopeType;
          import org.jboss.seam.annotations.AutoCreate;
          import org.jboss.seam.annotations.Install;
          import org.jboss.seam.annotations.Name;
          import org.jboss.seam.annotations.Scope;
          import org.jboss.seam.annotations.Startup;
          
          @Name("authorizer") 
          @Startup 
          @Scope(ScopeType.SESSION) 
          @Install(classDependencies="org.jboss.seam.security.Identity") 
          @AutoCreate
          public class TestAuthorizer implements Serializable {
               public void TestAuthorizer(){}
          }

          • 2. Re: Startup - not working?
            Arnie Morein Newbie

            Forgot to mention - Seam 2.1.1 GA, on the latest Bridge.


            No stack trace - just that the object is null.


            :(

            • 3. Re: Startup - not working?
              Arbi Sookazian Master

              how do you know it's null if there's no NPE, for example?


              are you running the debugger or something?

              • 4. Re: Startup - not working?
                Arnie Morein Newbie

                In the RHDS Debugger, yes. I altered the code a bit and I -THINK- my startup is happening. BUT, the identity module, though inserted, is null. My 'authorizer' then exits returning null.


                Requested exception:


                2009-05-05 14:12:18,250 ERROR [facelets.viewhandler] Error Rendering View[/accessRequestConsole.xhtml]
                org.jboss.seam.RequiredException: @In attribute requires non-null value: currentRequestsAction.currentUser
                     at org.jboss.seam.Component.getValueToInject(Component.java:2297)
                     at org.jboss.seam.Component.injectAttributes(Component.java:1703)
                     at org.jboss.seam.Component.inject(Component.java:1521)
                     at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:61)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                     at us.tx.state.oag.portlet.uarp.session.CurrentRequestsAction_$$_javassist_4.fetchCurrentAccessRequests(CurrentRequestsAction_$$_javassist_4.java)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
                     at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
                     at org.jboss.seam.Component.getInstanceFromFactory(Component.java:2043)
                     at org.jboss.seam.Component.getInstance(Component.java:1978)
                     at org.jboss.seam.Component.getInstance(Component.java:1950)
                     at org.jboss.seam.Component.getInstance(Component.java:1944)
                     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                     at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
                     at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
                     at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
                     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                     at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                     at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
                     at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
                     at org.jboss.el.parser.AstEqual.getValue(AstEqual.java:21)
                     at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                     at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                     at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
                     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                     at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                     at org.richfaces.renderkit.TabRendererBase.encodeChildren(TabRendererBase.java:113)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                     at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:285)
                     at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeChildren(TabPanelRenderer.java:280)
                     at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
                     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
                     at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                     at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                     at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                     at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:843)
                     at org.jboss.portletbridge.AjaxPortletBridge.renderResponse(AjaxPortletBridge.java:668)
                     at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:503)
                     at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:351)
                     at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:312)
                     at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
                     at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:293)
                     at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
                     at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:568)
                     at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
                     at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
                     at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
                     at org.jboss.portal.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:97)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                     at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:196)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.core.aspects.portlet.SignOutInterceptor.invoke(SignOutInterceptor.java:43)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.core.aspects.portlet.AjaxInterceptor.invoke(AjaxInterceptor.java:49)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.core.aspects.portlet.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:46)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:82)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:48)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
                     at org.jboss.portal.web.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:74)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.portal.web.command.CommandServlet.doGet(CommandServlet.java:130)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
                     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
                     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
                     at org.jboss.portal.web.command.CommandServlet.include(CommandServlet.java:79)
                     at org.jboss.portal.web.command.CommandDispatcher.include(CommandDispatcher.java:50)
                     at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:66)
                     at org.jboss.portal.web.impl.DefaultServletContainer.include(DefaultServletContainer.java:190)
                     at org.jboss.portal.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:75)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:116)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:221)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(ProducerPortletInvoker.java:53)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java)
                     at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:145)
                     at org.jboss.portal.portlet.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:149)
                     at org.jboss.portal.core.model.instance.InstanceInvoker.invoke(InstanceInvoker.java:42)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:93)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:93)
                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                     at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)
                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.org$jboss$portal$core$impl$model$instance$InstanceContainerImpl$invoke$aop(InstanceContainerImpl.java:408)
                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.invoke(InstanceContainerImpl.java)
                     at org.jboss.portal.core.impl.model.instance.AbstractInstance.invoke(AbstractInstance.java:231)
                     at org.jboss.portal.core.impl.model.content.InternalContentProvider.renderWindow(InternalContentProvider.java:345)
                     at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.execute(RenderWindowCommand.java:100)
                     at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:124)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:48)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:55)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
                     at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.render(RenderWindowCommand.java:80)
                     at org.jboss.portal.core.model.portal.command.render.RenderPageCommand.execute(RenderPageCommand.java:222)
                     at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:124)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:48)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:55)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
                     at org.jboss.portal.core.model.portal.PortalObjectResponseHandler.processCommandResponse(PortalObjectResponseHandler.java:81)
                     at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processHandlers(ClassicResponseHandler.java:79)
                     at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processCommandResponse(ClassicResponseHandler.java:53)
                     at org.jboss.portal.core.controller.handler.ResponseHandlerSelector.processCommandResponse(ResponseHandlerSelector.java:70)
                     at org.jboss.portal.core.controller.Controller.processCommandResponse(Controller.java:315)
                     at org.jboss.portal.core.controller.Controller.processCommand(Controller.java:303)
                     at org.jboss.portal.core.controller.Controller.handle(Controller.java:261)
                     at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.PortalContextPathInterceptor.invoke(PortalContextPathInterceptor.java:45)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:196)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.IdentityCacheInterceptor.invoke(IdentityCacheInterceptor.java:68)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                     at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
                     at org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:252)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                     at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                     at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
                     at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
                     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                     at java.lang.Thread.run(Thread.java:619)


                • 5. Re: Startup - not working?
                  Arbi Sookazian Master

                  Regarding

                  @In attribute requires non-null value: currentRequestsAction.currentUser

                  ,


                  in your currentRequestsAction component use @In(required=false) CurrentUser currentUser;


                  and see what happens.  Unless CurrentUser is annotated with @AutoCreate, the instance injected may be null...

                  • 6. Re: Startup - not working?
                    Arnie Morein Newbie

                    I've tweaked the code and this just get weirder:


                    My class does appear to be created when the Session is created - BUT, despite having


                    @Install(classDependencies="org.jboss.seam.security.Identity")

                    on it, the @In Identity is injecting a null.

                    What's really freaky is that in the @Create method, the @Logger Log log object is injected and valid.

                    When I call another method on that class later on in code, the Log object is null!

                    I have this at the top of the class.

                    @Name("authorizer")
                    @Startup
                    @Scope(ScopeType.SESSION)
                    @Install(classDependencies="org.jboss.seam.security.Identity")

                    • 7. Re: Startup - not working?
                      Arnie Morein Newbie

                      With help from the JBoss folks, this works:


                      @Name("authorizer")
                      @Scope(ScopeType.SESSION)
                      @Startup(depends="org.jboss.seam.security.Identity")
                      ...

                      @Factory(value="currentUser",scope=ScopeType.SESSION,autoCreate=true)
                      public CurrentUser authorize() {
                      ...