Hi,

I have new results. Your comment about permissions got me thinking. I was
running the build in a VirtualBox machine, and the build was located in a
shared directory (which is essentially a directory on the host, that gets
mounted inside the virtual machine). Maybe this caused the access to the
files
beeing different than beeing expected on a local filesystem.

I checked out the repo in another directory (which is not a shared
directory,
but a normal one on the root filesystem). And rebuild.  The error about
jenatdb went away! So thanks for your help!

However a new one arises:


    Failed tests:
testSparqlConfig(org.apache.stanbol.enhancer.it.EnhancerConfigurationTest):
GET request to
http://localhost:8765/enhancer/sparql?query=PREFIX+enhancer%3A+%3Chttp%3A%2F%2Fstanbol.apache.org%2Fontology%2Fenhancer%2Fenhancer%23%3EPREFIX+rdfs%3A+++++%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3ESELECT+distinct+%3Fname+%3Fchain+WHERE+%7B%3Fchain+a+enhancer%3AEnhancementChain+.%3Fchain+rdfs%3Alabel+%3Fname+.%7DORDER+BY+ASC%28%3Fname%29:
expecting status 200 (content: <html>(..)

testEngineConfig(org.apache.stanbol.enhancer.it.EnhancerConfigurationTest):
GET request to http://localhost:8765/enhancer/engine: no match for regexp
'<j.0:hasEngine
rdf:resource="http://localhost:.*/enhancer/engine/dbpediaLinking"/>',
content=(..)

    Tests run: 180, Failures: 2, Errors: 0, Skipped: 0

    [INFO]
------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Apache Stanbol Releasing Source Assembly Descriptor  SUCCESS
[3.342s]

    ... output shortened ...

    [INFO] Apache Stanbol Enhancer Engine Archetype .......... SUCCESS
[0.378s]
    [INFO] Apache Stanbol Integration Tests .................. FAILURE
[8:23.365s]
    [INFO] Apache Stanbol Reactor NG ......................... SKIPPED
    [INFO]
------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO]
------------------------------------------------------------------------
    [INFO] Total time: 33:25.063s
    [INFO] Finished at: Thu Nov 14 13:22:55 UTC 2013
    [INFO] Final Memory: 594M/1306M
    [INFO]
------------------------------------------------------------------------
    [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on
project org.apache.stanbol.integration-tests: There are test failures.
    [ERROR]
    [ERROR] Please refer to
/home/vagrant/stanbol/integration-tests/target/surefire-reports for the
individual test results.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions,
please read the following articles:
    [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with
the command
    [ERROR]   mvn <goals> -rf :org.apache.stanbol.integration-tests


And here is the traceback:


    vagrant@precise64:~/stanbol/integration-tests/target/surefire-reports$
cat
/home/vagrant/stanbol/integration-tests/target/surefire-reports/org.apache.stanbol.enhancer.it.EnhancerConfigurationTest.txt


-------------------------------------------------------------------------------
    Test set: org.apache.stanbol.enhancer.it.EnhancerConfigurationTest

-------------------------------------------------------------------------------
    Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.664
sec <<< FAILURE!

testSparqlConfig(org.apache.stanbol.enhancer.it.EnhancerConfigurationTest)
Time elapsed: 0.577 sec  <<< FAILURE!
    java.lang.AssertionError: GET request to
http://localhost:8765/enhancer/sparql?query=PREFIX+enhancer%3A+%3Chttp%3A%2F%2Fstanbol.apache.org%2Fontology%2Fenhancer%2Fenhancer%23%3EPREFIX+rdfs%3A+++++%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3ESELECT+distinct+%3Fname+%3Fchain+WHERE+%7B%3Fchain+a+enhancer%3AEnhancementChain+.%3Fchain+rdfs%3Alabel+%3Fname+.%7DORDER+BY+ASC%28%3Fname%29:
expecting status 200 (content: <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
    <title>Error 500 Server Error</title>
    </head>
    <body>
    <h2>HTTP ERROR: 500</h2>
    <p>Problem accessing /enhancer/sparql. Reason:
    <pre>    Server Error</pre></p>
    <hr /><i><small>Powered by Jetty://</small></i>
    </body>
    </html>
    ) expected:<200> but was:<500>
            at org.junit.Assert.fail(Assert.java:88)
            at org.junit.Assert.failNotEquals(Assert.java:743)
            at org.junit.Assert.assertEquals(Assert.java:118)
            at org.junit.Assert.assertEquals(Assert.java:555)
            at
org.apache.stanbol.commons.testing.http.RequestExecutor.assertStatus(RequestExecutor.java:175)
            at
org.apache.stanbol.enhancer.it.EnhancerConfigurationTest.testSparqlConfig(EnhancerConfigurationTest.java:119)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            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.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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            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:57)
            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            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)

testEngineConfig(org.apache.stanbol.enhancer.it.EnhancerConfigurationTest)
Time elapsed: 0.376 sec  <<< FAILURE!
    java.lang.AssertionError: GET request to
http://localhost:8765/enhancer/engine: no match for regexp '<j.0:hasEngine
rdf:resource="http://localhost:.*/enhancer/engine/dbpediaLinking"/>',
content=
    <rdf:RDF
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
        xmlns:j.0="http://stanbol.apache.org/ontology/enhancer/enhancer#"; >
      <rdf:Description rdf:about="http://localhost:8765/enhancer";>
        <rdf:type rdf:resource="
http://stanbol.apache.org/ontology/enhancer/enhancer#Enhancer"/>
      </rdf:Description>
    </rdf:RDF>

            at org.junit.Assert.fail(Assert.java:88)
            at
org.apache.stanbol.commons.testing.http.RequestExecutor.assertContentRegexp(RequestExecutor.java:266)
            at
org.apache.stanbol.commons.testing.http.RequestExecutor.assertContentRegexp(RequestExecutor.java:240)
            at
org.apache.stanbol.enhancer.it.EnhancerConfigurationTest.testEngineConfig(EnhancerConfigurationTest.java:92)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            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.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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            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:57)
            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            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)


I have also tried again after half an hour waiting, based on the information
in this mail [1] - since it suggests that the integration tests might fail
from
time to time. But it still fails with the same error.

Thanks again! At least we found the reason for the jenatdb issue!

Gregor

[1] http://mail-archives.apache.org/mod_mbox/stanbol-dev/201211.mbox/
<CAA7LAO1Tu1-4CSJU_hc2=2o=D9xYQWnhz_LsjQRku9pV=tn...@mail.gmail.com>



2013/11/14 Rupert Westenthaler <rupert.westentha...@gmail.com>

> Hi Gregor,
>
> The test encounters an IOException when allocating a segment in a
> memory mapped file (see  [1] line 221) used by Jena TDB. Based on the
> stack trace this happen already during the initialization of the Jena
> TDB store. So I my guess would be that either one of the memory mapped
> file used by Jena is corrupted or missing read/write permission on the
> file.
>
> The first can only be the case if there would still be data from a
> previous run of the test. Actually this test does has a known issue
> that it does not delete files from previous runs. Including the
> "clean" prevents this as this ensures that the /target folder is
> deleted before running the tests.
>
> To check permissions: the Jena TDB store created by the tests are located
> under
>
>
> {module-home}/target/test-files/testConfigs/{test-config-name}/indexing/resources/tdb
>
> e.g.
>
>
> /vagrant/stanbol/entityhub/indexing/source/jenatdb/target/test-files/testConfigs/iterable/indexing/resources/tdb
>
> for the failed testEntityDataIterable test.
>
> If both does not solve the issue I would suggest to provide the Jena
> TDB store (all files in the tdb folder) to make some further tests.
>
> best
> Rupert
>
>
>
> [1]
> http://grepcode.com/file/repo1.maven.org/maven2/org.apache.jena/jena-tdb/0.10.0/com/hp/hpl/jena/tdb/base/file/BlockAccessMapped.java
>

Reply via email to