users@jaxb.java.net

Re: oddity in creating and then marhsalling

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 27 Oct 2003 16:32:33 -0800

OK, I think the error is because your "jaxbObject" variable doesn't
point to a class generated from an element.

Check if "jaxbObject instanceof javax.xml.bind.Element" is true (looking
at the stack trace, jaxbObject must be ShoeLeaseQuote), and if not, you
need an element instance to wrap it.

Search "element wrapper" for the archive for relevant information.

regards,
--
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