Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Exception caused by nu.xom.ParsingException

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Nils Kilden-Pedersen <nilskp AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Exception caused by nu.xom.ParsingException
  • Date: Sat, 31 Jan 2009 18:31:58 -0600

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




Archive powered by MHonArc 2.6.24.

Top of Page