0 Replies Latest reply on May 8, 2011 4:32 AM by Rabee Rahimzadeh

    Show the application error message in the portal defualt message box

    Rabee Rahimzadeh Newbie

      Hello,

       

      I am using jboss-epp-5.1 gatein. Actualy I integrated a jsf project via portlet-bridge to gateing portal.

      I would like to show the application exceptions in the Portal Messages box. For example the JBoss server, show the following exception somwhere in the application:

       

       

      12:19:57,612 ERROR [STDERR] java.lang.NullPointerException
      12:19:57,612 ERROR [STDERR]     at com.faces.bean.InsertDemographicBean2.saveResult(InsertDemographicBean2.java:233)
      12:19:57,613 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      12:19:57,613 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      12:19:57,613 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:19:57,619 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
      12:19:57,619 ERROR [STDERR]     at org.apache.el.parser.AstValue.invoke(AstValue.java:170)
      12:19:57,619 ERROR [STDERR]     at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      12:19:57,619 ERROR [STDERR]     at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
      12:19:57,620 ERROR [STDERR]     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      12:19:57,620 ERROR [STDERR]     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      12:19:57,620 ERROR [STDERR]     at javax.faces.component.UICommand.broadcast(UICommand.java:387)
      12:19:57,620 ERROR [STDERR]     at org.ajax4jsf.component.UIInclude.broadcast(UIInclude.java:170)
      12:19:57,620 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)
      12:19:57,620 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)
      12:19:57,620 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)
      12:19:57,620 ERROR [STDERR]     at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474)
      12:19:57,620 ERROR [STDERR]     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
      12:19:57,620 ERROR [STDERR]     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      12:19:57,620 ERROR [STDERR]     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      12:19:57,620 ERROR [STDERR]     at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1163)
      12:19:57,620 ERROR [STDERR]     at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:398)
      12:19:57,620 ERROR [STDERR]     at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:526)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:558)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:109)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:72)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,620 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.wsrp.payload.WSRPEventPayloadInterceptor.invoke(WSRPEventPayloadInterceptor.java:153)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
      12:19:57,621 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
      12:19:57,621 ERROR [STDERR]     at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
      12:19:57,621 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor472.invoke(Unknown Source)
      12:19:57,621 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:19:57,621 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
      12:19:57,621 ERROR [STDERR]     at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
      12:19:57,621 ERROR [STDERR]     at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
      12:19:57,621 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      12:19:57,621 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      12:19:57,622 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      12:19:57,622 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,622 ERROR [STDERR]     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
      12:19:57,622 ERROR [STDERR]     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
      12:19:57,622 ERROR [STDERR]     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
      12:19:57,622 ERROR [STDERR]     at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
      12:19:57,622 ERROR [STDERR]     at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
      12:19:57,622 ERROR [STDERR]     at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
      12:19:57,622 ERROR [STDERR]     at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:151)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:211)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,622 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
      12:19:57,623 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,623 ERROR [STDERR]     at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:229)
      12:19:57,623 ERROR [STDERR]     at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:89)
      12:19:57,623 ERROR [STDERR]     at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:1039)
      12:19:57,623 ERROR [STDERR]     at org.exoplatform.portal.webui.application.UIPortletActionListener$ProcessActionActionListener.execute(UIPortletActionListener.java:116)
      12:19:57,623 ERROR [STDERR]     at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
      12:19:57,623 ERROR [STDERR]     at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:127)
      12:19:57,623 ERROR [STDERR]     at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:62)
      12:19:57,623 ERROR [STDERR]     at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:133)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:133)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:120)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:110)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.web.WebAppController.service(WebAppController.java:161)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132)
      12:19:57,624 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,624 ERROR [STDERR]     at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,624 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:90)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.exoplatform.portal.application.localization.LocalizationFilter.doFilter(LocalizationFilter.java:179)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:92)
      12:19:57,625 ERROR [STDERR]     at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:53)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      12:19:57,625 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      12:19:57,625 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      12:19:57,626 ERROR [STDERR]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      12:19:57,626 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      12:19:57,626 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      12:19:57,626 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      12:19:57,626 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      12:19:57,626 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      12:19:57,626 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      12:19:57,626 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      12:19:57,626 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      12:19:57,626 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      12:19:57,626 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      12:19:57,626 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
      12:19:57,626 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:662)
      

       

       

      I 'd like to show the above error message in the following Portal Messges box, but the portal show the following msg instead:

       

      Untitled.jpg

       

      Any help would be appreciated.

       

       

      Special Thanks,

      Rabee