You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by ri...@mlc.com.au on 2003/08/21 09:33:01 UTC

[JXPath] Re: JXPath and JAXB [infinite loop in // iterators]




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


Re: [JXPath] Re: JXPath and JAXB [infinite loop in // iterators]

Posted by Dmitri Plotnikov <dp...@yahoo.com>.
Richard,

Thank you very much for the offer.  I've been completely swamped
lately.
Please send me that source code. I'll try to find a couple of hours
this weekend to look into this problem.

Thanks again,

- Dmitri

--- richard_barnett@mlc.com.au wrote:
> 
> 
> 
> 
> 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com