tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dwight Farris <>
Subject RE: [OT] Arithmetic Exception
Date Fri, 01 Jun 2007 15:59:19 GMT
Thanks for the response; I will check the code.

At 08:52 AM 6/1/2007, you wrote:
> > From: Dwight Farris []
> > Subject: Arithmetic Exception
> >
> > I am receiving what I interpret as a 'divide by zero' error -
> >
> > java.lang.ArithmeticException: / by zero
> >          at
> > edu.uc.cohorts.util.Util.calcCohortAllotment(
>"Doctor, doctor, it hurts when I do this!"
>This is an error in the code of your webapp; as good as Tomcat is, it
>can't correct basic programming errors in user code.  The exception is
>telling you exactly where to look for the problem.
>You need to either check for zero before the divide, or catch the
>exception in your code, or configure an error page for the situation if
>you want to display something pretty to the end user.
>  - Chuck
>MATERIAL and is thus for use only by the intended recipient. If you
>received this in error, please contact the sender and delete the e-mail
>and its attachments from all computers.
>To start a new topic, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message