nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Hires <jhi...@gmail.com>
Subject exception in search.jsp
Date Sun, 14 Feb 2010 22:18:29 GMT
I am seeing the following and am able to find any notes anywhere on it.

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 207 in the jsp file: /search.jsp
query.getParams cannot be resolved or is not a field
204:     // position.... this is good, bad?... ugly?....
205:    Hits hits;
206:    try{
207:       query.getParams.initFrom(start + hitsToRetrieve,
hitsPerSite, "site", sort, reverse);
208:      hits = bean.search(query);
209:    } catch (IOException e){
210:      hits = new Hits(0,new Hit[0]);	



It looks like this change came in recently to SVN

--- lucene/nutch/trunk/src/web/jsp/search.jsp	2009/10/09 17:02:32	823614
+++ lucene/nutch/trunk/src/web/jsp/search.jsp	2010/02/01 20:47:34	905410
@@ -204,8 +204,8 @@
     // position.... this is good, bad?... ugly?....
    Hits hits;
    try{
-     hits = bean.search(query, start + hitsToRetrieve, hitsPerSite, "site",
-                        sort, reverse);
+      query.getParams.initFrom(start + hitsToRetrieve, hitsPerSite,
"site", sort, reverse);
+     hits = bean.search(query);
    } catch (IOException e){
      hits = new Hits(0,new Hit[0]);	
    }


Has anyone else run into this, or did I miss something when updating to the
latest version?

Jesse

int GetRandomNumber()
{
   return 4; // Chosen by fair roll of dice
                // Guaranteed to be random
} // xkcd.com

Mime
View raw message