I experienced this on an EmbeddedSolrServer which was running behind a
tomcat process. After restarting the tomcat process 2-3 times (implying this
also recreates the SolrServer every time as well) this issue went away but I
don't know why it ever started. It looked like the searcher shutdown was not
clean the previous time and I believe that could have to do with it.

Tony

On Sat, Dec 4, 2010 at 11:44 PM, Tharindu Mathew <mcclou...@gmail.com>wrote:

> Any help on this?
>
> On Thu, Dec 2, 2010 at 7:51 PM, Tharindu Mathew <mcclou...@gmail.com>
> wrote:
> > Hi everyone,
> >
> > I get the exception below when using Embedded Solr suddenly. If I
> > delete the Solr index it goes back to normal, but it obviously has to
> > start indexing from scratch. Any idea what the cause of this is?
> >
> > java.lang.RuntimeException: java.io.FileNotFoundException:
> >
> /home/evanthika/WSO2/CARBON/GREG/3.6.0/23-11-2010/normal/wso2greg-3.6.0/solr/data/index/segments_2
> > (No such file or directory)
> > at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1068)
> > at org.apache.solr.core.SolrCore.<init>(SolrCore.java:579)
> > at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
> > at
> org.wso2.carbon.registry.indexing.solr.SolrClient.<init>(SolrClient.java:103)
> > at
> org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:115)
> > ... 44 more
> > Caused by: java.io.FileNotFoundException:
> >
> /home/evanthika/WSO2/CARBON/GREG/3.6.0/23-11-2010/normal/wso2greg-3.6.0/solr/data/index/segments_2
> > (No such file or directory)
> > at java.io.RandomAccessFile.open(Native Method)
> > at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
> > at
> org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.<init>(SimpleFSDirectory.java:78)
> > at
> org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:108)
> > at
> org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.<init>(NIOFSDirectory.java:94)
> > at
> org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:70)
> > at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:691)
> > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:236)
> > at
> org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:72)
> > at
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:683)
> > at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)
> > at org.apache.lucene.index.IndexReader.open(IndexReader.java:476)
> > at org.apache.lucene.index.IndexReader.open(IndexReader.java:403)
> > at
> org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
> > at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1057)
> > ... 48 more
> >
> > [2010-11-23 14:14:46,568] ERROR {org.apache.solr.core.SolrCore} -
> > REFCOUNT ERROR: unreferenced org.apache.solr.core.solrc...@58f24b6
> > (null) has a reference count of 1
> > [2010-11-23 14:14:46,568] ERROR {org.apache.solr.core.SolrCore} -
> > REFCOUNT ERROR: unreferenced org.apache.solr.core.solrc...@654dbbf6
> > (null) has a reference count of 1
> > [2010-11-23 14:14:46,568] ERROR {org.apache.solr.core.CoreContainer} -
> > CoreContainer was not shutdown prior to finalize(), indicates a bug --
> > POSSIBLE RESOURCE LEAK!!!
> > [2010-11-23 14:14:46,568] ERROR {org.apache.solr.core.CoreContainer} -
> > CoreContainer was not shutdown prior to finalize(), indicates a bug --
> > POSSIBLE RESOURCE LEAK!!!
> >
> > --
> > Regards,
> >
> > Tharindu
> >
> >
> >
> > --
> > Regards,
> >
> > Tharindu
> >
>
>
>
> --
> Regards,
>
> Tharindu
>

Reply via email to