cvs diff src\java\org\apache\turbine\modules\actions\TemplateAction.java (in directory C:\cvs\jakarta-turbine-3\)
Index: src/java/org/apache/turbine/modules/actions/TemplateAction.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-3/src/java/org/apache/turbine/modules/actions/TemplateAction.java,v
retrieving revision 1.2
diff -r1.2 TemplateAction.java
59a60
> import java.lang.reflect.InvocationTargetException;
61a63
> import org.apache.turbine.TurbineException;
118a121,144
>         }
>         catch (InvocationTargetException ite)
>         {
>             // i have not seen this exception, in stacktraces generated
>             // while doing my own testing on jdk1.3.1 and earlier.  But
>             // see it increasingly from stacktraces reported by others.
>             // Its printStackTrace method should do The Right Thing, but
>             // I suspect some implementation is not.
>             // Unwrap it here, so that the original cause does not get lost.
>             Throwable t = ite.getTargetException();
>             if (t instanceof Exception) 
>             {
>                 throw (Exception)t;
>             }
>             else if (t instanceof java.lang.Error) 
>             {
>                 throw (java.lang.Error)t;
>             }
>             else 
>             {
>                 // this should not happen, but something could throw
>                 // an instance of Throwable
>                 throw new TurbineException(t);
>             }

