Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 45736 invoked from network); 24 Nov 2008 13:27:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2008 13:27:29 -0000 Received: (qmail 80715 invoked by uid 500); 24 Nov 2008 13:27:33 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 80678 invoked by uid 500); 24 Nov 2008 13:27:33 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 80667 invoked by uid 99); 24 Nov 2008 13:27:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 05:27:32 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claudia.cm.santos@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 13:26:07 +0000 Received: by nf-out-0910.google.com with SMTP id g16so1048527nfd.15 for ; Mon, 24 Nov 2008 05:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:mime-version:content-type:x-priority:x-msmail-priority :x-mailer:x-mimeole; bh=m43S/MqmXd9llU8PP/uMLq7b7RtJx2aainMgRTMZ0MQ=; b=YGcwMWj54uD56JMAWqp0Eo46k2xagPlSoRwqs0WVpi2VNNeN6+BsTFHnTZuuoMtsT0 JvKu3MAyLRJFqWdjcYmQhud89iroonSphP2sXX1HMrYw/oQUtXP8fGMsFdvpgWlnXLdy H/Fq8MgVmsxwbRJhGXuK337vJ67YVp/JT9D8I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :x-priority:x-msmail-priority:x-mailer:x-mimeole; b=xY1CHn8df7F2b131cLqTmNVESnvVBai0nWRHFTr0hUCZJuMXIxcc08lOeCH4ny+fHw ymHBvCz7NEmskBzrKAxi0HZEJCPWy0s8Ib0dXS6LAIdIUke7cVt16Z8Y6bfT/P7C1QaR 9nLYWe8bN8+QiY39cTD5nQuhfeYRwsaVG6j/U= Received: by 10.86.80.5 with SMTP id d5mr2185909fgb.7.1227533202413; Mon, 24 Nov 2008 05:26:42 -0800 (PST) Received: from intrepid (dsdf-4db5e644.pool.einsundeins.de [77.181.230.68]) by mx.google.com with ESMTPS id l19sm6906082fgb.7.2008.11.24.05.26.41 (version=SSLv3 cipher=RC4-MD5); Mon, 24 Nov 2008 05:26:41 -0800 (PST) Message-ID: <57A13FD0BED44136B9C08E4F400208FF@intrepid> From: "Claudia Santos" To: Subject: GermanAnalyzer Date: Mon, 24 Nov 2008 14:26:38 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A5_01C94E40.A9B49F30" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_00A5_01C94E40.A9B49F30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello,=20 I'm a newbie with Lucene and I started some testing with a small Web = Application with Lucene 2.4.0 and Hibernate Search 3.0.0. The test with = the Standard Analyser were successful, but when i try to use the German = Analyser (for indexing and searching) i get the following error in = localhost file from Tomcat 6.0:=20 "SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet threw = exception=20 java.lang.AbstractMethodError: = org.apache.lucene.analysis.TokenStream.next()Lorg/apache/lucene/analysis/= Token;"=20 my code is:=20 public List search(final int startRecord,final int endRecord, final = String searchTerm) { List searchResult =3D (List) getHibernateTemplate().execute(=20 new HibernateCallback() { public Object doInHibernate(org.hibernate.Session session) { try { FullTextSession fullTextSession =3D = Search.createFullTextSession(session); QueryParser parser =3D new MultiFieldQueryParser( FIELD_NAMES, new = GermanAnalyzer()); org.apache.lucene.search.Query query; // this is the line that generates the error =20 query =3D parser.parse(searchTerm); org.hibernate.search.FullTextQuery hibernateQuery =3D = fullTextSession.createFullTextQuery(query, Book.class); hibernateQuery.setFirstResult(startRecord); hibernateQuery.setMaxResults(endRecord); setNumberFeeds(hibernateQuery.getResultSize()); List results =3D hibernateQuery.list(); return results; } catch (ParseException e) { e.printStackTrace(); return null; } } }, true); return searchResult; } i found nothing in internet about the error message, any help is = appreciated :)=20 regards,=20 ------=_NextPart_000_00A5_01C94E40.A9B49F30--