You're welcome. Thanks a lot for reading the book!
I forgot about Jikes and it's tricks. Had to think about that error
you're getting and then I remembered. I think I also noted what I'm
about to say in the book.
What's happening is you're using JRun, which uses the Jikes compiler by
default. Jikes catches this "divide by zero" condition _at compile
time_. That's very interesting. Sun's Javac compiler will not do this
-- it compiles the code without checking to see if it's semantically
valid.
Personally, I hate that Jikes is our default compiler. It bloats the
UNIX installer by many megabytes, since there's a different Jikes binary
for each UNIX platform. Javac is slow as hell, but that's what everyone
else (Resin, Tomcat, Orion, etc.) uses by default, and it makes for a
lean download. I don't know, there are pluses and minuses. It used to
be more of an issue before 1.3 JDK came out with a much faster javac.
Anyway, that's the problem -- Jikes throwing a compiler exception. Not
sure why you didn't get this before. Were you using Tomcat or
something?
Best,
Scott Stirling
On 15 Jan 2001 21:50:14 -0500, Marc Garrett wrote:
> 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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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