Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 84053 invoked from network); 24 Jul 2007 10:11:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 10:11:12 -0000 Received: (qmail 49387 invoked by uid 500); 24 Jul 2007 10:11:05 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 49341 invoked by uid 500); 24 Jul 2007 10:11:05 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 49321 invoked by uid 99); 24 Jul 2007 10:11:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 03:11:04 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of amit.hanchinamani@gmail.com designates 64.233.162.231 as permitted sender) Received: from [64.233.162.231] (HELO nz-out-0506.google.com) (64.233.162.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 03:11:02 -0700 Received: by nz-out-0506.google.com with SMTP id l8so1232731nzf for ; Tue, 24 Jul 2007 03:10:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Qc2ThUWdO0Srl94w+Nlria/5A8AGbe7ZTxrecp/sjkN8R7NbSySqkY3XMdj9OC+pP5B0z9vBwftmOm68CQ2QPKO/og/wixtbTP/7mr5YmM3rsVN3e7SFAsEDFEbMiw2/E33kkaXEUGHrwKvzLxGMmW2CrDeNmsQyG9eFfrjpfHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Jk+bydCNSVADu6j5TC3lBJqozJmdUAsu+vPNVeFN6pbrT2h9QnK5t6RMk5DDIX3u6OLs2xdLcAHHuSF/JD4/btHaY5xrOR/OskIRTfcjS7q37SCiEFR3AE1a1mRkRWuRw8XL0W5POlXuRH3ru6EoU2Tl/tDY4aQuJo7rjosudV8= Received: by 10.115.108.1 with SMTP id k1mr3895797wam.1185271840239; Tue, 24 Jul 2007 03:10:40 -0700 (PDT) Received: by 10.114.179.14 with HTTP; Tue, 24 Jul 2007 03:10:40 -0700 (PDT) Message-ID: <49923b590707240310u75dec1f7l12c39193f65582d4@mail.gmail.com> Date: Tue, 24 Jul 2007 12:10:40 +0200 From: Amit To: "Jakarta Commons Users List" Subject: Re: java.lang.StackOverflowError exception In-Reply-To: <1185204706.6062.21.camel@simon-laptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_163303_29632629.1185271840212" References: <49923b590707230626t44493ed3m23a1fcd19ee61daa@mail.gmail.com> <1185204706.6062.21.camel@simon-laptop> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_163303_29632629.1185271840212 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Simon, Thanks for replying, but I already managed to fix the problem :) On 7/23/07, simon wrote: > > On Mon, 2007-07-23 at 15:26 +0200, Amit wrote: > > Hi All, > > > > I am using Digester to parse an xml file as follows > > > > Bundle bundle = Platform.getBundle("id"); > > Path path = new Path("myDir/first.xml"); > > URL url = FileLocator.find(bundle, path, null); > > digester.parse(url); > > > > > > but the problem is that everytime it throws me > > java.lang.StackOverflowErrorexception > > > > Exception in thread "Thread-2" java.lang.StackOverflowError > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown > Source) > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown > > Source) > > at java.lang.reflect.Constructor.newInstance(Unknown Source) > > at java.lang.Class.newInstance0(Unknown Source) > > > > It seems like the parsing is going in infinite loop. > > Can anyone suggest what is wrong with this appraoch or do I have to > > call > > parse method in another way..? > > Sorry, there isn't enough info in your email to offer an opinion on > this. All the stack trace indicates is that something somewhere is > calling newInstance. That's not enough to do much with... > > Please provide: > (1) a fuller stack trace > (2) the value of the "url" parameter > (3) the digester rules (if they aren't too long) > > Regards, > > Simon > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > Get Firefox! ------=_Part_163303_29632629.1185271840212--