You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ks...@apache.org on 2002/09/10 16:55:20 UTC

cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/exception DefaultExceptionHandler.java

kschrader    2002/09/10 07:55:20

  Modified:    .        project.xml
               src/java/org/apache/turbine/exception
                        DefaultExceptionHandler.java
  Log:
  Updating to use HEAD of commons-lang.
  Methods were removed after the b1 release that we used.
  
  Revision  Changes    Path
  1.38      +1 -1      jakarta-turbine-3/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-3/project.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- project.xml	15 Aug 2002 00:54:39 -0000	1.37
  +++ project.xml	10 Sep 2002 14:55:19 -0000	1.38
  @@ -119,7 +119,7 @@
       </dependency>
       <dependency>
         <id>commons-lang</id>
  -      <version>1.0-b1.1</version>
  +      <version>SNAPSHOT</version>
       </dependency>
       <dependency>
         <id>commons-logging</id>
  
  
  
  1.5       +3 -2      jakarta-turbine-3/src/java/org/apache/turbine/exception/DefaultExceptionHandler.java
  
  Index: DefaultExceptionHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/exception/DefaultExceptionHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultExceptionHandler.java	23 Jul 2002 18:09:10 -0000	1.4
  +++ DefaultExceptionHandler.java	10 Sep 2002 14:55:19 -0000	1.5
  @@ -60,6 +60,7 @@
   import org.apache.turbine.ValveContext;
   import org.apache.turbine.pipeline.DefaultTargetValve;
   import org.apache.commons.lang.StringUtils;
  +import org.apache.commons.lang.exception.ExceptionUtils;
   
   /**
    * The default exception handler for {@link Turbine}. Populates the RunData
  @@ -80,7 +81,7 @@
           data.setTarget( Turbine.getConfiguration()
               .getString( "template.error", "/Error.vm" ) );
   
  -        data.setStackTrace( StringUtils.stackTrace( throwable ), throwable );
  +        data.setStackTrace( ExceptionUtils.getStackTrace( throwable ), throwable );
   
           // Simulate a minimal Pipeline here to run the target.
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/exception DefaultExceptionHandler.java

Posted by "Daniel L. Rall" <dl...@finemaltcoding.com>.
On Tue, 10 Sep 2002, Kurt Schrader wrote:

> I'm thinking that you could just put them on your Error.vm page if you
> want them.  I don't think it's certain that everyone would want to
> surround their stack trace with <pre> tags.

That seems like a reasonable approach to me.  I added them to the Error.vm 
templates in both the test code and the TDK.
-- 

Daniel Rall <dl...@finemaltcoding.com>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/exception DefaultExceptionHandler.java

Posted by Kurt Schrader <ks...@karmalab.org>.
I'm thinking that you could just put them on your Error.vm page if you
want them.  I don't think it's certain that everyone would want to
surround their stack trace with <pre> tags.

-Kurt

On Tue, 10 Sep 2002, Daniel L. Rall wrote:

> Do we need <pre> tags around the stack trace?  I know that at one point
> there was a stack trace method which generated them (ExceptionUtils does
> not), but no longer know if the <pre> tags are required.
>
> - Dan
>
> p.s. Thanks for making the updates, Kurt.
>
> On 10 Sep 2002 kschrader@apache.org wrote:
>
> > kschrader    2002/09/10 07:55:20
> >
> >   Modified:    .        project.xml
> >                src/java/org/apache/turbine/exception
> >                         DefaultExceptionHandler.java
> >   Log:
> >   Updating to use HEAD of commons-lang.
> >   Methods were removed after the b1 release that we used.
> >
> >   Revision  Changes    Path
> >   1.38      +1 -1      jakarta-turbine-3/project.xml
> >
> >   Index: project.xml
> >   ===================================================================
> >   RCS file: /home/cvs/jakarta-turbine-3/project.xml,v
> >   retrieving revision 1.37
> >   retrieving revision 1.38
> >   diff -u -r1.37 -r1.38
> >   --- project.xml	15 Aug 2002 00:54:39 -0000	1.37
> >   +++ project.xml	10 Sep 2002 14:55:19 -0000	1.38
> >   @@ -119,7 +119,7 @@
> >        </dependency>
> >        <dependency>
> >          <id>commons-lang</id>
> >   -      <version>1.0-b1.1</version>
> >   +      <version>SNAPSHOT</version>
> >        </dependency>
> >        <dependency>
> >          <id>commons-logging</id>
> >
> >
> >
> >   1.5       +3 -2      jakarta-turbine-3/src/java/org/apache/turbine/exception/DefaultExceptionHandler.java
> >
> >   Index: DefaultExceptionHandler.java
> >   ===================================================================
> >   RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/exception/DefaultExceptionHandler.java,v
> >   retrieving revision 1.4
> >   retrieving revision 1.5
> >   diff -u -r1.4 -r1.5
> >   --- DefaultExceptionHandler.java	23 Jul 2002 18:09:10 -0000	1.4
> >   +++ DefaultExceptionHandler.java	10 Sep 2002 14:55:19 -0000	1.5
> >   @@ -60,6 +60,7 @@
> >    import org.apache.turbine.ValveContext;
> >    import org.apache.turbine.pipeline.DefaultTargetValve;
> >    import org.apache.commons.lang.StringUtils;
> >   +import org.apache.commons.lang.exception.ExceptionUtils;
> >
> >    /**
> >     * The default exception handler for {@link Turbine}. Populates the RunData
> >   @@ -80,7 +81,7 @@
> >            data.setTarget( Turbine.getConfiguration()
> >                .getString( "template.error", "/Error.vm" ) );
> >
> >   -        data.setStackTrace( StringUtils.stackTrace( throwable ), throwable );
> >   +        data.setStackTrace( ExceptionUtils.getStackTrace( throwable ), throwable );
> >
> >            // Simulate a minimal Pipeline here to run the target.
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> >
>
> --
>
> Daniel Rall <dl...@finemaltcoding.com>
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/exception DefaultExceptionHandler.java

Posted by "Daniel L. Rall" <dl...@finemaltcoding.com>.
Do we need <pre> tags around the stack trace?  I know that at one point 
there was a stack trace method which generated them (ExceptionUtils does 
not), but no longer know if the <pre> tags are required.

- Dan

p.s. Thanks for making the updates, Kurt.

On 10 Sep 2002 kschrader@apache.org wrote:

> kschrader    2002/09/10 07:55:20
> 
>   Modified:    .        project.xml
>                src/java/org/apache/turbine/exception
>                         DefaultExceptionHandler.java
>   Log:
>   Updating to use HEAD of commons-lang.
>   Methods were removed after the b1 release that we used.
>   
>   Revision  Changes    Path
>   1.38      +1 -1      jakarta-turbine-3/project.xml
>   
>   Index: project.xml
>   ===================================================================
>   RCS file: /home/cvs/jakarta-turbine-3/project.xml,v
>   retrieving revision 1.37
>   retrieving revision 1.38
>   diff -u -r1.37 -r1.38
>   --- project.xml	15 Aug 2002 00:54:39 -0000	1.37
>   +++ project.xml	10 Sep 2002 14:55:19 -0000	1.38
>   @@ -119,7 +119,7 @@
>        </dependency>
>        <dependency>
>          <id>commons-lang</id>
>   -      <version>1.0-b1.1</version>
>   +      <version>SNAPSHOT</version>
>        </dependency>
>        <dependency>
>          <id>commons-logging</id>
>   
>   
>   
>   1.5       +3 -2      jakarta-turbine-3/src/java/org/apache/turbine/exception/DefaultExceptionHandler.java
>   
>   Index: DefaultExceptionHandler.java
>   ===================================================================
>   RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/exception/DefaultExceptionHandler.java,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- DefaultExceptionHandler.java	23 Jul 2002 18:09:10 -0000	1.4
>   +++ DefaultExceptionHandler.java	10 Sep 2002 14:55:19 -0000	1.5
>   @@ -60,6 +60,7 @@
>    import org.apache.turbine.ValveContext;
>    import org.apache.turbine.pipeline.DefaultTargetValve;
>    import org.apache.commons.lang.StringUtils;
>   +import org.apache.commons.lang.exception.ExceptionUtils;
>    
>    /**
>     * The default exception handler for {@link Turbine}. Populates the RunData
>   @@ -80,7 +81,7 @@
>            data.setTarget( Turbine.getConfiguration()
>                .getString( "template.error", "/Error.vm" ) );
>    
>   -        data.setStackTrace( StringUtils.stackTrace( throwable ), throwable );
>   +        data.setStackTrace( ExceptionUtils.getStackTrace( throwable ), throwable );
>    
>            // Simulate a minimal Pipeline here to run the target.
>    
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 

-- 

Daniel Rall <dl...@finemaltcoding.com>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>