Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 49629 invoked from network); 2 Mar 2010 20:27:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 20:27:55 -0000 Received: (qmail 25375 invoked by uid 500); 2 Mar 2010 20:27:50 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 25349 invoked by uid 500); 2 Mar 2010 20:27:50 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 25341 invoked by uid 99); 2 Mar 2010 20:27:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 20:27:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 20:27:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6179E234C4BE for ; Tue, 2 Mar 2010 20:27:27 +0000 (UTC) Message-ID: <907091620.14961267561647398.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Mar 2010 20:27:27 +0000 (UTC) From: "Ate Douma (JIRA)" To: jetspeed-dev@portals.apache.org Subject: [jira] Updated: (JS2-1114) [velocity] Null reference [template 'decorations/layout/jetspeed/header.vm', line 49, column 17] :${layoutFragment.id} cannot be resolved In-Reply-To: <1970795534.552381267182327979.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JS2-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ate Douma updated JS2-1114: --------------------------- Fix Version/s: 2.2.1 Assignee: Ate Douma > [velocity] Null reference [template 'decorations/layout/jetspeed/header.vm', line 49, column 17] :${layoutFragment.id} cannot be resolved > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: JS2-1114 > URL: https://issues.apache.org/jira/browse/JS2-1114 > Project: Jetspeed 2 > Issue Type: Bug > Components: Decorations/Themes > Affects Versions: 2.2.0 > Environment: Apache 2.2 + mod_jk + jboss4.0.5 + oracle10g + windows > Reporter: Francisco Javier Rosado > Assignee: Ate Douma > Priority: Trivial > Fix For: 2.2.1 > > Attachments: header.vm > > > When I start my portal or a binary distribution of JetSpeed 2.2.0, in the logs, appears a trace that reads as follows: > 2010-02-25 18:54:14,033 INFO [velocity] Null reference [template 'decorations/layout/jetspeed/header.vm', line 49, column 17] :${layoutFragment.id} cannot be resolved. > This not produce effects, but is ugly. > This line is in header.vm. > #defineLayoutObjects() > . > . >
> This variable (layoutFragment) is not initialized, and I thought must be: >
> Because rootFragment is the variable initialized in the jetspeed_macros.vm > #macro (defineLayoutObjects) > #set($preferedLocale = $JS2RequestContext.locale) > #set($rootFragment = $jetspeed.currentFragment) > #set($site =$request.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext")) > #set($theme = $request.getAttribute("org.apache.jetspeed.theme")) > #set($layoutDecoration = $theme.getDecoration($rootFragment)) > #end > Regards > Francisco Rosado -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org