You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2013/02/05 09:12:13 UTC

[jira] [Resolved] (LUCENE-4751) IndexReader close throwing NullPointerException

     [ https://issues.apache.org/jira/browse/LUCENE-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer resolved LUCENE-4751.
-------------------------------------

    Resolution: Won't Fix

The problem here is that you are getting this critical TooManyOpenFilesException which already brings down your site. You should raise the open files limit and I recommend you to upgrade to a newer lucene version. 2.9.2 is pretty old.
                
> IndexReader close throwing NullPointerException
> -----------------------------------------------
>
>                 Key: LUCENE-4751
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4751
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 2.9.2
>         Environment: RedHat
>            Reporter: Anusha Rao
>
> Hi,
>                 Has anyone seen the NullPointerException as shown below before? We have used Lucene to build a public site search functionality.
> All the IndexReader objects in there are closed appropriately except one that throws the following error and results in (too many files open) exception.
> This brings the entire site down.
> The lucene version we are using is lucene-core-2.9.2.jar
>  
> Any idea what could cause this exception?
>  
>  
> java.lang.NullPointerException
>        at org.apache.lucene.index.SegmentReader$Norm.decRef(SegmentReader.java:393)
>        at org.apache.lucene.index.SegmentReader.doClose(SegmentReader.java:868)
>        at org.apache.lucene.index.IndexReader.decRef(IndexReader.java:170)
>        at org.apache.lucene.index.DirectoryReader.doClose(DirectoryReader.java:803)
>        at org.apache.lucene.index.IndexReader.decRef(IndexReader.java:170)
>        at org.apache.lucene.index.IndexReader.close(IndexReader.java:1302)
>        at search.Searcher.search(Searcher.java:387)   // the close in this class does not execute
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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