Dmitri, 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 [EMAIL PROTECTED] http://www.jacada.com > 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 points > to B and B points to A, directly or otherwise), and you launch a search like > this: "//foo", the whole thing has a good chance of falling into an infinite > loop, creating pointers of ever growing length. I have a plan to introduce > some automated detection of this situation, but at this point it will simply > lead to an OutOfMemoryError. Could this be it? > > - Dmitri > > ----- Original Message ----- > From: "Steve Pannier" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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: > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
