cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/generation JspGenerator.java
Date Mon, 16 Jul 2001 11:44:30 GMT
dims        01/07/16 04:44:30

  Modified:    src/org/apache/cocoon/generation Tag: cocoon_20_branch
                        JspGenerator.java
  Log:
  Added more debug statements and try/catch for ServletException.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.5   +10 -5     xml-cocoon2/src/org/apache/cocoon/generation/JspGenerator.java
  
  Index: JspGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/JspGenerator.java,v
  retrieving revision 1.6.2.4
  retrieving revision 1.6.2.5
  diff -u -r1.6.2.4 -r1.6.2.5
  --- JspGenerator.java	2001/07/11 19:19:13	1.6.2.4
  +++ JspGenerator.java	2001/07/16 11:44:30	1.6.2.5
  @@ -50,7 +50,7 @@
    * results into SAX events.
    *
    * @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
  - * @version CVS $Revision: 1.6.2.4 $ $Date: 2001/07/11 19:19:13 $
  + * @version CVS $Revision: 1.6.2.5 $ $Date: 2001/07/16 11:44:30 $
    */
   public class JspGenerator extends ServletGenerator implements Recyclable, Configurable
{
   
  @@ -108,14 +108,19 @@
   
               // clean up
               jsp.destroy();
  +        } catch (ServletException e) {
  +            getLogger().debug("ServletException in JspGenerator.generate()", e);
  +            getLogger().debug("Embedded ServletException JspGenerator.generate()", e.getRootCause());
  +            throw new ProcessingException("ServletException in JspGenerator.generate()",e.getRootCause());
           } catch (SAXException e) {
  -            getLogger().debug("JspGenerator.generate()", e);
  -            throw e;
  +            getLogger().debug("SAXException JspGenerator.generate()", e);
  +            getLogger().debug("Embedded SAXException JspGenerator.generate()", e.getException());
  +            throw new ProcessingException("SAXException JspGenerator.generate()",e.getException());
           } catch (IOException e) {
  -            getLogger().debug("JspGenerator.generate()", e);
  +            getLogger().debug("IOException in JspGenerator.generate()", e);
               throw e;
           } catch (Exception e) {
  -            getLogger().debug("JspGenerator.generate()", e);
  +            getLogger().debug("Exception in JspGenerator.generate()", e);
               throw new SAXException(e);
           } finally {
               if (parser != null) this.manager.release(parser);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message