Package org.exoplatform.portal.portlet

Examples of org.exoplatform.portal.portlet.PortletExceptionHandleService.handle()


            }

            //
            PortletExceptionHandleService portletExceptionService = getApplicationComponent(PortletExceptionHandleService.class);
            if (portletExceptionService != null) {
                portletExceptionService.handle(pcException);
            }

            // Log the error
            log.error("Portlet render threw an exception", pcException);
View Full Code Here


        } catch (Exception e) {
            PortletContainerException pcException = new PortletContainerException(e);
            PortletExceptionHandleService portletExceptionService = uicomponent
                    .getApplicationComponent(PortletExceptionHandleService.class);
            if (portletExceptionService != null) {
                portletExceptionService.handle(pcException);
            }

            if (e instanceof NoSuchDataException) {
                UIPortalApplication uiApp = Util.getUIPortalApplication();
                uiApp.refreshCachedUI();
View Full Code Here

            }

            //
            PortletExceptionHandleService portletExceptionService = getApplicationComponent(PortletExceptionHandleService.class);
            if (portletExceptionService != null) {
                portletExceptionService.handle(pcException);
            }

            // Log the error
            log.error("Portlet render threw an exception", pcException);
View Full Code Here

            //
            PortletExceptionHandleService portletExceptionService = uiPortlet_.getApplicationComponent(PortletExceptionHandleService.class);
            if (portletExceptionService != null)
            {
                portletExceptionService.handle(pcException);
            }
            else
            {
               log.warn("Could not find the PortletExceptionHandleService in the exo container");
            }
View Full Code Here

                     //
                     PortletExceptionHandleService portletExceptionService = uicomponent.getApplicationComponent(PortletExceptionHandleService.class);
                     if (portletExceptionService != null)
                     {
                        portletExceptionService.handle(pcException);
                     }

                     // Log the error
                     log.error("Portlet render threw an exception", pcException);
View Full Code Here

      {
         PortletContainerException pcException = new PortletContainerException(e);
         PortletExceptionHandleService portletExceptionService = uicomponent.getApplicationComponent(PortletExceptionHandleService.class);
         if (portletExceptionService != null)
         {
            portletExceptionService.handle(pcException);
         }

         // Log the error
         log.error("Portlet render threw an exception", pcException);
View Full Code Here

            }

            //
            PortletExceptionHandleService portletExceptionService = getApplicationComponent(PortletExceptionHandleService.class);
            if (portletExceptionService != null) {
                portletExceptionService.handle(pcException);
            }

            // Log the error
            log.error("Portlet render threw an exception", pcException);
View Full Code Here

        } catch (Exception e) {
            PortletContainerException pcException = new PortletContainerException(e);
            PortletExceptionHandleService portletExceptionService = uicomponent
                    .getApplicationComponent(PortletExceptionHandleService.class);
            if (portletExceptionService != null) {
                portletExceptionService.handle(pcException);
            }

            // Log the error
            log.error("Portlet render threw an exception", pcException);
View Full Code Here

                     }

                     PortletExceptionHandleService portletExceptionService =
                        (PortletExceptionHandleService)container
                           .getComponentInstanceOfType(PortletExceptionHandleService.class);
                     portletExceptionService.handle(pcException);

                     markup = Text.create("This portlet encountered an error and could not be displayed.");
                  }
               }
            }
View Full Code Here

         PortletContainerException pcException = new PortletContainerException(e);
         PortletExceptionHandleService portletExceptionService =
            (PortletExceptionHandleService)container.getComponentInstanceOfType(PortletExceptionHandleService.class);
         if (portletExceptionService != null)
         {
             portletExceptionService.handle(pcException);
         }
         else
         {
           log.warn("Could not find the PortletExceptionHandleService in the exo container");
         }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.