commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Pannier" <>
Subject Re: [JXPath] Infinite loop in iterator.hasNext()
Date Tue, 18 Feb 2003 23:19:15 GMT


One thing I forgot to ask in my last post:  I have a Map (or a graph
as you referred to it), and I want to verify that it contains no loops.
Is there an easy way to do this?  Any tool I can use?  Or do I need
to do this the old fashioned way?

Thanks for your help.

Steve Pannier
Jacada, Inc.
(763) 201-0002 Ext. 219

> I will wait for you test case before start seriously looking into this.
> Here's something that might help.  If you have a graph with a loop (A
> to B and B points to A, directly or otherwise), and you launch a search
> this: "//foo", the whole thing has a good chance of falling into an
> loop, creating pointers of ever growing length.  I have a plan to
> some automated detection of this situation, but at this point it will
> lead to an OutOfMemoryError.  Could this be it?
> - Dmitri
> ----- Original Message -----
> From: "Steve Pannier" <>
> To: <>
> Sent: Monday, February 17, 2003 2:58 PM
> Subject: [JXPath] Infinite loop in iterator.hasNext()
> > I've run into a problem with iterating through the result set after
> > calling context.iterate().  As I'm iterating, the hasNext() method
> > in my while loop conditional seems to get into an infinite loop.
> > (I get several java.lang.OutOfMemoryError's - no stack trace
> > available.)  I did get a stack dump by sending the Unix QUIT
> > signal to my running process, and the result of that is shown
> > here:
> >

View raw message