[XOM-interest] Exception caused by nu.xom.ParsingException
Nils Kilden-Pedersen
nilskp at gmail.com
Sat Jan 31 19:31:58 EST 2009
On Sat, Jan 31, 2009 at 3:22 PM, Bruce Hyatt <bruce.hyatt at gmail.com> wrote:
> On Sat, Jan 31, 2009 at 12:59 PM, Elliotte Harold
> <elharo at metalab.unc.edu> wrote:
> > Bruce Hyatt wrote:
> >>
> >> I was able to run a program using the Builder class but when I tried
> >> to run a program that also used the Serializer class and catching
> >> ParsingException the program returned NoClassDefFoundError:
> >> nu/xom/ParsingException. There was more to the error message but that
> >> appears to be the heart of the problem.
> >>
> >
> > NoClassDefFoundError almost always indicates a classpath problem, XOM or
> > otherwise.
>
> It's just a little perplexing because another program using XOM worked
> fine.
>
I have just seen NoClassDefFoundError as a result of failure in a static
initializer. Don't know why that exception is being thrown since in my case
(and probably your case too) the class def is actually found, but it failed
to load, in my case because of a failure in a dependent class's static
initializer.
Nils
More information about the XOM-interest
mailing list