Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 40057 invoked from network); 24 Nov 2008 13:19:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2008 13:19:57 -0000 Received: (qmail 73079 invoked by uid 500); 24 Nov 2008 13:20:01 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 73049 invoked by uid 500); 24 Nov 2008 13:20:01 -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 73038 invoked by uid 99); 24 Nov 2008 13:20:01 -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:20:01 -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 66.249.90.181 as permitted sender) Received: from [66.249.90.181] (HELO ik-out-1112.google.com) (66.249.90.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2008 13:18:35 +0000 Received: by ik-out-1112.google.com with SMTP id c29so1631925ika.5 for ; Mon, 24 Nov 2008 05:19:10 -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=sSCW+pWy9sZrgkvvI8mDPJ2Ejzdpl5odea4w/VeGZIk=; b=cp7MzQLDHY6nfMkVepYVkyFsIuIDVQXaq2BZlg2nYFuaDYA1vaA0XDaCfAbb2nndBB xDhceRsoseJZZygfF8DRvaNpP/TyEn8Xfs7oo9oa3wUxigbMObG1H3IfbReRnGXfUMak 4yvfWtdYCC7ryPYMpYPFdSaMK8HYHGKFq4kw8= 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=nd3Wbp/DCFZhNcEEIgUMA5TOF7HXrAAIaHIbHkM7qWR7S1mpKIxEJERjR1+ZV/YhBP NQTuW+btNVGW8jUy9U5j5OPpSKOu4SXAfHSyZM/cIsyHk3vfk+nW5Ml+sn7invDn+Pm1 Y585e7eIAvgounwApTxOY1Az1/Caozn1ZYRbM= Received: by 10.86.80.5 with SMTP id d5mr2171158fgb.47.1227532750077; Mon, 24 Nov 2008 05:19:10 -0800 (PST) Received: from intrepid (dsdf-4db5e644.pool.einsundeins.de [77.181.230.68]) by mx.google.com with ESMTPS id e20sm6913477fga.1.2008.11.24.05.19.08 (version=SSLv3 cipher=RC4-MD5); Mon, 24 Nov 2008 05:19:09 -0800 (PST) Message-ID: <585098733549433587FA60970CE0A33D@intrepid> From: "Claudia Santos" To: Subject: GermanAnalyzer Date: Mon, 24 Nov 2008 14:19:06 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_008B_01C94E3F.9C297A80" 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_008B_01C94E3F.9C297A80 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_008B_01C94E3F.9C297A80--