Hi guys,

I just updated everything in my SVN projects and started to maven build 
everything in my sequence (TopJena,IRI,Jena2,ARQ,TxTDB), using the maven 
command-line (i.e. outside eclipse)

This went fine up until the TxTDB which repeated fails with test errors. 
Moreover, repeated attempts (I run 'mvn install') also produce different 
test errors. I am running this on a Windows 7/64 bit machine

anyone seen this?

Simon

Attempt 1
-------------
D:\jfsDev\TxTDB>mvn install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for
org.apache.jena:jena-tdb:jar:0.9.0-incubating-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ 
org.apach
e.jena:jena-tdb:${ver.tdb}, D:\jfsDev\TxTDB\pom.xml, line 11, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building TDB 0.9.0-incubating-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ 
jena-tdb ---
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (ant-timestamp) @ jena-tdb ---
[INFO] Executing tasks

main:
     [echo] version=0.9.0-incubating-SNAPSHOT
     [echo] build.time=2011-11-14 15:49 EST
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
jena-tdb -
--
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to com/hp/hpl/jena/tdb/
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
jena-tdb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources 
(default-testResources) @ je
na-tdb ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\jfsDev\TxTDB\src\test\resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
jena-
tdb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.9:test (default-test) @ jena-tdb ---
[INFO] Surefire report directory: D:\jfsDev\TxTDB\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.hp.hpl.jena.tdb.assembler.TS_TDBAssembler
com.hp.hpl.jena.tdb.TDBException: Root blocks must be at position zero
        at 
com.hp.hpl.jena.tdb.index.bplustree.BPTreeNodeMgr.createEmptyBPT(BPTr
eeNodeMgr.java:55)
        at 
com.hp.hpl.jena.tdb.index.bplustree.BPlusTree.createIfAbsent(BPlusTre
e.java:215)
        at 
com.hp.hpl.jena.tdb.index.bplustree.BPlusTree.create(BPlusTree.java:1
41)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.createBPTree(SetupTDB.java:773)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.makeBPlusTree(SetupTDB.java:495)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.makeRangeIndex(SetupTDB.java:463)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.makeTupleIndex(SetupTDB.java:429)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.makeTupleIndexes(SetupTDB.java:403)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.makeQuadTable(SetupTDB.java:333)
        at 
com.hp.hpl.jena.tdb.sys.SetupTDB.buildDataset(SetupTDB.java:266)
        at 
com.hp.hpl.jena.tdb.sys.DatasetGraphSetup.createDatasetGraph(DatasetG
raphSetup.java:35)
        at 
com.hp.hpl.jena.tdb.sys.CachingTDBMaker.createDatasetGraph(CachingTDB
Maker.java:58)
        at 
com.hp.hpl.jena.tdb.sys.TDBMaker._createDatasetGraph(TDBMaker.java:94
)
        at 
com.hp.hpl.jena.tdb.TDBFactory.createDatasetGraph(TDBFactory.java:139
)
        at 
com.hp.hpl.jena.tdb.TDBFactory.createDataset(TDBFactory.java:97)
        at 
com.hp.hpl.jena.tdb.assembler.TDBGraphAssembler.open(TDBGraphAssemble
r.java:86)
        at 
com.hp.hpl.jena.tdb.assembler.TDBGraphAssembler.open(TDBGraphAssemble
r.java:41)
        at 
com.hp.hpl.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGro
up.openBySpecificType(AssemblerGroup.java:130)
        at 
com.hp.hpl.jena.assembler.assemblers.AssemblerGroup$PlainAssemblerGro
up.open(AssemblerGroup.java:117)
        at 
com.hp.hpl.jena.assembler.assemblers.AssemblerGroup$ExpandingAssemble
rGroup.open(AssemblerGroup.java:81)
        at 
com.hp.hpl.jena.assembler.assemblers.AssemblerBase.open(AssemblerBase
.java:52)
        at 
com.hp.hpl.jena.assembler.assemblers.AssemblerBase.open(AssemblerBase
.java:48)
        at 
com.hp.hpl.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerU
tils.java:105)
        at 
com.hp.hpl.jena.tdb.assembler.TestTDBAssembler.testGraph(TestTDBAssem
bler.java:130)
        at 
com.hp.hpl.jena.tdb.assembler.TestTDBAssembler.createGraphDirect(Test
TDBAssembler.java:86)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:88)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:613)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
Method.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
lable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
thod.java:41)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet
hod.java:20)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:69)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:48)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.ja
va:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
java:53)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
Provider.java:123)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:88)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:613)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(
ReflectionUtils.java:164)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke
(ProviderFactory.java:110)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(Suref
ireStarter.java:172)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWh
enForked(SurefireStarter.java:104)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
70)
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.972 sec 
<<< FA
ILURE!
Running com.hp.hpl.jena.tdb.base.block.TS_Block
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.551 sec
Running com.hp.hpl.jena.tdb.base.file.TS_File
Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.hp.hpl.jena.tdb.base.objectfile.TS_ObjectFile
Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec
Running com.hp.hpl.jena.tdb.base.record.TS_Record
Tests run: 54, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.054 sec
Running com.hp.hpl.jena.tdb.base.recordfile.TS_RecordFile
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.hp.hpl.jena.tdb.graph.TS_Graph
Tests run: 40, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.597 sec 
<<< F
AILURE!
Running com.hp.hpl.jena.tdb.index.TS_Index
Tests run: 97, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.137 sec
Running com.hp.hpl.jena.tdb.lib.TS_LibTDB
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running com.hp.hpl.jena.tdb.migrate.TS_Migrate
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.hp.hpl.jena.tdb.nodetable.TS_NodeTable
Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.hp.hpl.jena.tdb.solver.TS_SolverTDB
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running com.hp.hpl.jena.tdb.store.TS_Store
15:49:37 WARN  QueryIteratorCheck        :: Open iterator: 
QueryIterSingleton/18
1
Tests run: 166, Failures: 5, Errors: 1, Skipped: 0, Time elapsed: 3.477 
sec <<<
FAILURE!
Running com.hp.hpl.jena.tdb.sys.TS_Sys
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.hp.hpl.jena.tdb.transaction.TS_Transaction
Tests run: 79, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.073 
sec
Running com.hp.hpl.jena.tdb.TS_Factory
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082 sec
Running com.hp.hpl.jena.tdb.TS_Jena
Tests run: 73, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec

Results :

Failed tests:   special4(com.hp.hpl.jena.tdb.store.TestDatasetTDB): 
expected:<0>
 but was:<2>
  dynamicAndUnion5(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<1> b
ut was:<0>
  dynamicAndUnion6(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<1> b
ut was:<0>
  dynamicAndUnion7(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<2> b
ut was:<0>
  dynamicAndUnion8(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<2> b
ut was:<0>

Tests in error:
  createGraphDirect(com.hp.hpl.jena.tdb.assembler.TestTDBAssembler): 
caught: Roo
t blocks must be at position zero
  persistent3(com.hp.hpl.jena.tdb.graph.TestPrefixMappingTDB): Root blocks 
must
be at position zero
  com.hp.hpl.jena.tdb.store.TestGraphTDB: Root blocks must be at position 
zero

Tests run: 676, Failures: 5, Errors: 3, Skipped: 0

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1:08.037s
[INFO] Finished at: Mon Nov 14 15:50:30 EST 2011
[INFO] Final Memory: 17M/34M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.
9:test (default-test) on project jena-tdb: There are test failures.
[ERROR]
[ERROR] Please refer to D:\jfsDev\TxTDB\target\surefire-reports for the 
individu
al test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
D:\jfsDev\TxTDB>

Attempt 2
--------------


D:\jfsDev\TxTDB>mvn install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for
org.apache.jena:jena-tdb:jar:0.9.0-incubating-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ 
org.apach
e.jena:jena-tdb:${ver.tdb}, D:\jfsDev\TxTDB\pom.xml, line 11, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building TDB 0.9.0-incubating-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ 
jena-tdb ---
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (ant-timestamp) @ jena-tdb ---
[INFO] Executing tasks

main:
     [echo] version=0.9.0-incubating-SNAPSHOT
     [echo] build.time=2011-11-14 16:14 EST
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
jena-tdb -
--
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to com/hp/hpl/jena/tdb/
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
jena-tdb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources 
(default-testResources) @ je
na-tdb ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
D:\jfsDev\TxTDB\src\test\resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
jena-
tdb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.9:test (default-test) @ jena-tdb ---
[INFO] Surefire report directory: D:\jfsDev\TxTDB\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.hp.hpl.jena.tdb.assembler.TS_TDBAssembler
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.107 sec
Running com.hp.hpl.jena.tdb.base.block.TS_Block
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.486 sec
Running com.hp.hpl.jena.tdb.base.file.TS_File
Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.175 sec
Running com.hp.hpl.jena.tdb.base.objectfile.TS_ObjectFile
Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.276 sec
Running com.hp.hpl.jena.tdb.base.record.TS_Record
Tests run: 54, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.111 sec
Running com.hp.hpl.jena.tdb.base.recordfile.TS_RecordFile
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running com.hp.hpl.jena.tdb.graph.TS_Graph
Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.944 sec
Running com.hp.hpl.jena.tdb.index.TS_Index
Tests run: 97, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.882 sec
Running com.hp.hpl.jena.tdb.lib.TS_LibTDB
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.hp.hpl.jena.tdb.migrate.TS_Migrate
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.hp.hpl.jena.tdb.nodetable.TS_NodeTable
Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082 sec
Running com.hp.hpl.jena.tdb.solver.TS_SolverTDB
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318 sec
Running com.hp.hpl.jena.tdb.store.TS_Store
16:14:44 WARN  QueryIteratorCheck        :: Open iterator: 
QueryIterSingleton/18
1
Tests run: 181, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 14.848 
sec <<<
 FAILURE!
Running com.hp.hpl.jena.tdb.sys.TS_Sys
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running com.hp.hpl.jena.tdb.transaction.TS_Transaction
Tests run: 79, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.807 
sec
Running com.hp.hpl.jena.tdb.TS_Factory
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
Running com.hp.hpl.jena.tdb.TS_Jena
Tests run: 73, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.817 sec

Results :

Failed tests:   special4(com.hp.hpl.jena.tdb.store.TestDatasetTDB): 
expected:<0>
 but was:<2>
  dynamicAndUnion5(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<1> b
ut was:<0>
  dynamicAndUnion6(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<1> b
ut was:<0>
  dynamicAndUnion7(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<2> b
ut was:<0>
  dynamicAndUnion8(com.hp.hpl.jena.tdb.store.TestDynamicDataset): 
expected:<2> b
ut was:<0>

Tests run: 691, Failures: 5, Errors: 0, Skipped: 0

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 2:08.071s
[INFO] Finished at: Mon Nov 14 16:16:03 EST 2011
[INFO] Final Memory: 19M/48M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.
9:test (default-test) on project jena-tdb: There are test failures.
[ERROR]
[ERROR] Please refer to D:\jfsDev\TxTDB\target\surefire-reports for the 
individu
al test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
D:\jfsDev\TxTDB>

Reply via email to