Two possibilities:
        1.  The exception that you are catching is a NullPointerException
(which has null as its message).  You can check this by adding
exception.getClass().getName() to your output.
        2.  The exception that you are catching is not one provided by Sun
and the developer didn't set the message properly.

        Randy

> -----Original Message-----
> From: Juan J. Merelo [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 6:48 PM
> To: [EMAIL PROTECTED]
> Subject: exception.getMessage() returns null?
> 
> 
> Hi,
>       I'm trying to set up an error page, which looks like this:
> <%@ page isErrorPage="true" %>
> <html>
> <head><title>Se ha producido un error</title></head>
> <%@ include file ="cabecera.jsp" %>
> <h1>Se ha producido un error</h1>
> 
> <p>Endeluego, que a ver si tenemos cuidaico, que se ha producido el 
> siguiente error:<br>
> <%= exception.getMessage() %>
> 
> (basically cut/paste from the JSP book by Bergsten). I would 
> like it to 
> display an exception thrown from a bean, but it displays 
> null. What can 
> be the problem here? Do I need to set up something else? Besides, 
> exception prints just JasperException or suchlike; I would like it to 
> print the message I included in the RuntimeException
> 
> Thanks for any info...
> 
> J
> -- 
> PPSN2002 => http://ppsn2002.ugr.es
> Home => http://geneura.ugr.es/~jmerelo
> Tutorial Perl => http://granavenida.com/perl
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to