commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From richard_barn...@mlc.com.au
Subject [JXPath] Re: JXPath and JAXB [infinite loop in // iterators]
Date Thu, 21 Aug 2003 07:33:01 GMT




On 2003-06-18 Dmitri Plotnikov <dplotnik () yahoo ! com> wrote:

> --- Steve Pannier <Steve_Pannier.CST () jacada ! com> wrote:
>
> > I don't know if this will help, but I experienced a similar problem
> > (OutOfMemoryError) a few months back.  I wasn't using JXPath
> > with JAXB-generated classes, but I was using the "//" pattern.
> > See the thread titled "[JXPath] Infinite loop in iterator.hasNext()"
> > in the Commons User mailing list archives.  The problem was
> > due to the way JXPath uses introspection.  To resolve it, I ended
> > up creating a custom BeanInfo for the class that had an
> > introspection problem.
>
> The thing is that JXPath is supposed to have some protection against an
> infinite loop caused by "//". So, rather than patching it for
> particular situations, help me fully research what's wrong and fix or
> re-fix it.
>
> Jérôme, could you give some more details, perhaps even the generated
> classes and xpaths that fail - I'll try to investigate the issue very
> quickly.

I've just hit what seems to be the same problem (in 1.1 & the 20030820 nightly build)
& can reproduce it using a trivial JAXB object.

Dmitri, if you haven't already fixed this I can send you a zip of the sources & classes
which reproduce this, and/or do a bit of debugging.

-- Richard


Mime
View raw message