You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by John Gregg <jo...@techarch.com> on 2002/06/27 00:21:38 UTC
handling java.lang.Error
Hi all.
I checked the developer's guide but didn't see an answer.
I tend to see a lot of catch clauses that specify either AxisFault or
Exception but not Throwable. Is there a particular reason for this? I tend
to put a catch (Throwable t) as my last line of defense before my app sends
a response. I would add one to AxisServlet.doPost(), for example. That way
Errors would get caught and logged as well as Exceptions. I know the jdk
javadocs say Errors aren't intended to be caught, but I'm getting a
NoClassDefFoundError that doesn't seem to get recorded anywhere. (I have an
odd application set-up that might contribute to the problem.) It's a lot
easier to deal with the problem if I can see a simple message on the console
or in a log vs. poking around with the debugger.
thanks
john
Re: handling java.lang.Error
Posted by Davanum Srinivas <di...@yahoo.com>.
John,
If you are using latest nightly or cvs. Please ONE breakpoint in ClassUtils's loadClass method.
Thanks,
dims
--- John Gregg <jo...@techarch.com> wrote:
> Hi all.
>
> I checked the developer's guide but didn't see an answer.
>
> I tend to see a lot of catch clauses that specify either AxisFault or
> Exception but not Throwable. Is there a particular reason for this? I tend
> to put a catch (Throwable t) as my last line of defense before my app sends
> a response. I would add one to AxisServlet.doPost(), for example. That way
> Errors would get caught and logged as well as Exceptions. I know the jdk
> javadocs say Errors aren't intended to be caught, but I'm getting a
> NoClassDefFoundError that doesn't seem to get recorded anywhere. (I have an
> odd application set-up that might contribute to the problem.) It's a lot
> easier to deal with the problem if I can see a simple message on the console
> or in a log vs. poking around with the debugger.
>
> thanks
>
> john
>
=====
Davanum Srinivas - http://xml.apache.org/~dims/
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com