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 [EMAIL PROTECTED] 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�r�me. > > ----- Original Message ----- > From: "Dmitri Plotnikov" <[EMAIL PROTECTED]> > To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> > 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 <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > > > > > I've a problem when trying to use JXPath with JAXB-generated classes. > > > I apply JXpath on the root class generated. > > > > > > If I try to locate elements using complete paths, all is ok and fast. > > > 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 even 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�r�me. > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > __________________________________ > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > http://sbc.yahoo.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
