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