You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2013/02/05 12:39:13 UTC
[jira] [Commented] (LUCENE-4751) IndexReader close throwing
NullPointerException
[ https://issues.apache.org/jira/browse/LUCENE-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571242#comment-13571242 ]
Michael McCandless commented on LUCENE-4751:
--------------------------------------------
You can try enabling compound file and/or decreasing your mergeFactor to reduce the open file count, or increase the limit set by your OS/shell.
Are you using IndexReader.setNorm?
> 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