[ 
https://issues.apache.org/jira/browse/LUCENE-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571344#comment-13571344
 ] 

Anusha Rao commented on LUCENE-4751:
------------------------------------

No we are notusing IndexReader.setNorm. Just opening the reader. Reading
indexes and closing it.
the limit of the OS is set to large number already about 80000 or so


On Tue, Feb 5, 2013 at 6:39 AM, Michael McCandless (JIRA)


                
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to