users@jaxb.java.net

Re: how to ignore an error during partial unmarshalling

From: <Gagan_Bhatnagar_at_i2.com>
Date: Tue, 28 Sep 2004 15:06:34 +0530

Thanks Kohsuke,

I created a simple test application. And found that there's no problem
while recovering from schema errors.

Somehow I'm getting this problem only in my main application running in
Weblogic Server which uses it's own Xerces implementation. Or possibly
there's a bug in my code.

Will verify and confirm.

Gagan





Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
09/27/2004 09:31 PM
Please respond to
users_at_jaxb.dev.java.net


To
users_at_jaxb.dev.java.net
cc

Subject
Re: how to ignore an error during partial unmarshalling






Gagan_Bhatnagar_at_i2.com wrote:
> Specifically, in certain fields in my XML a string value appears where
an
> integer is defined in the schema. On receiving errors on these elements
I ignore
> the error and return true in my ValidationEventHandler implementation.
However,
> I get an UnmarshalException because endElement event on the same element
throws
> the exception below.

Recovering from errors is often tricky, and there may very well be bugs.

If you could file a bug and attach schemas / test code and what now,
that would be really helpful.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net