From Christian.Beer@Diron.DE Tue Jun 3 08:29:59 2003 Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 14486 invoked from network); 3 Jun 2003 08:29:59 -0000 Received: from unknown (HELO fw3.diron.de) (195.202.41.134) by daedalus.apache.org with SMTP; 3 Jun 2003 08:29:59 -0000 Received: from ds5.diron.de ([192.168.168.9]) by fw3.diron.de with Microsoft SMTPSVC(5.0.2195.5329); Tue, 3 Jun 2003 10:30:10 +0200 Received: by ds5.diron.de with Internet Mail Service (5.5.2448.0) id ; Tue, 3 Jun 2003 10:30:10 +0200 Message-ID: From: "Beer, Christian" To: 'Jakarta Commons Users List' Subject: RE: [jxpath] Iterating using "a/b//c//d[type='e']"... Date: Tue, 3 Jun 2003 10:30:03 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="windows-1252" X-OriginalArrivalTime: 03 Jun 2003 08:30:10.0715 (UTC) FILETIME=[58C76EB0:01C329AA] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hallo! I used the nightly build and tried to implement BeanInfo-classes and some other stuff. But it doesn't work... I debugged quite a bit and found out, that it hangs in EvalContext in line 193-198 (method performIteratorStep()). This while-loop does not exit... Could that be the problem? Thanks, Christian > -----Original Message----- > From: Dmitri Plotnikov [mailto:dplotnik@yahoo.com] > Sent: Wednesday, May 28, 2003 4:59 PM > To: Jakarta Commons Users List > Subject: Re: [jxpath] Iterating using "a/b//c//d[type='e']"... > > > Christian, > > It's very important that you use the current nightly build. > There is a > check for loops in the graph. However, I don't think it is a 100% > guarantee against infinite loops. If the upgrade to the current build > does not solve the problem, let me know - we'll have to investigate > further. > > - Dmitri > > --- "Beer, Christian" wrote: > > Hello! > > > > While evaluating JXPath if it could be used in my project, I got the > > following problem: > > > > I have a very complicated object tree that can get very big. It > > consists of > > the following classes: > > > > MyObject (super-class of the following) > > MyArray > > MyName > > MyDictionary > > MyBoolean > > MyString > > MyInteger > > MyReal > > MyNull > > MyReference > > > > Rules: > > - There is one root MyDictionary. > > - all but MyArray and MyDictionary are leaf-nodes. > > - Keys to the dictionarys are allways MyName objects. > > - I created a MyDictionaryHandler that gives the keys as strings to > > jxpath. > > - MyReference contains references to objects. > > - My MyDictionary and MyArray resolve this references and return the > > real > > objects in get and iterator. > > - Sometimes there are items in MyDictionary called parent, that > > contain a > > reference on the parent-My-Object. > > > > The tree would look quite complex, so I'll skip it. > > > > If I call, for example "myContext.iterate("a/b//c//d[t='f']")" on a > > quite > > big tree, my program hangs. > > > > Does anyone have an idea? Is it a loop in my tree? Is there a known > > bug in > > JXPath? > > > > > > I know it is quite complicated but I hope you can help me! > > > > Thanks in advance, > > > > Christian Beer > > > > > --------------------------------------------------------------------- > > 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! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >