portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kimp...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util/customization AllowablePortletSet.java
Date Fri, 30 Nov 2001 10:53:59 GMT
kimptoc     01/11/30 02:53:59

  Modified:    src/java/org/apache/jetspeed/cache/disk
                        JetspeedDiskCacheEntry.java
               src/java/org/apache/jetspeed/portal/controllers
                        VelocityPortletController.java
               src/java/org/apache/jetspeed/portal/controls
                        FullScreenControl.java TitleControl.java
               src/java/org/apache/jetspeed/portal/portlets
                        VelocityPortlet.java WMLFilePortlet.java
               src/java/org/apache/jetspeed/portal/portlets/customize
                        CustomizePortlet.java
               src/java/org/apache/jetspeed/services/psmlmanager
                        CastorPsmlManagerService.java PsmlImporter.java
               src/java/org/apache/jetspeed/services/psmlmanager/db
                        DatabasePsmlManagerService.java
               src/java/org/apache/jetspeed/util DirectoryUtils.java
                        SimpleTransform.java
               src/java/org/apache/jetspeed/util/customization
                        AllowablePortletSet.java
  Log:
  amend the Log.error method calls to ensure that the exception is passed to
  the Log routine.  This usually means the stack trace is dumped to the log.
  Useful for tracking down these errors.
  
  Revision  Changes    Path
  1.28      +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/JetspeedDiskCacheEntry.java
  
  Index: JetspeedDiskCacheEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/cache/disk/JetspeedDiskCacheEntry.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- JetspeedDiskCacheEntry.java	2001/09/26 10:29:04	1.27
  +++ JetspeedDiskCacheEntry.java	2001/11/30 10:53:58	1.28
  @@ -101,7 +101,7 @@
    *
    *@author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
    *@author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  - *@version $Id: JetspeedDiskCacheEntry.java,v 1.27 2001/09/26 10:29:04 sgala Exp $
  + *@version $Id: JetspeedDiskCacheEntry.java,v 1.28 2001/11/30 10:53:58 kimptoc Exp $
    **/
   public class JetspeedDiskCacheEntry implements DiskCacheEntry {
   
  @@ -221,7 +221,7 @@
               try {
                   JetspeedDiskCache.getInstance().add( this.url, true );
               } catch (Throwable e) {
  -            Log.error( e.getMessage() );
  +            Log.error( e );
                   }
           }
           //file should exist after add in the Cache...
  @@ -314,7 +314,7 @@
                       // instead of local encoding
                       reader = new InputStreamReader( new FileInputStream( this.getFile()
), "UTF8" );
                   } catch (UnsupportedEncodingException e) {
  -                    Log.error( e.toString() );
  +                    Log.error( e );
                       reader = new FileReader( this.getFile() );
                   }
                   //Log.info("Disk Cache Entry: getReader file -> " + 
  
  
  
  1.6       +1 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controllers/VelocityPortletController.java
  
  Index: VelocityPortletController.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controllers/VelocityPortletController.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- VelocityPortletController.java	2001/08/16 15:08:54	1.5
  +++ VelocityPortletController.java	2001/11/30 10:53:59	1.6
  @@ -114,7 +114,7 @@
               }
               catch( Exception e)
               {
  -               Log.error( e.toString() );
  +               Log.error( e );
               }
           }
    
  
  
  
  1.11      +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controls/FullScreenControl.java
  
  Index: FullScreenControl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controls/FullScreenControl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- FullScreenControl.java	2001/05/07 20:48:52	1.10
  +++ FullScreenControl.java	2001/11/30 10:53:59	1.11
  @@ -223,7 +223,7 @@
               subtype = URILookup.getURISubType(this.getPortlet(), rundata);
           }
           catch (JetspeedException e) {
  -            Log.error(e.getMessage());
  +            Log.error(e);
           }
   
           if (type != URILookup.TYPE_EDIT_ACCOUNT) {
  @@ -242,7 +242,7 @@
                               v.addElement( info );
                           }
                           catch (JetspeedException e) {
  -                            Log.error(e.getMessage());
  +                            Log.error(e);
                           }
                       }
                   }
  @@ -261,7 +261,7 @@
                   v.addElement( max );
               }
               catch (JetspeedException e) {
  -                Log.error(e.getMessage());
  +                Log.error(e);
               }
   
           }
  
  
  
  1.10      +5 -5      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controls/TitleControl.java
  
  Index: TitleControl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controls/TitleControl.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TitleControl.java	2001/05/07 20:48:55	1.9
  +++ TitleControl.java	2001/11/30 10:53:59	1.10
  @@ -82,7 +82,7 @@
    @author <a href="mailto:sasalda@de.ibm.com">Sascha Alda</a>
    @author <a href="mailto:stephan.hesmer@de.ibm.com">Stephan Hesmer</a>    

    @author <a href="mailto:sgala@apache.org">Santiago Gala</a>     
  - @version $Id: TitleControl.java,v 1.9 2001/05/07 20:48:55 raphael Exp $
  + @version $Id: TitleControl.java,v 1.10 2001/11/30 10:53:59 kimptoc Exp $
   */
   public class TitleControl extends AbstractPortletControl {
                   
  @@ -183,7 +183,7 @@
                                   .addElement( getTitle() ) ) );
           }
           catch (JetspeedException e) {
  -            Log.error(e.getMessage());
  +            Log.error(e);
           }
           return ec;
       }
  @@ -230,7 +230,7 @@
                                                 rundata);
           }
           catch (JetspeedException e) {
  -            Log.error(e.getMessage());
  +            Log.error(e);
           }
   
           if ( type != URILookup.TYPE_EDIT_ACCOUNT) {
  @@ -251,7 +251,7 @@
                               v.addElement( edit );
                           }
                           catch (JetspeedException e) {
  -                            Log.error(e.getMessage());
  +                            Log.error(e);
                           }
                       }
                   }
  @@ -274,7 +274,7 @@
                       }
                   }
                   catch (JetspeedException e) {
  -                    Log.error(e.getMessage());
  +                    Log.error(e);
                   }
               }
           }
  
  
  
  1.9       +1 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/VelocityPortlet.java
  
  Index: VelocityPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/VelocityPortlet.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- VelocityPortlet.java	2001/08/27 15:53:51	1.8
  +++ VelocityPortlet.java	2001/11/30 10:53:59	1.9
  @@ -129,7 +129,7 @@
               }
               catch( Exception e)
               {
  -               Log.error( e.toString() );
  +               Log.error( e );
               }
           }
    
  
  
  
  1.5       +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/WMLFilePortlet.java
  
  Index: WMLFilePortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/WMLFilePortlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WMLFilePortlet.java	2001/09/10 22:41:01	1.4
  +++ WMLFilePortlet.java	2001/11/30 10:53:59	1.5
  @@ -84,7 +84,7 @@
    * serve fragments of WML documents, without the <wml> tag</strong>
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: WMLFilePortlet.java,v 1.4 2001/09/10 22:41:01 sgala Exp $ 
  + * @version $Id: WMLFilePortlet.java,v 1.5 2001/11/30 10:53:59 kimptoc Exp $ 
    */
   public class WMLFilePortlet extends FileWatchPortlet {
   
  @@ -206,11 +206,11 @@
           }
   
           public void error(SAXParseException ex) {
  -            Log.error(getLocationString(ex)+": "+ex.getMessage());
  +            Log.error(getLocationString(ex)+": "+ex,ex);
           }
   
           public void fatalError(SAXParseException ex) throws SAXException {
  -            Log.error(getLocationString(ex)+": "+ex.getMessage());
  +            Log.error(getLocationString(ex)+": "+ex,ex);
               throw ex;
           }
   
  
  
  
  1.21      +1 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/customize/CustomizePortlet.java
  
  Index: CustomizePortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/customize/CustomizePortlet.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- CustomizePortlet.java	2001/09/02 18:06:17	1.20
  +++ CustomizePortlet.java	2001/11/30 10:53:59	1.21
  @@ -202,7 +202,7 @@
                       }
                       catch( JetspeedException ex )
                       {
  -                        Log.error( "CustomizePortlet: Could not redirect to HomeScreen-->
" + ex.getMessage( ) );
  +                        Log.error( "CustomizePortlet: Could not redirect to HomeScreen-->
" , ex );
                       }
                   }
   
  
  
  
  1.13      +4 -4      jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/CastorPsmlManagerService.java
  
  Index: CastorPsmlManagerService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/CastorPsmlManagerService.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- CastorPsmlManagerService.java	2001/11/20 05:01:22	1.12
  +++ CastorPsmlManagerService.java	2001/11/30 10:53:59	1.13
  @@ -112,7 +112,7 @@
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
    * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
    * @author <a href="mailto:sgala@apache.org">Santiago Gala</a>
  - * @version $Id: CastorPsmlManagerService.java,v 1.12 2001/11/20 05:01:22 taylor Exp $
  + * @version $Id: CastorPsmlManagerService.java,v 1.13 2001/11/30 10:53:59 kimptoc Exp $
    */
   public class CastorPsmlManagerService extends TurbineBaseService
       implements PsmlManagerService
  @@ -695,7 +695,7 @@
           }
           catch (Exception e)
           {
  -            Log.error("Failed to save document: " + e);
  +            Log.error("Failed to save document: " , e);
           }
           return doc;
       }
  @@ -1143,7 +1143,7 @@
           catch(Exception e)
           {
               e.printStackTrace();
  -            Log.error("Failed to export profiles to DB: " + e.toString() );
  +            Log.error("Failed to export profiles to DB: " , e );
   
           }
           finally
  @@ -1176,7 +1176,7 @@
               }
               catch (Exception e)
               {
  -                Log.error("Failed to clone profile: " + path + " : " + e.toString());
  +                Log.error("Failed to clone profile: " + path + " : " + e, e);
               }
           } 
           else if (file.isDirectory()) 
  
  
  
  1.5       +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlImporter.java
  
  Index: PsmlImporter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/PsmlImporter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PsmlImporter.java	2001/11/20 05:32:21	1.4
  +++ PsmlImporter.java	2001/11/30 10:53:59	1.5
  @@ -118,7 +118,7 @@
           catch (Exception e)
           {
               System.out.println("Error importing: " + e.toString());
  -            Log.error("Error importing: " + e.toString());
  +            Log.error("Error importing: " , e);
               e.printStackTrace();
           }             
           msg = "PSMLImporter completed. Exported " + count + " profiles";
  @@ -172,10 +172,10 @@
           }
           catch (DataBackendException e)
           {
  -            Log.error("Error detecting database on import: " + e.toString());    
  +            Log.error("Error detecting database on import: " , e);    
               System.out.println("Error detecting database on import: " + e.toString());
           }
           return false;
       }
   
  -}
  \ No newline at end of file
  +}
  
  
  
  1.5       +6 -6      jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/db/DatabasePsmlManagerService.java
  
  Index: DatabasePsmlManagerService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/psmlmanager/db/DatabasePsmlManagerService.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DatabasePsmlManagerService.java	2001/11/20 05:53:55	1.4
  +++ DatabasePsmlManagerService.java	2001/11/30 10:53:59	1.5
  @@ -170,7 +170,7 @@
           }
           catch (Exception e)
           {
  -            Log.error("Error importing: " + e.toString());
  +            Log.error("Error importing: " , e);
               e.printStackTrace();            
           }
       }
  @@ -590,7 +590,7 @@
           }
           catch (Exception e) // insert failed
           {
  -            Log.error("Error occurred in Database PSML Manager: " + e);
  +            Log.error("Error occurred in Database PSML Manager: " , e);
               Log.error("Insert in table " + tableName + " failed");
               throw new RuntimeException("Could not create new profile in DB");
           }
  @@ -645,7 +645,7 @@
           }
           catch (Exception e) // insert failed
           {
  -            Log.error("Error occurred in Database PSML Manager: " + e);
  +            Log.error("Error occurred in Database PSML Manager: " , e);
               Log.error("Insert in table " + tableName + " failed");
               throw new RuntimeException("Could not delete profile for given locator from
DB");
           }
  @@ -743,7 +743,7 @@
           }
           catch (Exception e)
           {
  -            Log.error("Error occurred in Database PSML Manager: " + e);
  +            Log.error("Error occurred in Database PSML Manager: " , e);
               e.printStackTrace();
           }
   
  @@ -955,7 +955,7 @@
           }
           catch (Exception e) // delete failed
           {
  -            Log.error("Error occurred in Database PSML Manager: " + e);
  +            Log.error("Error occurred in Database PSML Manager: " , e);
               Log.error("Delete from table JETSPEED_USER_PROFILE failed");
               throw new RuntimeException("Could not delete documents for given user from
DB");
           }
  @@ -977,7 +977,7 @@
           }
           catch (Exception e) // delete failed
           {
  -            Log.error("Error occurred in Database PSML Manager: " + e);
  +            Log.error("Error occurred in Database PSML Manager: " , e);
               Log.error("Delete from table JETSPEED_ROLE_PROFILE failed");
               throw new RuntimeException("Could not delete documents for given role from
DB");
           }
  
  
  
  1.2       +3 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/util/DirectoryUtils.java
  
  Index: DirectoryUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/DirectoryUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DirectoryUtils.java	2001/07/02 07:47:48	1.1
  +++ DirectoryUtils.java	2001/11/30 10:53:59	1.2
  @@ -100,7 +100,7 @@
           }
           catch (Exception e)
           {
  -            Log.error("Error in rmdir utility:" + e);
  +            Log.error("Error in rmdir utility:" , e);
               return false;
           }
       }
  @@ -125,7 +125,7 @@
               }
               catch (Exception e)
               {
  -                Log.error("Failed to Delete file: " + path + " : " + e.toString());
  +                Log.error("Failed to Delete file: " + path + " : " , e);
                   file.deleteOnExit(); // try to get it later...
               }
           } 
  @@ -147,7 +147,7 @@
               }
               catch (Exception e)
               {
  -                Log.error("Failed to Delete directory: " + path + " : " + e.toString());
  +                Log.error("Failed to Delete directory: " + path + " : " , e);
                   file.deleteOnExit(); // try to get it later...
               }
               
  
  
  
  1.18      +5 -5      jakarta-jetspeed/src/java/org/apache/jetspeed/util/SimpleTransform.java
  
  Index: SimpleTransform.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/SimpleTransform.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- SimpleTransform.java	2001/09/13 13:53:02	1.17
  +++ SimpleTransform.java	2001/11/30 10:53:59	1.18
  @@ -115,7 +115,7 @@
    *
    * @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
    * @author <a href="mailto:sgala@apache.org">Santiago Gala</a>
  - * @version $Id: SimpleTransform.java,v 1.17 2001/09/13 13:53:02 sgala Exp $
  + * @version $Id: SimpleTransform.java,v 1.18 2001/11/30 10:53:59 kimptoc Exp $
    */
   public class SimpleTransform
   {
  @@ -245,7 +245,7 @@
           } 
           catch (Exception e)
           {
  -            Log.error( "Invalid SAX Transformer: " + e.toString() );
  +            Log.error( "Invalid SAX Transformer: " , e );
               throw new SAXException( "problem in SAX transform: " + e.toString() );
           }    
       }
  @@ -390,7 +390,7 @@
           }
           catch (Exception e)
           {
  -            Log.error( "Invalid SAX Transformer: " + e.toString() );
  +            Log.error( "Invalid SAX Transformer: " , e);
               throw new SAXException( "problem in SAX transform: " + e.toString() );
           }    
       }
  @@ -507,7 +507,7 @@
                               catch( Exception se)
                               {
                                   Log.debug("Error in SAXTransform");
  -                                Log.debug( se.toString() );
  +                                Log.debug( se.toString(), se );
                               }
                           }
                       } );
  @@ -521,7 +521,7 @@
           } 
           catch (Exception e)
           {
  -            Log.error( "Invalid SAX Transformer:" + e.toString() );
  +            Log.error( "Invalid SAX Transformer:" , e);
               throw new IOException( "problem in SAX transform: " + e.toString() );
           }    
       }
  
  
  
  1.6       +2 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/util/customization/AllowablePortletSet.java
  
  Index: AllowablePortletSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/customization/AllowablePortletSet.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AllowablePortletSet.java	2001/07/29 13:42:01	1.5
  +++ AllowablePortletSet.java	2001/11/30 10:53:59	1.6
  @@ -75,7 +75,7 @@
    *
    *     @author <a href="mailto:vtruong@gluecode.com">Van Truong </a>
    *     @author <a href="mailto:eros@gluecode.com">Ernest Ros </a>
  - *     @version $Id: AllowablePortletSet.java,v 1.5 2001/07/29 13:42:01 raphael Exp $
  + *     @version $Id: AllowablePortletSet.java,v 1.6 2001/11/30 10:53:59 kimptoc Exp $
    *
    */
   public class AllowablePortletSet
  @@ -366,7 +366,7 @@
            }
            catch (Exception e)
            {
  -             Log.error(e.toString() + "\n Invalid PortletEntry encountered.");
  +             Log.error(e + "\n Invalid PortletEntry encountered.",e);
                throw new CustomizerException(e.toString() + "\n Invalid PortletEntry encountered.");
            } //end try-catch
   
  
  
  

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


Mime
View raw message