Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 29970 invoked from network); 25 Sep 2008 07:02:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2008 07:02:24 -0000 Received: (qmail 52685 invoked by uid 500); 25 Sep 2008 07:02:15 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 52674 invoked by uid 500); 25 Sep 2008 07:02:15 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 52663 invoked by uid 99); 25 Sep 2008 07:02:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 00:02:15 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 07:01:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KikrE-0007hq-3k for users@tapestry.apache.org; Thu, 25 Sep 2008 00:01:48 -0700 Message-ID: <19664088.post@talk.nabble.com> Date: Thu, 25 Sep 2008 00:01:48 -0700 (PDT) From: 9902468 To: users@tapestry.apache.org Subject: Re: NPE when trying to contribute ServletContextSymbolProvider to SymbolSource (WAS: Re: Page pool hard limit and page instance usage) In-Reply-To: <23311.141.89.226.146.1222178852.squirrel@uli.spielviel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: ville.virtanen@cerion.fi References: <39561.141.89.226.146.1222094390.squirrel@uli.spielviel.de> <19621689.post@talk.nabble.com> <20852.141.89.226.146.1222158150.squirrel@uli.spielviel.de> <511085893.132521222166749124.JavaMail.root@mail> <373389650.133351222167650186.JavaMail.root@mail> <45474.141.89.226.146.1222168518.squirrel@uli.spielviel.de> <1051652155.135081222173743711.JavaMail.root@mail> <23311.141.89.226.146.1222178852.squirrel@uli.spielviel.de> X-Virus-Checked: Checked by ClamAV on apache.org This is starting to look more and more like Jira issue? Any new info on thi= s? -99 Ulrich St=C3=A4rk wrote: >=20 > I even removed the RequestFilter, AppligationGlobals.getServletContext() > still returns null. >=20 > Uli >=20 > Am Di, 23.09.2008, 14:42, schrieb Peter Stavrinides: >> This seems to be the same bug that existed a while bug, change your >> RequestFilter to a Dispatcher and see if it works. >> >> ----- Original Message ----- >> From: "Ulrich St=C3=83=C2=A4rk" >> To: "Tapestry users" >> Sent: Tuesday, 23 September, 2008 2:15:18 PM GMT +02:00 Athens, Beirut, >> Bucharest, Istanbul >> Subject: Re: NPE when trying to contribute ServletContextSymbolProvider >> to >> SymbolSource (WAS: Re: Page pool hard limit and page instance usage) >> >> Yes, I am. >> >> Uli >> >> Am Di, 23.09.2008, 13:00, schrieb Peter Stavrinides: >>> Ulrich are you using a RequestFilter? >>> >>> >>> ----- Original Message ----- >>> From: "Peter Stavrinides" >>> To: "Tapestry users" >>> Sent: Tuesday, 23 September, 2008 1:45:49 PM GMT +02:00 Athens, Beirut, >>> Bucharest, Istanbul >>> Subject: Re: NPE when trying to contribute ServletContextSymbolProvider >>> to >>> SymbolSource (WAS: Re: Page pool hard limit and page instance usage) >>> >>> I have looked at this a little more and it seems it is indeed a bug, I >>> get >>> a similar problem with code that works in the previous release. >>> >>> ----- Original Message ----- >>> From: "Ulrich St=C3=83=C2=83=C3=82=C2=A4rk" >>> To: "Tapestry users" >>> Sent: Tuesday, 23 September, 2008 11:22:30 AM GMT +02:00 Athens, Beirut= , >>> Bucharest, Istanbul >>> Subject: Re: NPE when trying to contribute ServletContextSymbolProvider >>> to >>> SymbolSource (WAS: Re: Page pool hard limit and page instance usage) >>> >>> I'm not sure if we are doing everything right. I hoped to hear somethin= g >>> from Howard or someone else who knows the matter before opening an issu= e >>> on this. >>> >>> Cheers, >>> >>> Uli >>> >>> Am Di, 23.09.2008, 07:47, schrieb 9902468: >>>> >>>> Should I add Jira about this? >>>> >>>> After all, it is pretty pointless to have this symbol provider if it >>>> can't >>>> work. (Perhaps there is some way to overcome this problem?) >>>> >>>> - 99 >>>> >>>> >>>> Ulrich St=C3=83=C2=83=C3=86=C2=92=C3=83=C2=82=C3=82=C2=A4rk wrote: >>>>> >>>>> A Filter is passed a FilterConfig object where you can call >>>>> getServletContext() and get the ServletContext. So the availability >>>>> shouldn't be a problem. I rather believe that it doesn't get set in >>>>> ApplicationGlobals until a certain point which is after building the >>>>> SymbolSource... >>>>> >>>>> Uli >>>>> >>>>> Am Mo, 22.09.2008, 16:01, schrieb Peter Stavrinides: >>>>>> Just a wild guess, but it sounds like an 'order of things' type >>>>>> problem, >>>>>> Tapestry being a filter and not essentially a servlet, the context >>>>>> might >>>>>> not be available at that point. >>>>>> >>>>>> ----- Original Message ----- >>>>>> From: "Ulrich St=C3=83=C2=83=C3=86=C2=92=C3=83=C2=86=C3=A2=C2=80=C2= =99=C3=83=C2=83=C3=A2=C2=80=C2=9A=C3=83=C2=82=C3=82=C2=A4rk" >>>>>> To: "Tapestry users" >>>>>> Sent: Monday, 22 September, 2008 4:51:23 PM GMT +02:00 Athens, >>>>>> Beirut, >>>>>> Bucharest, Istanbul >>>>>> Subject: NPE when trying to contribute ServletContextSymbolProvider >>>>>> to >>>>>> SymbolSource (WAS: Re: Page pool hard limit and page instance usage) >>>>>> >>>>>> The problem seems to be, that the ServletContext provided by >>>>>> ApplicationGlobals is null when Tapestry tries to contribute the >>>>>> ServletContextSymbolProvider to the SymbolSource service. I don't >>>>>> know >>>>>> why >>>>>> this is the case. Maybe someone else can shed some light on this. >>>>>> >>>>>> Uli >>>>>> >>>>>> Am Mo, 22.09.2008, 08:08, schrieb 9902468: >>>>>>> >>>>>>> Hi again, >>>>>>> >>>>>>> I'm hitting my head to wall here with ServletContextSymbolProvider. >>>>>>> It >>>>>>> is >>>>>>> configured like this: >>>>>>> >>>>>>> public static void >>>>>>> contributeSymbolSource(OrderedConfiguration >>>>>>> configuration, >>>>>>> @InjectService("ServletContextSymbolProvider") SymbolProvider >>>>>>> servletContextSymbolProvider) >>>>>>> { >>>>>>> configuration.add("ServletContextSymbolProvider" , >>>>>>> servletContextSymbolProvider, "after:SystemProperties", >>>>>>> "before:ApplicationDefaults"); >>>>>>> } >>>>>>> >>>>>>> public static ServletContextSymbolProvider >>>>>>> buildServletContextSymbolProvider(ApplicationGlobals globals){ >>>>>>> return new >>>>>>> ServletContextSymbolProvider(globals.getServletContext()); >>>>>>> } >>>>>>> >>>>>>> And it always ends to this error: >>>>>>> java.lang.RuntimeException: Unable to instantiate class >>>>>>> org.apache.tapestry5.services.TapestryModule as a module builder: >>>>>>> Exception >>>>>>> constructing service 'Alias': Error invoking service builder method >>>>>>> org.apache.tapestry5.services.TapestryModule.buildAlias(Logger, >>>>>>> String, >>>>>>> AliasManager, Collection) (at TapestryModule.java:217) (for service >>>>>>> 'Alias'): Exception constructing service 'SymbolSource': Error >>>>>>> invoking >>>>>>> constructor >>>>>>> o >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Re%3A-NPE-when-trying-to-contribute-ServletConte= xtSymbolProvider-to---SymbolSource-%28WAS%3A-Re%3A-Page-pool-hard-limit-and= -page-instance-usage%29-tp19609348p19621689.html >>>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>> >>>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>> For additional commands, e-mail: users-help@tapestry.apache.org >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>> For additional commands, e-mail: users-help@tapestry.apache.org >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>> For additional commands, e-mail: users-help@tapestry.apache.org >>> >>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >> For additional commands, e-mail: users-help@tapestry.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >> For additional commands, e-mail: users-help@tapestry.apache.org >> >> >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org > For additional commands, e-mail: users-help@tapestry.apache.org >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Re%3A-NPE-when-trying-t= o-contribute-ServletContextSymbolProvider-to---SymbolSource-%28WAS%3A-Re%3A= -Page-pool-hard-limit-and-page-instance-usage%29-tp19609348p19664088.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org