users@jaxb.java.net

Re: unmarshall an object from a org.w3c.dom.Document object

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 18 Mar 2003 10:47:15 -0800

The typical reasons are:

- you build a DOM using methods like createElement, createAttribute ...
  (they should be createElementNS, createAttributeNS)

- you parse a DOM without calling
  DocumentBuilderFactory.setNamespaceAware(true)


We are working on the runtime so that it won't simply throw a NPE like
this and gracefully deal with those semi-broken DOMs. But meanwhile,
those are the workaround.

Also, there's a bug report that indicates perhaps there's a real bug
regarding this area.

I'd appreciate if you check above two and let us know if that fixes the
problem or not.

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