Return-Path: Delivered-To: apmail-portals-bridges-user-archive@www.apache.org Received: (qmail 27767 invoked from network); 16 Sep 2006 12:34:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2006 12:34:23 -0000 Received: (qmail 40723 invoked by uid 500); 16 Sep 2006 12:34:23 -0000 Delivered-To: apmail-portals-bridges-user-archive@portals.apache.org Received: (qmail 40699 invoked by uid 500); 16 Sep 2006 12:34:23 -0000 Mailing-List: contact bridges-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bridges-user@portals.apache.org Delivered-To: mailing list bridges-user@portals.apache.org Received: (qmail 40688 invoked by uid 99); 16 Sep 2006 12:34:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Sep 2006 05:34:23 -0700 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 [194.159.73.193] (HELO post-23.mail.nl.demon.net) (194.159.73.193) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Sep 2006 05:34:22 -0700 Received: from adouma.demon.nl ([82.161.89.203]:41097 helo=[192.168.1.102]) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1GOZMu-000EP4-0e for bridges-user@portals.apache.org; Sat, 16 Sep 2006 12:34:00 +0000 Message-ID: <450BEF3D.908@douma.nu> Date: Sat, 16 Sep 2006 14:34:05 +0200 From: Ate Douma User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: bridges-user@portals.apache.org Subject: Re: Bug in FilterPortlet References: <450BEBEA.70606@yahoo.co.jp> In-Reply-To: <450BEBEA.70606@yahoo.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Shinsuke SUGAYA wrote: > Scott Anderson wrote: >> The portletConfig instance variable is used but never set. In the methods >> getInitParameter, getInitParameterNames, getPortletContext, >> getPortletName, >> & getResourceBundle you will get a NullPointerException if the Portlet >> being >> managed (portlet instance variable) is not an instance of PortletConfig. > > I do not see that issue. I just looked at the code and he's right. When the portlet managed is *not* an instance of PortletConfig, the FilterPortlet will use its own provided PortletConfig for resolving the request. But FilterPortlet doesn't save its PortletConfig in its init method, hence a NPE. After reviewing Scott's request to be able to use the FilterPortlet with ServletContextProvider (which requires the portlet, in this case FilterPortlet) to extend GenericPortlet, I think it can be easily "fixed", without introducing side-effects or new dependencies. As the FilterPortlet currently only implements Portlet and PortletConfig, which GenericPortlet does as well, simply extending GenericPortlet and calling super.init(PortletConfig) in its init(PortletConfig) method will resolve both issues. Additionally, I see the FilterPortlet contains another bug: in its destroy() method it doesn't call the managed portlet destroy() method. I will create a new JIRA issue for these issues, commit my proposed fixes to FilterPortlet and define portals.bridges.jsf.version=1.0.1-dev in project.properties. Then Scott can test if this indeed resolves his issues, and maybe you can validate this doesn't cause any side-effects for your usecases. Regards, Ate > Please provide(or file a bug) more information with a test case. > > Thanks, > shinsuke > >> >> Scott >> > > -------------------------------------- > [10th Anniversary] special auction campaign now! > http://pr.mail.yahoo.co.jp/auction/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: bridges-user-unsubscribe@portals.apache.org > For additional commands, e-mail: bridges-user-help@portals.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: bridges-user-unsubscribe@portals.apache.org For additional commands, e-mail: bridges-user-help@portals.apache.org