Looks like the same issue I had with some Solr files not being created in the Windows temp dir.

IIRC you ran this on 64-bit Windows 7, my system was a 32-bit Windows 7

I'm wondering if creating those files in a different place that the system temp dir could help, but I haven't investigate if this can be configured from within the topic engine tests.

Best,
Alessandro


On 08/01/2013 09:38, Rupert Westenthaler wrote:
On Mon, Jan 7, 2013 at 6:54 PM, <[email protected]> wrote:
Caused by: org.apache.lucene.index.IndexNotFoundException: no segments*
file found in
org.apache.lucene.store.SimpleFSDirectory@C:\Users\aa8752\AppData\Local\Temp\stanbol-evaluation-folder-4253495313362640435.tmp\evaluationclassifierserver\default-topic-model\data\index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@fe0ce1: files:
[_b.fdt, _b.fdx, _b.frq, _b.prx, _b.tis, _b.tvd, _b.tvf, _b.tvx]
         at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:667) at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:72) at org.apache.lucene.index.IndexReader.open(IndexReader.java:375)
Can you check that the referenced folder does exist at all? It is much
more likely that something in the initialization of the tests is
broken as Solr having a problem under Windows.

I was able to check this yesterday. Indeed, on Windows only the _b.* files are present. When I re-ran tests under Linux again, two segments* files (segments.gen and segments_d) were also there.


On 15/02/2013 13:42, enridaga wrote:
Hi,
the testCrossValidation test failed. Here is the stack trace:


-------------------------------------------------------------------------------
Test set: org.apache.stanbol.enhancer.engine.topic.TopicEngineTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 57.457
sec <<< FAILURE!
testCrossValidation(org.apache.stanbol.enhancer.engine.topic.TopicEngineTest)
  Time elapsed: 41.616 sec  <<< ERROR!
org.apache.stanbol.enhancer.topic.ClassifierException:
org.apache.solr.common.SolrException
        at 
org.apache.stanbol.enhancer.engine.topic.TopicClassificationEngine.performCVFold(TopicClassificationEngine.java:1087)
        at 
org.apache.stanbol.enhancer.engine.topic.TopicClassificationEngine.updatePerformanceEstimates(TopicClassificationEngine.java:1043)
        at 
org.apache.stanbol.enhancer.engine.topic.TopicEngineTest.testCrossValidation(TopicEngineTest.java:446)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
        at 
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
        at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: org.apache.solr.common.SolrException
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:600)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:480)
        at 
org.apache.stanbol.enhancer.topic.EmbeddedSolrHelper.makeEmbeddedSolrServer(EmbeddedSolrHelper.java:84)
        at 
org.apache.stanbol.enhancer.engine.topic.TopicClassificationEngine.performCVFold(TopicClassificationEngine.java:1082)
        ... 33 more
Caused by: java.lang.RuntimeException:
org.apache.lucene.index.IndexNotFoundException: no segments* file
found in 
org.apache.lucene.store.SimpleFSDirectory@C:\Users\ed4565\AppData\Local\Temp\stanbol-evaluation-folder-4264044709405444691.tmp\evaluationclassifierserver\default-topic-model\data\index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@10a234: files:
[_b.fdt, _b.fdx, _b.frq, _b.prx, _b.tis, _b.tvd, _b.tvf, _b.tvx]
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1104)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:585)
        ... 36 more
Caused by: org.apache.lucene.index.IndexNotFoundException: no
segments* file found in
org.apache.lucene.store.SimpleFSDirectory@C:\Users\ed4565\AppData\Local\Temp\stanbol-evaluation-folder-4264044709405444691.tmp\evaluationclassifierserver\default-topic-model\data\index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@10a234: files:
[_b.fdt, _b.fdx, _b.frq, _b.prx, _b.tis, _b.tvd, _b.tvf, _b.tvx]
        at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:667)
        at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:72)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:375)
        at 
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1093)
        ... 37 more

I am building from scratch. Does anybody else got it?

Thank you for any hint

Enrico



--
M.Sc. Alessandro Adamou

Knowledge Media Institute
The Open University
Walton Hall, Milton Keynes MK7 6AA
United Kingdom

Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna
Italy


"I will give you everything, just don't demand anything."
(Ettore Petrolini, 1917)

Not sent from my iSnobTechDevice

Reply via email to