Hi Scott,

Thanks for your detailed reply. The chapter is very informative and it's
great to get assistance from the guy who wrote it!

When I loaded illegal.jsp last night the page redirected as it should and
showed the exception inheritance tree. When I ran the page this morning,
however, it doesn't redirect. It simply reports the error at line 6: Attempt
to divide by zero. I can't think of any changes I've made to the server or
environment. I've appended the error message below my signature.

Regards,

Marc Garrett

500 Internal Server Error
/JSPAD/illegal.jsp:

javax.servlet.ServletException: Compilation error occured:
 Found 1 errors in JSP file:
D:\\Program
Files\\Allaire\\JRun\\servers\\default\\JSPAD-app\\illegal.jsp:6: Error:
Attempt to divide by zero.

allaire.jrun.scripting.DefaultCFE:
Errors reported by compiler:d:/Program
Files/Allaire/JRun/servers/default/JSPAD-app/WEB-INF/jsp/jrun__illegal2ejspc
..java:38:9:38:13: Error: Attempt to divide by zero.

 at
allaire.jrun.scripting.JavaCompilerService.compile(JavaCompilerService.java:
122)
 at allaire.jrun.jsp.JSPServlet.compilePage(JSPServlet.java:458)
 at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:399)
 at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:202)
 at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:169)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
 at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
 at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
 at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:367)
 at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
 at allaire.jrun.WorkerThread.run(WorkerThread.java:75)


----- Original Message -----
From: "Scott M. Stirling" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 8:59 PM
Subject: Re: Exception Handling: Still Can't Get it to Work. Please Help


> Hi Marc,
>
> Hope I can help.  I wrote that chapter and the examples.  Sorry for any
> confusion!
>
> So what are you doing?  I just tried those samples again and they work
> fine.
>
> Note that the illegal.jsp is the page you should request, which will
> then throw the exception to the exceptInherits.jsp.  The
> exceptInherits.jsp is the page that generates the response (e.g.):
>
> JSP Implicit Object: exception
>
> In Tomcat Web Server/3.3 dev ( JSP 1.1; Servlet 2.2 ):
>
> This particular exception has an inheritance tree of:
>
>      java.lang.ArithmeticException
>      java.lang.RuntimeException
>      java.lang.Exception
>      java.lang.Throwable
>      java.lang.Object
>
> Here is the exception thrown in the calling page:
>
> java.lang.ArithmeticException: / by zero
>
>
> If you request the exceptInherits.jsp _directly_, then you will get a
> stack trace in the browser, as you should.  The root exception is a
> NullPointer for the implicit "exception" object because no exception has
> been thrown, so none exists.  Furthermore, an error page can't act as
> its own error page, which is what it sounds like you are attempting.
> Does this make sense?
>
> Best regards,
>
> Scott S.
>
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to