Re: Exceptions in Embedded Solr
I also got the same exception, anyone know how to solve this? -- View this message in context: http://lucene.472066.n3.nabble.com/Exceptions-in-Embedded-Solr-tp2007304p3057746.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Exceptions in Embedded Solr
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 wrote: > Any help on this? > > On Thu, Dec 2, 2010 at 7:51 PM, Tharindu Mathew > 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.(SolrCore.java:579) > > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) > > at > org.wso2.carbon.registry.indexing.solr.SolrClient.(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.(RandomAccessFile.java:212) > > at > org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.(SimpleFSDirectory.java:78) > > at > org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.(SimpleFSDirectory.java:108) > > at > org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.(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 >
Re: Exceptions in Embedded Solr
Any help on this? On Thu, Dec 2, 2010 at 7:51 PM, Tharindu Mathew 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.(SolrCore.java:579) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) > at > org.wso2.carbon.registry.indexing.solr.SolrClient.(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.(RandomAccessFile.java:212) > at > org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.(SimpleFSDirectory.java:78) > at > org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.(SimpleFSDirectory.java:108) > at > org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.(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
Exceptions in Embedded Solr
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.(SolrCore.java:579) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) at org.wso2.carbon.registry.indexing.solr.SolrClient.(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.(RandomAccessFile.java:212) at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.(SimpleFSDirectory.java:78) at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.(SimpleFSDirectory.java:108) at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.(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