I hate to post about a stupid null pointer exception as I'm sure it
will end up being something stupid I'm doing. I'm modifying some of my
code to follow some of David's validation examples. Currently when one
of my forms gets submitted it's supposed to get validated but comes
back with a null pointer exception. Looking at the tomcat output in
the console window shows:

Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call
the 'setErrorHandler' method to fix this.
Error: URI=null Line=62: Element "web-app" does not allow "servlet" here.
Error: URI=null Line=71: Element "web-app" does not allow "servlet" here.
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call
the 'setErrorHandler' method to fix this.
Error: URI=null Line=62: Element "web-app" does not allow "servlet" here.
Error: URI=null Line=71: Element "web-app" does not allow "servlet" here.
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call
the 'setErrorHandler' method to fix this.
Error: URI=null Line=62: Element "web-app" does not allow "servlet" here.
Error: URI=null Line=71: Element "web-app" does not allow "servlet" here.
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call
the 'setErrorHandler' method to fix this.
Error: URI=null Line=62: Element "web-app" does not allow "servlet" here.
Error: URI=null Line=71: Element "web-app" does not allow "servlet" here.
2002-03-27 15:47:46 - DecodeInterceptor: Charset from session ISO-8859-1
2002-03-27 15:47:46 - Ctx(/backoffice) : Exception in R( /backoffice + /do + /in
sertEmployee) - java.lang.NullPointerException
        at org.apache.commons.validator.Validator.<init>(Unknown Source)
        {etc..}

Any idea what I have screwed up?


-- 

Rick
mailto:[EMAIL PROTECTED]

"When the chairman introduced the guest speaker as a former illegal
alien, I got up from my chair and yelled, 'What's the matter, no jobs
on Mars?' When no one laughed, I was real embarrassed. I don't think
people should make you feel that way." 
  -Jack Handey


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to