Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 26446 invoked from network); 1 Sep 2009 16:00:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 16:00:37 -0000 Received: (qmail 86095 invoked by uid 500); 1 Sep 2009 16:00:35 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 86047 invoked by uid 500); 1 Sep 2009 16:00:35 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 86037 invoked by uid 99); 1 Sep 2009 16:00:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 16:00:35 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [129.83.20.191] (HELO smtp-bedford.mitre.org) (129.83.20.191) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 16:00:24 +0000 Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id n81G02tY023350 for ; Tue, 1 Sep 2009 12:00:02 -0400 Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id n81G02wQ023343; Tue, 1 Sep 2009 12:00:02 -0400 Received: from IMCMBX1.MITRE.ORG ([129.83.29.204]) by imchub1.MITRE.ORG ([129.83.29.73]) with mapi; Tue, 1 Sep 2009 12:00:02 -0400 From: "Smiley, David W." To: solr , "Villemos, Gert" Date: Tue, 1 Sep 2009 11:59:58 -0400 Subject: Re: solrj - Log4j and slf4j integration - java.lang.IllegalStateException thrown Thread-Topic: solrj - Log4j and slf4j integration - java.lang.IllegalStateException thrown Thread-Index: AcoqznGJuSadr4igT/CN0xUrROy7YQAAVRUAABNe0Ao= Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_C6C2BD3E24896dsmileymitreorg_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_C6C2BD3E24896dsmileymitreorg_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Are you running the latest versions of these logging libraries? I see noth= ing in the 1.5.8 SLF4J Log4j adapter that would cause this. ~ David Smiley Author: http://www.packtpub.com/solr-1-4-enterprise-search-server On 9/1/09 10:49 AM, "Villemos, Gert" wrote: We are using solrj 1.3 (with slf4j) in a client also using Aperture (with log4j 1.2.14). When executing a query I get the error shown below. The request is never received by the server, i.e. the exception is thrown before the request is issued. I think I'm running into a compatibility issue between slf4j and log4j, but don't know how to solve it. Regards, Gert. --- Stack Trace ------------------------ org.apache.solr.client.solrj.SolrServerException: Error executing query at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.j ava:96) at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:109) at org.esa.huginn.solr.SolrContainer.getNext(SolrContainer.java:105) at org.esa.huginn.commons.container.consolidationstrategies.SynonymReplacem entConsolidator.execute(SynonymReplacementConsolidator.java:191) at org.esa.huginn.filesystemcrawler.FileSystemCrawlerContext.initialize(Fil eSystemCrawlerContext.java:134) at org.esa.huginn.filesystemcrawler.FileSystemCrawlerContext.main(FileSyste mCrawlerContext.java:63) Caused by: java.lang.IllegalStateException: Level number 10 is not recognized. at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:421) at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocatio nAwareLog.java:106) at org.apache.commons.httpclient.HttpConnection.releaseConnection(HttpConne ction.java:1178) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon nectionAdapter.releaseConnection(MultiThreadedHttpConnectionManager.java :1423) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho dDirector.java:222) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3 97) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3 23) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsH ttpSolrServer.java:335) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsH ttpSolrServer.java:183) at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.j ava:90) Please help Logica to respect the environment by not printing this email /= Pour contribuer comme Logica au respect de l'environnement, merci de ne pa= s imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfe= n Sie so Logica dabei, die Umwelt zu sch?tzen. / Por favor ajude a Logica = a respeitar o ambiente nao imprimindo este correio electronico. This e-mail and any attachment is for authorised use by the intended recipi= ent(s) only. It may contain proprietary material, confidential information = and/or be subject to legal privilege. It should not be copied, disclosed to= , retained or used by, any other party. If you are not an intended recipien= t then please promptly delete this e-mail and any attachment and all copies= and inform the sender. Thank you. --_000_C6C2BD3E24896dsmileymitreorg_--