[ 
https://issues.apache.org/jira/browse/SLING-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-3150.
-------------------------------------

    Resolution: Fixed

Fixed by unwrapping the exception for as long as it is a SlingException

> Error handler does not get original exception
> ---------------------------------------------
>
>                 Key: SLING-3150
>                 URL: https://issues.apache.org/jira/browse/SLING-3150
>             Project: Sling
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: Engine 2.2.8
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Engine 2.2.10
>
>
> The sling documentation [1] indicates for uncaught exceptions  the java 
> simple name of the Throwable class is used to find the error handler.  
> However, Sling request processor is type casting any exception into 
> SlingException & hence the requested error handler is not caught.  
>  Steps to reproduce:
> *    Create file Exception.jsp & FileNotFoundException.jsp at 
> /apps/sling/servlet/errorhandler/
> *   In jsp throw new FileNotFoundException("Really does not exists");
> *    The handler calls Exception.jsp
> *    Now create SlingException.jsp & Now for all exceptions this handler get 
> called. 
> [1]  
> http://sling.apache.org/documentation/the-sling-engine/errorhandling.html



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to