Ted Neward Validation Amusement

11 PM April 7, 2003

Ted Neward just posted an article on validation. It describes how important validation is, when to do it, what kinds of to do, how to report errors and even discusses the technologies you might use.

I thought it was great. So I went to post this comment:

This is a good read.

A site with a lot of good, consistent, Javascript validation often feels polished and professional. A site with cheesy validation (or worse, a "500 Internal Error" and a Stack trace) can be really painful.

I'd also add that testing validation is a pain-in-the-neck, but if you have, you _must_ test it. Any mistakes in the validation code look bad and can quite possibly prevent a user from submitting valid data.

And then I pressed submit and got...


HTTP Status 500 -



type Exception report



message



description The server encountered an internal error () that 

prevented it from fulfilling this request.



exception 



org.apache.jasper.JasperException: entryID should never be null!

	at org.apache.jasper.servlet.JspServletWrapper.service(

		JspServletWrapper.java:254)

	at org.apache.jasper.servlet.JspServlet.serviceJspFile(

		JspServlet.java:295)

	at org.apache.jasper.servlet.JspServlet.service(

		JspServlet.java:241)

	at javax.servlet.http.HttpServlet.service(

		HttpServlet.java:853)

	at org.apache.catalina.core.ApplicationFilterChain.

		internalDoFilter(ApplicationFilterChain.java:247)

	at org.apache.catalina.core.ApplicationFilterChain.

		doFilter(ApplicationFilterChain.java:193)

	at geekblog.filters.ReferralsFilter.

		doFilter(ReferralsFilter.java:74)

	at org.apache.catalina.core.ApplicationFilterChain.

		internalDoFilter(ApplicationFilterChain.java:213)

	at org.apache.catalina.core.ApplicationFilterChain.

		doFilter(ApplicationFilterChain.java:193)

	at geekblog.filters.PrefsSetupFilter.doFilter(

		PrefsSetupFilter.java:84)

	at org.apache.catalina.core.ApplicationFilterChain.

		internalDoFilter(ApplicationFilterChain.java:213)

	at org.apache.catalina.core.ApplicationFilterChain.

		doFilter(ApplicationFilterChain.java:193)

	at org.apache.catalina.core.StandardWrapperValve.

		invoke(StandardWrapperValve.java:256)

	at org.apache.catalina.core.StandardPipeline$

		StandardPipelineValveContext.invokeNext(

		StandardPipeline.java:643)

	at org.apache.catalina.core.StandardPipeline.invoke(

		StandardPipeline.java:480)

	at org.apache.catalina.core.ContainerBase.invoke(

		ContainerBase.java:995)



    < ... and so on for a few hundred lines ... >



Apache Tomcat/4.1.24

I am not making this up.

Not that I should find it too amusing... I know this blog's comment form can be a little dodgy too :)

By alang | # | Comments (0)
(Posted to Software Development)

Comments

Add Comment




(Not displayed)






(Leave blank line between paragraphs. URLs converted to links. HTML stripped. Indented source code will be formatted with <pre> tags.)




© 2003-2006 Alan Green