users@jaxb.java.net

Re: Find out what object is missing

From: Shashi Garje <SGarje_at_cccis.com>
Date: Tue, 20 May 2003 11:02:05 -0500

The name of the field that it was expecting and the name of the field that
it actually found would be useful.




                      Kohsuke Kawaguchi
                      <Kohsuke.Kawaguch To: JAXB-INTEREST_at_JAVA.SUN.COM
                      i_at_Sun.COM> cc:
                      Sent by: Subject: Re: Find out what object is missing
                      Discussion list
                      for the Java
                      Architecture for
                      XML Binding
                      <JAXB-INTEREST_at_JA
                      VA.SUN.COM>


                      05/20/2003 10:35
                      AM
                      Please respond to
                      JAXB-INTEREST






> How is is possible to get a more specific exception to track find out
> what object exactaly is missing?
>
> Can we enable some internal debugging ?

There's no hidden switch for this.

If you are just debugging the application and would like to know what's
missing, the easiest way is to set a break point at your
ValidationEventHandler. Then look at the call stack.

If you want to use this information programmatically (e.g., present the
error information to users and tell them what to fix), then what
information do you want? The name of the field? Does that really help?

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com