I’m getting these exceptions after rebuilding WebLab, without using any of the new search features.


Caused by: org.apache.lucene.queryParser.ParseException: ‘*’ or ‘?’ not allowed as first character in WildcardQuery
at org.apache.lucene.queryParser.QueryParser.getWildcardQuery(QueryParser.java:982)
at org.apache.lucene.queryParser.MultiFieldQueryParser.getWildcardQuery(MultiFieldQueryParser.java:201)
at org.apache.lucene.queryParser.MultiFieldQueryParser.getWildcardQuery(MultiFieldQueryParser.java:196)
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1406)
at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1309)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
… 78 more
ERROR WHILE LISTING SEARCH RESULTS
java.lang.NullPointerException
at org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.(FullTextQueryImpl.java:90)
at org.hibernate.search.impl.FullTextSessionImpl.createFullTextQuery(FullTextSessionImpl.java:117)
at org.webdsl.search.AbstractEntitySearcher.validateQuery(AbstractEntitySearcher.java:995)
at org.webdsl.search.AbstractEntitySearcher.list(AbstractEntitySearcher.java:728)
at webdsl.generated.domain.Person.static_searchPerson(Person.java:25)
at webdsl.generated.domain.Person.static_searchPerson(Person.java:20)
at webdsl.generated.templates.searchPersonString__Set_Person__Template.initializeLocalVars(searchPersonString__Set_Person__Template.java:304)
at utils.TemplateServlet.tryInitializeTemplate(TemplateServlet.java:187)
at utils.TemplateServlet.render(TemplateServlet.java:81)
at webdsl.generated.templates.SearchPersonString__Set_Person_Page.serveAsAjaxResponse(SearchPersonString__Set_Person_Page.java:346)
at webdsl.generated.templates.addPersonSet_Person__ta0String__String__Set_Person__Template$1.run(addPersonSet_Person__ta0String__String__Set_Person__Template.java:370)
at webdsl.generated.templates.addPersonSet_Person__ta0String__String__Set_Person__Template.handleActionsInternal(addPersonSet_Person__ta0String__String__Set_Person__Template.java:306)
at utils.TemplateServlet.handleActions(TemplateServlet.java:75)

Submitted by Eelco Visser on 12 March 2012 at 22:13

On 12 March 2012 at 22:13 Eelco Visser tagged @elmer

On 12 March 2012 at 22:18 Elmer van Chastelet commented:

Does it happen on empty queries, or any query?


On 14 March 2012 at 12:17 Elmer van Chastelet closed this issue.

On 14 March 2012 at 12:17 Elmer van Chastelet commented:

I close this issue for now, because the query probably only included an asterisk, not preceded with a query prefix.

Log in to post comments