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

On Wed, Nov 13, 2013 at 10:37 PM, Gregor Müllegger <gre...@muellegger.de> wrote:
> Hi,
>
> I just want to get started with Apache Stanbol but experience issues during
> my
> build. I get the following output:
>
>
>     [INFO]
> ------------------------------------------------------------------------
>     [INFO] BUILD FAILURE
>     [INFO]
> ------------------------------------------------------------------------
>     [INFO] Total time: 26:30.064s
>     [INFO] Finished at: Wed Nov 13 21:11:28 UTC 2013
>     [INFO] Final Memory: 118M/390M
>     [INFO]
> ------------------------------------------------------------------------
>     [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on
> project org.apache.stanbol.entityhub.indexing.source.jenatdb: There are
> test failures.
>     [ERROR]
>     [ERROR] Please refer to
> /vagrant/stanbol/entityhub/indexing/source/jenatdb/target/surefire-reports
> for the individual test results.
>     [ERROR] -> [Help 1]
>     org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test
> (default-test) on project
> org.apache.stanbol.entityhub.indexing.source.jenatdb: There are test
> failures.
>
>     Please refer to
> /vagrant/stanbol/entityhub/indexing/source/jenatdb/target/surefire-reports
> for the individual test results.
>             at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>             at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>             at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>             at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>             at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>             at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>             at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>             at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>             at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>             at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>             at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>             at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>             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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>             at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>             at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>             at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>     Caused by: org.apache.maven.plugin.MojoFailureException: There are test
> failures.
>
>     Please refer to
> /vagrant/stanbol/entityhub/indexing/source/jenatdb/target/surefire-reports
> for the individual test results.
>             at
> org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:87)
>             at
> org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:651)
>             at
> org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:625)
>             at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:136)
>             at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97)
>             at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>             at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>             ... 19 more
>     [ERROR]
>     [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.entityhub.indexing.source.jenatdb
>
>
> This seems interesting as well in the output, a bit above:
>
>
>     Tests in error:
>
> testEntityDataIterable(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest):
> BlockMgrMapped.segmentAllocate: Segment = 0
>
> testEntityDataProvider(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest):
> BlockMgrMapped.segmentAllocate: Segment = 0
>
> testQuadsImport(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest):
> BlockMgrMapped.segmentAllocate: Segment = 0
>
> testBNodeSupport(org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest):
> BlockMgrMapped.segmentAllocate: Segment = 0
>
>     Tests run: 10, Failures: 0, Errors: 4, Skipped: 0
>
>
> And here ist the content of the
> /vagrant/stanbol/entityhub/indexing/source/jenatdb/target/surefire-reports/org.apache.stanbol.entityhub.indexing.source.jenatdb.RdfIndexingSourceTest.txt
> file:
>
>     http://pastebin.com/Zv4gU7Gi
>
> Unfortunatelly I don't have any idea why this might be failing :-/
>
>
> I'm using r1541504, Maven 3.0.4, Ubuntu 12.04 64bit,
> "openjdk-7-jdk" 7u25-2.3.10-1ubuntu0.12.04.2 from ubuntu repositories.
>
> I also used the `export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=256M"` as
> explained in the docs before trying to build with `mvn install`
>
>
> Does anyone of you might know more about this?
> I'm ofcourse happy to provide more information if necessary.
>
> Thanks already in advance,
> Gregor



-- 
| Rupert Westenthaler             rupert.westentha...@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to