dims        01/07/16 04:47:20

  Modified:    src/org/apache/cocoon/generation JspGenerator.java
  Log:
  Added more debug statements and try/catch for ServletException.
  
  Revision  Changes    Path
  1.11      +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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JspGenerator.java 2001/07/11 19:20:12     1.10
  +++ JspGenerator.java 2001/07/16 11:47:20     1.11
  @@ -50,7 +50,7 @@
    * results into SAX events.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Davanum Srinivas</a>
  - * @version CVS $Revision: 1.10 $ $Date: 2001/07/11 19:20:12 $
  + * @version CVS $Revision: 1.11 $ $Date: 2001/07/16 11:47:20 $
    */
   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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to