portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator PageAggregator.java
Date Fri, 16 Jan 2004 19:35:32 GMT
weaver      2004/01/16 11:35:32

  Modified:    portal/src/java/org/apache/jetspeed/aggregator
                        PageAggregator.java
  Log:
  PageAggregator now handles exceptions thrown during rendering without
  causing the whole aggregation process to barf
  
  Revision  Changes    Path
  1.6       +12 -2     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/PageAggregator.java
  
  Index: PageAggregator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/PageAggregator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PageAggregator.java	8 Jan 2004 20:40:32 -0000	1.5
  +++ PageAggregator.java	16 Jan 2004 19:35:32 -0000	1.6
  @@ -195,7 +195,17 @@
                       {
                           if (currentFragment.getType().equals("portlet"))
                           {
  -                            renderer.render(currentFragment,context);
  +                        	// make the page aggreator less fragile
  +                        	// by preventing failed rendering from screwing up the
  +                        	// whole process
  +                           try
  +                            {
  +                                 renderer.render(currentFragment,context);
  +                            }
  +                            catch (Exception e)
  +                            {
  +                                log.error("Failed to render portlet \""+currentFragment+"\":
"+e.toString());
  +                            }
                           }
   
                           // push the children frgaments on the rendering stack
  
  
  

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


Mime
View raw message