Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 043E643AE for ; Mon, 9 May 2011 10:54:48 +0000 (UTC) Received: (qmail 423 invoked by uid 500); 9 May 2011 10:54:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 346 invoked by uid 500); 9 May 2011 10:54:46 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 311 invoked by uid 99); 9 May 2011 10:54:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 10:54:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2011 10:54:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 75DFEC82D2 for ; Mon, 9 May 2011 10:54:03 +0000 (UTC) Date: Mon, 9 May 2011 10:54:03 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: <1860807696.32100.1304938443479.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <406695946.32070.1304936223151.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2504) Combined usage of Synonyms/SpellChecker causes java.lang.NullPointerException, when searching for a word out of synonyms.txt MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030680#comment-13030680 ] Uwe Schindler commented on SOLR-2504: ------------------------------------- AttributeSource.java:542 does not even exit (neither 3.1, 3.x or trunk) > Combined usage of Synonyms/SpellChecker causes java.lang.NullPointerException, when searching for a word out of synonyms.txt > ---------------------------------------------------------------------------------------------------------------------------- > > Key: SOLR-2504 > URL: https://issues.apache.org/jira/browse/SOLR-2504 > Project: Solr > Issue Type: Bug > Components: clients - java, spellchecker > Affects Versions: 3.1 > Reporter: Jens Bertheau > Fix For: 1.4 > > > After migrating from 1.4 to 3.1 we experience the following behaviour: > When SpellChecking is turned off, everything works fine. > When Synonyms are *not* being used, everything works fine. > When both, SpellChecking and Synonyms, are being used and a search is triggered, that contains at least one of the words out of synonyms.txt the following error is thrown: > java.lang.NullPointerException > at org.apache.lucene.util.AttributeSource.cloneAttributes(AttributeSource.java:542) > at org.apache.solr.analysis.SynonymFilter.incrementToken(SynonymFilter.java:132) > at org.apache.lucene.analysis.FilteringTokenFilter.incrementToken(FilteringTokenFilter.java:58) > at org.apache.solr.handler.component.SpellCheckComponent.getTokens(SpellCheckComponent.java:485) > at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:131) > at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194) > at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1360) > at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) > at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) > at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > at java.lang.Thread.run(Thread.java:619) > The problem has been described already here: > http://osdir.com/ml/solr-user.lucene.apache.org/2010-09/msg00945.html > I have a report of a third person, experiencing the same problem. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org