users@jaxb.java.net

RE: Re: how to ignore an error during partial unmarshalling

From: Andrew Ferguson <Andrew.Ferguson_at_arm.com>
Date: Tue, 28 Sep 2004 10:48:28 +0100

hi,
 
 from the stack trace:
 
    Stack Trace :
        javax.xml.bind.UnmarshalException: Unexpected end of element
{http://srm.i2.com/neg}:biddingType
 
it sounds very like Issue 29?
 
https://jaxb.dev.java.net/issues/show_bug.cgi?id=29
 
thanks,
Andrew

________________________________

From: Gagan_Bhatnagar_at_i2.com [mailto:Gagan_Bhatnagar_at_i2.com]
Sent: 28 September 2004 10:37
To: users_at_jaxb.dev.java.net
Subject: Re: how to ignore an error during partial unmarshalling



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