Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BC0111695 for ; Mon, 5 May 2014 19:25:34 +0000 (UTC) Received: (qmail 17806 invoked by uid 500); 5 May 2014 19:25:22 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 17749 invoked by uid 500); 5 May 2014 19:25:21 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 17733 invoked by uid 99); 5 May 2014 19:25:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 19:25:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cogross@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 19:25:15 +0000 Received: by mail-wi0-f179.google.com with SMTP id bs8so6132505wib.12 for ; Mon, 05 May 2014 12:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=y0SmgU/lHOTeQtzE5yOD32j2F/+6R4iXhKVvQAMQheA=; b=zzd6M/SttZ7v6GqB7zDRJTRn5i7RIMVI4SYzOfYeGcR23b7Qd2GqEJWRf5j9qCs41Q S3+xoPOTbmgEI5JoY1G1nGlA+Qur4/ImVP6NBSsKVlBQl2IEvVgzow8dpkjOBQnaNaj7 /o9x50a+acAJVh76EJdRp7HSjWunyQ6qEhGRA9OwoFiIuSk9YtLRYebhNhYZNCLxU33F DuTCOiNiHC5TZ6dum1ZEGSPN2x+CIhdr5C9K9TaEHsCvSsC/HHPsX7AQ3v42mg9kT01i gJBQirYy1MhtCwBprr78JWSRnGfsV20N805OtVm1IpETOubMf0fWHhPaR4pSIsHtAkvr zM5w== X-Received: by 10.180.185.100 with SMTP id fb4mr17376408wic.11.1399317894632; Mon, 05 May 2014 12:24:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.195.12.161 with HTTP; Mon, 5 May 2014 12:24:34 -0700 (PDT) In-Reply-To: References: From: Christopher Gross Date: Mon, 5 May 2014 15:24:34 -0400 Message-ID: Subject: Re: Odd XSLT behavior To: solr-user Content-Type: multipart/alternative; boundary=001a11c23ff6099bb904f8ac1600 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c23ff6099bb904f8ac1600 Content-Type: text/plain; charset=UTF-8 Checked that first -- it's a test site with a small sample size. The field is set in all of the items. And refreshing the query a few times can yield either result (with/without the error). I'm reverting back to an old version of my stack (my code, plus tomcat & solr), I'll step through my previous work slowly to see if I can pinpoint what breaks it. If I can (ever) determine what caused it then I'll post it. Thanks! -- Chris On Mon, May 5, 2014 at 2:05 PM, Chris Hostetter wrote: > > Shot in the dark: perhaps you have a doc w/o a value in the description > field, which means the xsl:variable's select doesn't match anything; which > perhaps means that your XSLT engine then leaves the variable undefined. > > > : Solr 4.7.2 (and 4.6.1) > : Tomcat 7.0.52 > : Java 1.7.0_45 (and _55) > : > : I'm getting some really odd behavior with some XSLT documents. I've been > : doing some upgrades to Java & Solr and I'm trying to narrow down where > the > : problems are happening. > : > : I have a few XSLT docs that I put into the conf/xslt directory for my > : indexes I haven't changed the in a while, and they were working fine > for a > : 3.X Solr, and seemed to work fine on an earlier 4.X release. > : > : The problem is that sometimes I get an error saying that a field can't be > : found. Here's a slice of the XSLT: > : > : > : > : > : > : > : > : <xsl:value-of select="str[@name='title']"/> > : > : select="str[@name='url']" > : /> > : > : > : > : > : > : > : > : > : > : > : > : ..... > : > : > : I get messages saying that it can't find the "description" variable. > : This was working perfectly well, but I can't seem to narrow down a > specific > : change that caused this. > : > : Caused by: javax.xml.transform.TransformerConfigurationException: > : solrres:/xslt/osatom.xsl: line 115: Variable or parameter 'description' > is > : undefined. > : at > : > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:964) > : at > : > org.apache.solr.util.xslt.TransformerProvider.getTemplates(TransformerProvider.java:110) > : > : Has anyone run into a problem like this? Thanks! > : > : -- Chris > : > > -Hoss > http://www.lucidworks.com/ > --001a11c23ff6099bb904f8ac1600--