Hi,
I just tried to build Stanbol on a 32-bit Windows environment (first time
ever actually).
I've got one topic engine test failing on a SolrException (surefire report
posted at the bottom).
Looks like a file naming issue with a test file with the segments*
pattern, but I cannot be sure.
Also most reasoners.jena unit tests fail with exceptions of the form
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.stanbol.reasoners.jena.TestData
This could be due to one of those damn Windows backslash issues. The
TestData class has the following in its static block:
TestData.foaf.read(TestData.class.getResource(
System.getProperty("file.separator") + LOCAL_RESOURCE_FOAF)
.toString());
Replacing System.getProperty("file.separator") with "/" seems to fix those
tests.
FactStore integration tests are also failing, but it should be due to the
FactStore no longer being built (is it?)
I haven't filed an issue yet, in case there's some mistake on my part
(like setting directory permissions or so) and it works on your Windows
rigs.
Best,
Alessandro
-------------------------------------------------------------------------------
Test set: org.apache.stanbol.enhancer.engine.topic.TopicEngineTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 55.991 sec
<<< FAILURE!
testCrossValidation(org.apache.stanbol.enhancer.engine.topic.TopicEngineTest)
Time elapsed: 41.452 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\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.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\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)
at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1093)
... 37 more