Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 23158 invoked from network); 19 Jan 2006 17:39:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jan 2006 17:39:24 -0000 Received: (qmail 82801 invoked by uid 500); 19 Jan 2006 17:39:06 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 82749 invoked by uid 500); 19 Jan 2006 17:39:05 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 82726 invoked by uid 99); 19 Jan 2006 17:39:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 09:39:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.169.145.166] (HELO natnoddy.rzone.de) (81.169.145.166) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 09:39:04 -0800 Received: from [172.26.0.5] (242.Red-213-97-135.staticIP.rima-tde.net [213.97.135.242]) (authenticated bits=0) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id k0JHcfSi007834 for ; Thu, 19 Jan 2006 18:38:42 +0100 (MET) Subject: Re: Dispatcher gives stack overflow From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <43CFC862.2080100@apache.org> References: <43CFC862.2080100@apache.org> Content-Type: text/plain; charset=utf-8 Date: Thu, 19 Jan 2006 18:38:39 +0100 Message-Id: <1137692319.16606.39.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N El jue, 19-01-2006 a las 17:12 +0000, Ross Gardler escribió: > I'm trying to get the listLocations plugin (or rather a copy of it) > working with the Dispatcher. However, I'm getting a stack overflow. > > Here's how my plugin differes from the current listLocations one: > > Added a contract to resources/themes/common/html (but not created a *fv > file yet so the contract is not being used). > optional > Defined the structurer and themer plugins to forrest.properties > required > Added project.theme=default and project.theme-extension=.fv to forrest > properties. > required/optional ...ah I just see project.theme=default does not exist anymore!!! it is now common. > Added a forrest.properties.xml file (with a value for my contract), but > nothing else, so it isn' really being used yet, since the contract s not > being used either. > > Doing Forrest run and http://localhsot:8888 results in a 500 response. Yeah, because http://localhsot != http://localhost (or is it a spelling error only in this mail?) > The console reports there has been a stack overflow. > Hmm, stack overflow I only saw in raw occasion while developing this stuff (normally it was an error *I* made and leaded to a looping behavior). > Looking in the logs I see there is a problem with the locationmap. I am > seeing entried like this: > > PARAM: '2' VALUE: > 'linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-index' > PARAM: '0' VALUE: > 'structurer-properties.html.linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-linkmap-index' > PARAM: '1' VALUE: 'html' > Hmm, never saw this in my life. ...but wait do you have a match="*.hmtl" in your plugin? > It looks to me like we have a loop between the sitemap and the > locationmap. hmm, I do not think so. > However, due to the masses of indirection between these two > files my tired old brain can't work out what on earth is happening, or > what is supposed to be happening. > > I'll have another look at it when I have a refreshed head in the > morning. But I want to flag this up as another really good example why > we need remove this indirection as Tim suggested (see > http://issues.apache.org/jira/browse/FOR-783 ) > Actually only one word why I originally did it, because it lets the user override each and every step of v2. Like I said in earlier mails I agree that it need a cleanup and promised that the dispatcher will have addressed it. Anyway I do not even thing that it is related with your current problem. Bottom line, to point this out all the time does not fix it, you can either wait for the final dispatcher release or fix it yourself. Sorry, ATM I am busy to bring up lenya zones and have a basic infrastructure to work on the doco pub (lenya publication - forrest rendering). As soon as I have lenya zones working like I want it, I will focus my time again to release the dispatcher (Cyriaque brought us closer to this point on forrest Friday, thanks again). Till then 783 is for me a wont-fix since it will be fixed in the final release with the rewrite of v2. P.S.: you know me, but again I want to point out no offense intended at any time. ;-) salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)