Author: ppalaga
Date: 2012-12-17 08:45:29 -0500 (Mon, 17 Dec 2012)
New Revision: 9003
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java
Log:
Bug 878272 - lack of logging when error "org.gatein.pc.api.NoSuchPortletException: No
such portlet xxx" occurs
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java 2012-12-17
05:55:25 UTC (rev 9002)
+++
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageBody.java 2012-12-17
13:45:29 UTC (rev 9003)
@@ -32,6 +32,8 @@
import org.exoplatform.webui.config.annotation.ComponentConfig;
import org.exoplatform.webui.core.UIComponent;
import org.exoplatform.webui.core.UIComponentDecorator;
+import org.gatein.common.logging.Logger;
+import org.gatein.common.logging.LoggerFactory;
/**
* May 19, 2006
@@ -44,6 +46,9 @@
private String storageId;
+ /** . */
+ private final Logger log = LoggerFactory.getLogger(UIPageBody.class);
+
public UIPageBody(PageBody model) throws Exception
{
setId("UIPageBody");
@@ -141,13 +146,25 @@
{
return uiPage;
}
-
- UIPageFactory clazz = UIPageFactory.getInstance(page.getFactoryId());
- uiPage = clazz.createUIPage(context);
-
- PortalDataMapper.toUIPage(uiPage, page);
- uiPortal.setUIPage(page.getId(), uiPage);
+ try
+ {
+ UIPageFactory clazz = UIPageFactory.getInstance(page.getFactoryId());
+ uiPage = clazz.createUIPage(context);
+
+ PortalDataMapper.toUIPage(uiPage, page);
+ uiPortal.setUIPage(page.getId(), uiPage);
+ }
+ catch (Exception e)
+ {
+ if (log.isDebugEnabled()) {
+ log.debug("page.id="+ page.getId() +", page.name="+
page.getName()
+ +", page.pageId="+ page.getPageId() +",
page.ownerId="+ page.getOwnerId()
+ +", page.template="+ page.getTemplate() +",
pageReference="+ pageReference);
+ }
+ throw e;
+ }
+
return uiPage;
}
Show replies by date