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




Reply via email to