hi people,
i´m using 1.5.1 version of the stripes framework, but i have a problem when 
configuring my custom ExceptionHandler.

my web.xml:
    <init-param>
        
<param-name>DefaultExceptionHandler.Class</param-name>
        
<param-value>br.com.bulktecnologia.controle.exception.ApplicationExceptionHandler</param-value>
    </init-param>

my code:
package br.com.bulktecnologia.controle.exception;
public class ApplicationExceptionHandler implements ExceptionHandler {

        @Override
    public void handle(Throwable type, HttpServletRequest 
request,
            HttpServletResponse 
response) throws ServletException, IOException {
                request.setAttribute("exceptionCause",type.getCause());
        
request.getRequestDispatcher("/exceptionHandler.jsp").forward(request, response);
    }


    @Override
    public void init(Configuration arg0) throws Exception {
    }

}




in
my ActionBean, one custom application exception is throw, but my 
ApplicationExceptionHandler dont handle
them..

HTTP Status 500 - type Exception reportmessage description The server 
encountered an internal error () that prevented it from fulfilling this 
request.exception net.sourceforge.stripes.exception.StripesServletException: 
ActionBean execution threw an exception.
        
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:183)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
root cause br.com.bulktecnologia.controle.exception.ApplicationException





anybody know if there's exceptionhandling bug or my 'init-param' in the web.xml is wrong? or maybe is needed other parameters/configuration to configure this... not documented official website and stripes book.


thanks for4,

----
Hermano Pereira C. Soares

Software Architect - Java EE/SE/ME

- Sun Certified Java Programmer for Java Platform
- Sun Certified Associate for Java Platform
- Sun Certified Java Developer for Java Platform
- Sun Certified Web Component Developer for Java EE Platform
- Sun Certified Enterprise Architect for Java EE Platform
- Sun Certified Mobile Application Developer for Java ME Platform

Móvel: +55 (31) 9818-7009
Site: http://www.itsway.com.br
email/msn: [email protected]

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to