users@jaxb.java.net

Re: Xerces NullPointerException during unmarshall

From: Marcus Walls <marcus.walls_at_ASPECTIVE.COM>
Date: Thu, 03 Apr 2003 10:49:01 -0700

The NullPointerException occurs when unmarshalling from a URL,
but if I wrap the URL up in an SAXSource as suggested; i.e.

  // return u.unmarshall(url);
  return u.unmarshall(new SAXSource(new InputSource(url.openStream())));

Then happily it works fine! Is this still using Xerces under the hood?
Presumably I can force the issue with the other SAXSource constructor...

Thanks very much!

Marcus