portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r409055 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
Date Wed, 24 May 2006 03:23:34 GMT
Author: ate
Date: Tue May 23 20:23:34 2006
New Revision: 409055

URL: http://svn.apache.org/viewvc?rev=409055&view=rev
Log:
No need to dump a full stack trace to the log when a portlet isn't available for each and
every request.

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java?rev=409055&r1=409054&r2=409055&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/aggregator/impl/RenderingJobImpl.java
Tue May 23 20:23:34 2006
@@ -16,6 +16,7 @@
 
 package org.apache.jetspeed.aggregator.impl;
 
+import javax.portlet.UnavailableException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
@@ -122,8 +123,16 @@
         }
         catch (Throwable t)
         {
-            // this will happen is request is prematurely aborted            
-            log.error("Error rendering portlet OID " + this.window.getId(), t);
+            // this will happen is request is prematurely aborted
+            if ( t instanceof UnavailableException)
+            {
+                // no need to dump a full stack trace to the log
+                log.error("Error rendering portlet OID "+this.window.getId()+": "+t.toString());
+            }
+            else
+            {
+                log.error("Error rendering portlet OID " + this.window.getId(), t);
+            }
             fragment.overrideRenderedContent(t.getMessage());
         }
         finally



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message