nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sami Siren <ssi...@gmail.com>
Subject Re: exception in search.jsp
Date Mon, 15 Feb 2010 08:12:16 GMT
Hi Jesse,

thanks for spotting this. I fixed the problem in trunk, see 
https://issues.apache.org/jira/browse/NUTCH-793

--
  Sami Siren

Jesse Hires wrote:
> 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 <http://xkcd.com>
> 


Mime
View raw message