1 Reply Latest reply on Oct 4, 2011 10:29 PM by Vu Viet Phuong

    User Info In Banner Portlet

    Fred Curry Newbie

      I am trying to add some user information to my banner portlet (Welcome back <FirstName>). To do this I have added the following code from the UIUserInfoPortlet.gtmpl to my own copy of the Banner portlet.

       

      UIUserInfoPortlet:

      <%

      import org.exoplatform.services.organization.User;

      import org.gatein.common.text.EntityEncoder;



      def rcontext = _ctx.getRequestContext();



      String accountSetting = "javascript:if(document.getElementById('UIMaskWorkspace')) ajaxGet(eXo.env.server.createPortalURL('UIPortal', 'AccountSettings', true));"

      %>

      <div class="UIUserInfoPortlet" id="$uicomponent.id">


      <div class="Name">

      <% if(rcontext.getRemoteUser() != null) {


      EntityEncoder encoder = EntityEncoder.FULL;

                      fullName = encoder.encode(uicomponent.getUser().getFullName());


      %>


      <a href="$accountSetting"><%=fullName%></a>

      <%} else {%>


      <span></span>

      <%}%>

      </div>

      </div>

       

      My Banner Portlet ends up with the following code:

      <%

       

                import org.exoplatform.portal.application.PortalRequestContext;

                import org.exoplatform.portal.webui.util.Util;

                import org.exoplatform.services.organization.User;

                import org.gatein.common.text.EntityEncoder;

       

                def rcontext = _ctx.getRequestContext();

                def prContext = _ctx.getRequestContext().getParentAppRequestContext();

                String portletId = uicomponent.getId() ;

       

                String accountSetting = "javascript:if(document.getElementById('UIMaskWorkspace')) ajaxGet(eXo.env.server.createPortalURL('UIPortal', 'AccountSettings', true));"

       

      %>

      <script>

      eXo.require("eXo.wcm.frontoffice.public.Search", "/eXoWCMResources/javascript/");

      </script>

       

      <div id="RLP-header">

      <table border="0">

      <tr>

                <td>

                          <div id="RLP-siteLogo">

                            </div> 

                </td>

                <td align="right">

                          <table border="0">

                          <tr>

                                    <td>

                                                        <%

                                                        EntityEncoder encoder = EntityEncoder.FULL;

                                                        fullName = encoder.encode(uicomponent.getUser().getFullName());

                                                        %>

                                                        <%=_ctx.appRes("portal.rlp.UIBannerPortlet.welcomeback")%>   <%=fullName%>|

                                                         

      .....

       

      When I log into my portal, my app server throws a bunch of errors, and will not display my banner. Does anyone have some ideas?

       

      Fred

       

      Stack Trace:

      14:47:50,393 ERROR [PortletApplicationController] Error while rendering the porlet

      org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=33],data=                                                  fullName = encoder.encode(uicomponent.getUser().getFullName());] for template system:/templates/groovy/webui/component/UIBannerPortlet.gtmpl

                at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:178)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:121)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIPortletApplication.processRender(UIPortletApplication.java:146)

                at org.exoplatform.webui.application.portlet.PortletApplication.render(PortletApplication.java:253)

                at org.exoplatform.webui.application.portlet.PortletApplicationController.render(PortletApplicationController.java:113)

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)

                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)

                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)

                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.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)

                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:638)

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)

                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)

                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)

                at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)

                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)

                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)

                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:151)

                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:211)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)

                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:1039)

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:203)

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:62)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIContainer.renderUIComponent(UIContainer.java:339)

                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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

                at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)

                at UITableColumnContainer.run(UITableColumnContainer.gtmpl:48)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

                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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

                at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

                at UIPortal.run(UIPortal.gtmpl:18)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

                at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41)

                at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)

                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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

                at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

                at UISiteBody.run(UISiteBody.gtmpl:31)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

                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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

                at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

                at UIContainer.run(UIContainer.gtmpl:49)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:105)

                at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:96)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

                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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

                at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

                at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:46)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

                at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:109)

                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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

                at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

                at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:25)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:118)

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:128)

                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:133)

                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:95)

                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:37)

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144)

                at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:537)

                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:117)

                at org.exoplatform.web.WebAppController.service(WebAppController.java:161)

                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)

                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132)

                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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:90)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)

                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)

                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                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:235)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

                at java.lang.Thread.run(Thread.java:680)

      Caused by: groovy.lang.MissingMethodException: No signature of method: org.exoplatform.portal.webui.application.UIGroovyPortlet.getUser() is applicable for argument types: () values: []

                at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)

                at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)

                at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

                at UIBannerPortlet.run(UIBannerPortlet.gtmpl:33)

                at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111)

                ... 220 more

        • 1. Re: User Info In Banner Portlet
          Vu Viet Phuong Novice

          The groovy template snipet that you copied have this : " fullName = encoder.encode(uicomponent.getUser().getFullName());" --> it try to call getUser() method of current UIComponent, notice that UIUserInfoPortlet have that method

           

          I think you need to add the same method to your banner portlet if you still want to use the above code