cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: LuceneSearchGenerator: NullPointerException if query contains a blank
Date Tue, 25 May 2004 11:25:07 GMT
Stephan Coboos wrote:

> Hello,
>
> I'am trying the LuceneSearchGenerator of the cocoon samples to search 
> for a pattern passed to the generator via the parameter "queryString" 
> but if this query string contains a blank " " or a special character 
> like (, ) ", ! a NullPointerException will be thrown. Why? What can I 
> do to avoid this exception? Is it a bug? Thank you.
>
> The full exception:
>
> Original Exception: java.lang.NullPointerException at 
> org.apache.cocoon.www.samples.lucene.search_index_xsp.generate(org.apache.cocoon.www.samples.lucene.search_index_xsp:1087)

> at 
> org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:263)

> at


There is no LuceneSearchGenerator anywhere in the stacktrace. So I can 
only conclude that there is no any bug in LuceneSearchGenerator. What I 
see though is exception in search_index.xsp file - check generated Java 
files to find exact xsp line causing exception.

Vadim



Mime
View raw message