users@jaxb.java.net

Followup: Location of validation Errors

From: Paul Campbell <pwc_at_u.washington.edu>
Date: Thu, 21 Aug 2003 14:45:13 -0700

We have discovered that it helps to setEventHandler( customHandler ) on
the Validator to get the details of where an error is occurring.

When we setEventHandler on the unmarshaller we got a stack trace
that gave a hint of where the problem was but not the details.

When we setEventHandler on the validator, it gaves the
details we were looking for. We no longer had to guess
where the problem was.

I looked again at the Validation Examples discussion
pgs 425-428, it suggested setting the handler on the
unmarshaller was sufficient.

Also, a mere detail, but the example output on pg 428
is in error. It does not include the line that says
location: obj: primer.po

Note also that location is blank but that will no doubt
be fixed in the next release.

Perhaps, when the docs are updated, the sample could
also be updated to show and discuss the value of
validator.setEventHandler.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net