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 9AD867850 for ; Thu, 1 Dec 2011 11:37:52 +0000 (UTC) Received: (qmail 62954 invoked by uid 500); 1 Dec 2011 11:37:51 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 62910 invoked by uid 500); 1 Dec 2011 11:37:51 -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 62902 invoked by uid 99); 1 Dec 2011 11:37:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 11:37:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of uwe@thetaphi.de designates 188.138.97.18 as permitted sender) Received: from [188.138.97.18] (HELO mail.sd-datasolutions.de) (188.138.97.18) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 11:37:45 +0000 Received: from VEGA (gate2.marum.de [134.102.237.2]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id E838A14AA00C for ; Thu, 1 Dec 2011 11:37:23 +0000 (UTC) From: "Uwe Schindler" To: References: In-Reply-To: Subject: =?iso-2022-jp?B?UkU6IENvZGVjIHdpdGggbmFtZSAbJEIhRhsoQkx1Y2VuZQ==?= =?iso-2022-jp?B?NDAbJEIhbBsoQiBkb2VzIG5vdCBleGlzdA==?= Date: Thu, 1 Dec 2011 12:37:48 +0100 Message-ID: <000f01ccb01d$a6ed2000$f4c76000$@thetaphi.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01CCB026.08B18800" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQLY5yy/xmhOESnbqu1sZBS+Z1B9qZOubFgw Content-Language: de ------=_NextPart_000_0010_01CCB026.08B18800 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Hi Lili, The problem is another one: Lucene trunk has no stable index format as it is not yet released. We changed the index format several times causing older indexes not to be readable anymore (of course 3.x indexes are always readable). When then opening those “outdated” index files it will throw this or similar exceptions. You have to completely delete your index and reindex. This is the backside of using a trunk version. Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de From: Li Li [mailto:fancyerii@gmail.com] Sent: Thursday, December 01, 2011 12:28 PM To: dev@lucene.apache.org Subject: Codec with name ‘Lucene40′ does not exist hi all when I run/debug solr in eclipse, an error occured. Caused by: java.lang.IllegalArgumentException: A SPI class of type org.apache.lu cene.index.codecs.Codec with name '' does not exist. You need to add the corresp onding JAR file supporting this SPI to your classpath.The current classpath supp orts the following names: [Lucene40, Lucene3x, SimpleText] I found this webpage http://blog.so8848.com/2011/11/55863.html It seems there is something wrong with ServiceLoader. So I use ant to build the whole project and unzip /META-INF/services/org.apache.lucene.index.codecs.Codec into my source code folder But it still failed. In eclipse's catalina base: ~/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/l ucene-solr-trunk/WEB-INF/classes$ ll drwxr-xr-x 5 lili lili 4096 2011-12-01 19:13 ./ drwxr-xr-x 4 lili lili 4096 2011-12-01 16:17 ../ drwxr-xr-x 3 lili lili 4096 2011-12-01 19:13 META-INF/ drwxr-xr-x 4 lili lili 4096 2011-12-01 16:17 org/ -rw-r--r-- 1 lili lili 2963 2011-08-18 17:22 overview.html drwxr-xr-x 3 lili lili 4096 2011-12-01 16:17 test/ $ ll META-INF/services/org.apache.lucene.index.codecs.Codec -rw-r--r-- 1 lili lili 961 2011-12-01 17:24 META-INF/services/org.apache.lucene.index.codecs.Codec ------=_NextPart_000_0010_01CCB026.08B18800 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable

Hi Lili,

 

The problem is another one: Lucene trunk has no stable index format = as it is not yet released. We changed the index format several times = causing older indexes not to be readable anymore (of course 3.x indexes = are always readable). When then opening those = =1B$B!H=1B(Joutdated=1B$B!I=1B(J index files it will throw this or = similar exceptions.

 

You have to completely delete your index and reindex. This is the = backside of using a trunk version.

 

Uwe

 

-----

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de<= /p>

eMail: uwe@thetaphi.de

 

From:= = Li Li [mailto:fancyerii@gmail.com]
Sent: Thursday, December = 01, 2011 12:28 PM
To: dev@lucene.apache.org
Subject: = Codec with name =1B$B!F=1B(JLucene40=1B(J=1B$B!l=1B(J does not = exist

 

hi = all

    when I = run/debug solr in eclipse, an error = occured.

  =  Caused by: java.lang.IllegalArgumentException: A SPI class of type = org.apache.lu

=

cene.index.codecs.Codec with name '' does not = exist. You need to add the corresp

onding JAR file supporting this SPI to your = classpath.The current classpath supp

orts the following names: [Lucene40, Lucene3x, = SimpleText]

  =   I found this webpage http://blog.so8848.com= /2011/11/55863.html 

    It seems there is something wrong = with ServiceLoader.

    So I use ant to build the whole project = and = unzip  /META-INF/services/org.apache.lucene.index.codecs.Codec = into my source code folder

    But it still = failed.

    In = eclipse's catalina base:

      =  ~/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtp= webapps/lucene-solr-trunk/WEB-INF/classes$ = ll

drwxr-xr-x 5 lili lili = 4096 2011-12-01 19:13 ./

drwxr-xr-x 4 lili lili 4096 2011-12-01 16:17 = ../

drwxr-xr-x 3 lili lili = 4096 2011-12-01 19:13 META-INF/

drwxr-xr-x 4 lili lili 4096 2011-12-01 16:17 = org/

-rw-r--r-- 1 lili = lili 2963 2011-08-18 17:22 overview.html

drwxr-xr-x 3 lili lili 4096 2011-12-01 16:17 = test/

 

    $ ll = META-INF/services/org.apache.lucene.index.codecs.Codec 

-rw-r--r-- 1 lili lili 961 2011-12-01 = 17:24 = META-INF/services/org.apache.lucene.index.codecs.Codec

------=_NextPart_000_0010_01CCB026.08B18800--