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 87209 invoked from network); 18 Jun 2003 13:46:48 -0000 Received: from atltrend.jacada.com (HELO atlsmtp.jacada.com) (12.166.230.42) by daedalus.apache.org with SMTP; 18 Jun 2003 13:46:48 -0000 Subject: Re: JXPath and JAXB To: commons-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: "Steve Pannier" Date: Wed, 18 Jun 2003 08:53:46 -0500 X-MIMETrack: Serialize by Router on Jacada_Atl_Smtp/CST(Release 5.0.8 |June 18, 2001) at 06/18/2003 09:45:50 AM MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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. Again, I'm not sure if you're fighting the same battle I was, but it sure sounds similar to what I ran into. Hope this helps. Regards. Steve Pannier Jacada, Inc. (763) 201-0002 Ext. 219 spannier@jacada.com http://www.jacada.com > Hello, > > I already tried with the last nightly build before sending the email = but is > hasn't changed anything. > It is still very long to process (from 60 to 100 minutes depending on= the > Xpath expression) and I always get the OutOfMemory error. > > Regards, > J=E9r=F4me. > > ----- Original Message ----- > From: "Dmitri Plotnikov" > To: "Jakarta Commons Users List" > Sent: Tuesday, June 17, 2003 11:12 PM > Subject: Re: JXPath and JAXB > > > > Could you try the nightly build and let me know if the problem > > persists? > > > > http://cvs.apache.org/builds/jakarta-commons/nightly/commons-jxpath= / > > > > Thanks, > > > > - Dmitri > > > > > > --- CANDAT Jerome wrote: > > > Hello everyone, > > > > > > I've a problem when trying to use JXPath with JAXB-generated clas= ses. > > > I apply JXpath on the root class generated. > > > > > > If I try to locate elements using complete paths, all is ok and f= ast. > > > However if I try to locate elements using the '//' pattern (like > > > file://myElement), JXPath seems to get lost and all I get in the = end (it > > > lasted > > > about 60 to 100 minutes in some tests) is an OutOfMemoryError eve= n if > > > my XML > > > file is simple and small (about 10 ko). > > > > > > Has anyone an explanation about what is happening ? > > > Has anyone already used JXPath in combination with JAXB-generated= > > > classes ? > > > > > > Thanks in advance, > > > J=E9r=F4me. > > > > > > > > > -----------------------------------------------------------------= ---- > > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.o= rg > > > For additional commands, e-mail: commons-user-help@jakarta.apache= .org > > > > > > > > > __________________________________ > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > http://sbc.yahoo.com > > > > -------------------------------------------------------------------= -- > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org= > > For additional commands, e-mail: commons-user-help@jakarta.apache.o= rg > > > > > > > ---------------------------------------------------------------------= > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org= > =