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 704AC965C for ; Fri, 2 Dec 2011 06:40:09 +0000 (UTC) Received: (qmail 56489 invoked by uid 500); 2 Dec 2011 06:40:08 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 56421 invoked by uid 500); 2 Dec 2011 06:40:06 -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 56056 invoked by uid 99); 2 Dec 2011 06:40:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 06:40:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Fri, 02 Dec 2011 06:40:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7C1D4AF8E0 for ; Fri, 2 Dec 2011 06:39:40 +0000 (UTC) Date: Fri, 2 Dec 2011 06:39:40 +0000 (UTC) From: "tom liu (Created) (JIRA)" To: dev@lucene.apache.org Message-ID: <32399559.34058.1322807980509.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (SOLR-2936) Error Logs of core.SolrCore's finalize 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 Error Logs of core.SolrCore's finalize -------------------------------------- Key: SOLR-2936 URL: https://issues.apache.org/jira/browse/SOLR-2936 Project: Solr Issue Type: Bug Affects Versions: 4.0 Environment: JDK1.6/CentOS Reporter: tom liu the Error log is : ERROR: core.SolrCore (SolrCore.java:finalize(797)) - REFCOUNT ERROR: unreferenced org.apache.solr.core.SolrCore@2f59f0d1 (seo0#seo0) has a reference count of 1 i think in EmbeddedSolrServer's request method, Line 127: // Extract the handler from the path or params SolrRequestHandler handler = core.getRequestHandler( path ); if( handler == null ) { if( "/select".equals( path ) || "/select/".equalsIgnoreCase( path) ) { String qt = params.get( CommonParams.QT ); handler = core.getRequestHandler( qt ); if( handler == null ) { throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt); } } when handler is null, and before throw SolrException, that must close the core: // Extract the handler from the path or params SolrRequestHandler handler = core.getRequestHandler( path ); if( handler == null ) { if( "/select".equals( path ) || "/select/".equalsIgnoreCase( path) ) { String qt = params.get( CommonParams.QT ); handler = core.getRequestHandler( qt ); if( handler == null ) { core.close(); throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt); } } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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