5 Replies Latest reply on Feb 5, 2007 11:38 PM by Hari Cahyadi

    Accessing UserModule with MyFaces

    Test Tester Newbie

      Hi,
      i have a MyFaces Portlet with a managed Bean. The Portlet works fine. Now I want to access the UserModule in the managed Bean but it won't work.
      The Portlet.XML looks like this:

      <portlet id="tree_example">
       <portlet-name>tree_example</portlet-name>
       <display-name>Tree</display-name>
       <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
       <init-param>
       <name>default-view</name>
       <value>/tree2.jsp</value>
       </init-param>
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
       <supported-locale>en</supported-locale>
       <portlet-info>
       <title>Tree-Navigation</title>
       <short-title>The world's simplest tree</short-title>
       </portlet-info>
       </portlet>
      


      I try to access the UserModule on this way:
      PortletSession session = (PortletSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
      UserModule userModule = (UserModule) session.getPortletContext().getAttribute("UserModule");
       RoleModule roleModule = (RoleModule) session.getPortletContext().getAttribute("RoleModule");
      

      But it seems that the UserModule is NULL (probably because of the FacesContext???)

      Accessing the UserModule via
       UserModule userModule = (UserModule)new InitialContext().lookup ("java:portal/UserModule");
      

      doesn't work because of a ClassCastException...
      Can anybody help me?
      I'm using JBoss Portal 2.4 and JBoss 4

        • 1. Re: Accessing UserModule with MyFaces
          Test Tester Newbie

          Here is the Error Message:

          The portlet threw an exception
          java.lang.ClassCastException: org.jboss.portal.identity.db.UserModuleImpl


          • 2. Re: Accessing UserModule with MyFaces
            Thomas Heute Master

            Please read the README of the forum.
            Your questions belong to the user forum, not the developer forum.

            Moving this topic.

            • 3. Re: Accessing UserModule with MyFaces
              Test Tester Newbie

              OK, i did it. I access the UserModule on this way:

              PortletSession session = (PortletSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
              UserModule userModule = (UserModule) session.getPortletContext().getAttribute("UserModule");
              int user_no = userModule.getUserCount();
              

              Wokrs fine and prints out the UserCount.
              I had to add a configured jboss-portlet.xml to the app-war... :-/


              But now i have another Problem:
              How can I access the actual userID oder userRole???
              PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
              request.getparameters().getparameter("userid");
              

              does not work, and when i use JBossRenderRequest there will be an ClassCastException...

              any Ideas?
              PLZ HELP

              greetings Marc

              • 4. Re: Accessing UserModule with MyFaces
                Hari Cahyadi Newbie

                Hi, I try to do same method with you do but but get error, I already added jboss-portlet.xml configuration too, but still get error, this is my error :

                The portlet threw an exception
                java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                 at java.lang.String.substring(String.java:1762)
                 at java.lang.String.substring(String.java:1735)
                 at com.sun.facelets.FaceletViewHandler.getRenderedViewId(FaceletViewHandler.java:746)
                 at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:491)
                 at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
                 at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
                 at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
                 at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
                 at com.soltiusb2b.b2bng.portal.DocumentPortlet.nonFacesRequest(DocumentPortlet.java:184)
                 at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
                 at com.soltiusb2b.b2bng.portal.DocumentPortlet.facesRender(DocumentPortlet.java:160)
                 at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
                 at com.soltiusb2b.b2bng.portal.DocumentPortlet.doView(DocumentPortlet.java:136)
                 at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
                 at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
                 at com.soltiusb2b.b2bng.portal.DocumentPortlet.render(DocumentPortlet.java:101)
                 at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
                 at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
                 at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
                 at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
                 at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                 at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
                 at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:50)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:59)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:45)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:76)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:124)
                 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:585)
                 at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:104)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                 at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
                 at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                 at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:193)
                 at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:68)
                 at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:84)
                 at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:74)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:50)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:61)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:114)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy49.invoke(Unknown Source)
                 at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:249)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy51.invoke(Unknown Source)
                 at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:139)
                 at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:155)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy53.invoke(Unknown Source)
                 at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:63)
                 at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:85)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:93)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:83)
                 at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:123)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy35.invoke(Unknown Source)
                 at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:273)
                 at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:108)
                 at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
                 at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:148)
                 at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:463)
                 at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:76)
                 at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:340)
                 at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
                 at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:152)
                 at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
                 at org.jboss.portal.core.CoreController.handle(CoreController.java:126)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
                 at $Proxy199.handle(Unknown Source)
                 at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                 at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:92)
                 at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 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:275)
                 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:37)
                 at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                 at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                 at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
                 at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
                 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                 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:869)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                 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)
                
                


                • 5. Re: Accessing UserModule with MyFaces
                  Hari Cahyadi Newbie

                  Hi all,

                  I have progress now, I add this to jboss-portlet.xml :

                   <service>
                   <service-name>UserModule</service-name>
                   <service-class>
                   org.jboss.portal.identity.UserModule
                   </service-class>
                   <service-ref>:service=Module,type=User</service-ref>
                   </service>
                  


                  and I can get the UseModule from the PortletSession and print number of current user :

                   UserModule userModule = (UserModule) portletSession.getPortletContext()
                   .getAttribute("UserModule");
                  
                   try {
                   if (userModule != null) {
                   log.debug("Num Of User: " + userModule.getUserCount());
                   Set users = userModule.findUsersFilteredByUserName("e", 1, 4);
                   log.debug("user set size: "+users.size());
                   Iterator it = users.iterator();
                   while(it.hasNext()) {
                   log.debug(it.next().toString());
                   }
                   }
                   } catch (IllegalArgumentException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   } catch (IdentityException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   }
                  


                  but when I try to get User object like this :

                   User user = userModule.findUserById("5");
                   if(user != null) {
                   log.debug("user not null");
                   }
                  
                   User user = userModule.findUserByUserName("test1");
                   if(user != null) {
                   log.debug("user not null");
                   }
                  


                  both code throws error like this :
                  The portlet threw an exception
                  java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                   at java.lang.String.substring(String.java:1762)
                   at java.lang.String.substring(String.java:1735)
                   at com.sun.facelets.FaceletViewHandler.getRenderedViewId(FaceletViewHandler.java:746)
                   at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:491)
                   at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
                   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
                   at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
                   at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
                   at com.soltiusb2b.b2bng.portal.DocumentPortlet.nonFacesRequest(DocumentPortlet.java:184)
                   at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
                   at com.soltiusb2b.b2bng.portal.DocumentPortlet.facesRender(DocumentPortlet.java:160)
                   at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
                   at com.soltiusb2b.b2bng.portal.DocumentPortlet.doView(DocumentPortlet.java:136)
                   at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
                   at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
                   at com.soltiusb2b.b2bng.portal.DocumentPortlet.render(DocumentPortlet.java:101)
                   at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
                   at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
                   at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
                   at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
                   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
                   at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                   at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
                   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
                   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
                   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:50)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:59)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:45)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:76)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:124)
                   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:585)
                   at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:104)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
                   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                   at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:193)
                   at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:68)
                   at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:84)
                   at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:74)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:50)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:61)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                   at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:114)
                   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:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy49.invoke(Unknown Source)
                   at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:249)
                   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:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy51.invoke(Unknown Source)
                   at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:139)
                   at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:155)
                   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:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy53.invoke(Unknown Source)
                   at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:63)
                   at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                   at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:85)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:93)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:83)
                   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                   at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:123)
                   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:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                   at $Proxy35.invoke(Unknown Source)
                   at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:273)
                   at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:108)
                   at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                   at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                   at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
                   at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
                   at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:148)
                   at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:463)
                   at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:76)
                   at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:340)
                   at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                   at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
                   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                   at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
                   at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
                   at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
                   at org.jboss.portal.core.CoreController.handle(CoreController.java:126)
                   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:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
                   at $Proxy210.handle(Unknown Source)
                   at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                   at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
                   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
                   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
                   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
                   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:92)
                   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   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:275)
                   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:37)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                   at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
                   at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                   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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
                   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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                   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:869)
                   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                   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)
                  


                  does anybody have same problem with me and have some solution, please help

                  best regards,

                  -haric-