While I was trying to use maven from outside eclipse, I ran into the 
following after executing mvn package from within TxTDB

-------------------------------------------------------
 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: 2.493 sec
Running com.hp.hpl.jena.tdb.base.block.TS_Block
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.42 sec
Running com.hp.hpl.jena.tdb.base.file.TS_File
Tests run: 39, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.12 sec 
<<< FA
ILURE!
Running com.hp.hpl.jena.tdb.base.objectfile.TS_ObjectFile
Tests run: 48, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec
Running com.hp.hpl.jena.tdb.base.record.TS_Record
Tests run: 54, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running com.hp.hpl.jena.tdb.base.recordfile.TS_RecordFile
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.hp.hpl.jena.tdb.graph.TS_Graph
Tests run: 40, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.505 sec
Running com.hp.hpl.jena.tdb.index.TS_Index
Tests run: 97, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.312 sec
Running com.hp.hpl.jena.tdb.lib.TS_LibTDB
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 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.02 sec
Running com.hp.hpl.jena.tdb.solver.TS_SolverTDB
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.097 sec
Running com.hp.hpl.jena.tdb.store.TS_Store
Tests run: 181, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.067 
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: 77, Failures: 13, Errors: 0, Skipped: 0, Time elapsed: 4.015 
sec <<<
FAILURE!
Running com.hp.hpl.jena.tdb.TS_Factory
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.hp.hpl.jena.tdb.TS_Jena
Tests run: 73, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.118 sec

Results :

Failed tests: 
fileaccess_03(com.hp.hpl.jena.tdb.base.file.TestBlockAccessMappe
d)
  fileaccess_04(com.hp.hpl.jena.tdb.base.file.TestBlockAccessMapped)
  nodetrans_03(com.hp.hpl.jena.tdb.transaction.TestNodeTableTransDisk): 
expected
:<[DoesNotExist]> but was:<[0000000000000000]>
  trans_04(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
  trans_06(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_01(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_02(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_03(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_04(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_05(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_06(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_07(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_08(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_09(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)
 
trans_readBlock_11(com.hp.hpl.jena.tdb.transaction.TestTransSequentialDisk)

Tests in error:
  dataset2(com.hp.hpl.jena.tdb.store.TestDatasetTDBPersist)
  dataset3(com.hp.hpl.jena.tdb.store.TestDatasetTDBPersist)

Tests run: 697, Failures: 15, Errors: 2, Skipped: 0

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 50.486s
[INFO] Finished at: Wed Sep 14 12:47:19 EDT 2011
[INFO] Final Memory: 30M/87M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.
9:test (default-test) on project tx-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

would this be another manifestation of a problem which is possibly windows 
specific?

Simon





From:
Paolo Castagna <[email protected]>
To:
[email protected]
Date:
09/14/2011 01:45 PM
Subject:
Re: [jira] [Commented] (JENA-91) extremely large buffer is being created 
in ObjectFileStorage



Hi Dave,
thanks (it helps).

If there are tests failing on Windows 7, it's bad (and good at
the same time that the test suite is signaling the problem).

Just to double check there are no changes in TxTDB trunk that
I do not have on my local copy, I've just did:

cd /tmp/txtdb/
svn up
At revision 1170728.

mvn clean test

[INFO] Scanning for projects...
[INFO] 
------------------------------------------------------------------------
[INFO] Building TxTDB
[INFO]    task-segment: [clean, test]
[INFO] 
------------------------------------------------------------------------
[...]

Tests run: 697, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 minute 13 seconds
[INFO] Finished at: Wed Sep 14 18:36:44 BST 2011
[INFO] Final Memory: 42M/296M
[INFO] 
------------------------------------------------------------------------

There is obviously something bad going when we run TxTDB on
Windows 7. I am afraid I cannot be more helpful on this. :-(

@Andy, do you have a Windows 7 machine to investigate the
problem that Simon and Dave are experiencing?

Paolo

Dave Reynolds wrote:
> On Wed, 2011-09-14 at 16:38 +0100, Paolo Castagna wrote: 
>> Hi Simon,
>> indeed, very strange.
>>
>> I do not have a Windows 7 machine to try, but if you have a Linux 
machine
>> you could try there, it would be really interesting to know the result.
>>
>> Could it be something related to your Maven cache and somehow you still 
have
>> an old ARQ SNAPSHOT? You could try to manually delete the ARQ artifacts 
from
>> your Maven cache (usually in ~/.m2/repository/com/hp/hpl/jena/arq)
>>
>> This is how you or others could run the test on different environments:
>>
>> cd /tmp/
>> svn co 
http://svn.apache.org/repos/asf/incubator/jena/Experimental/TxTDB/trunk/ 
>> txtdb
>> cd /tmp/txtdb/
>> wget 
>> 
https://issues.apache.org/jira/secure/attachment/12494332/TestTransSystem4.patch

>> patch -p0 < TestTransSystem4.patch
>> mvn package
>> mvn exec:java -Dexec.classpathScope="test" 
>> -Dexec.mainClass="com.hp.hpl.jena.tdb.transaction.TestTransSystem"
>>
>> (you need to adapt things to Windows)
> 
> FWIW I get errors trying that sequence on Windows.
> 
> Environment:
>    Windows 7 64 bit
>    Java 1.6.0_26-b03
> 
> START (disk, 100 iterations)
> 000: ..java.lang.UnsupportedOperationException: Quad: predicate cannot
> be null
>         at com.hp.hpl.jena.sparql.core.Quad.<init>(Quad.java:49)
>         at com.hp.hpl.jena.tdb.lib.TupleLib.quad(TupleLib.java:127)
>         at com.hp.hpl.jena.tdb.lib.TupleLib.quad(TupleLib.java:118)
>         at com.hp.hpl.jena.tdb.lib.TupleLib.access$100(TupleLib.java:32)
>         at com.hp.hpl.jena.tdb.lib.TupleLib$4.convert(TupleLib.java:76)
>         at com.hp.hpl.jena.tdb.lib.TupleLib$4.convert(TupleLib.java:72)
>         at org.openjena.atlas.iterator.Iter$4.next(Iter.java:268)
>         at com.hp.hpl.jena.tdb.store.GraphTDBBase
> $ProjectQuadsToTriples.next(GraphTDBBase.java:183)
>         at com.hp.hpl.jena.tdb.store.GraphTDBBase
> $ProjectQuadsToTriples.next(GraphTDBBase.java:171)
>         at
> 
com.hp.hpl.jena.util.iterator.WrappedIterator.next(WrappedIterator.java:68)
>         at
> com.hp.hpl.jena.util.iterator.Map1Iterator.next(Map1Iterator.java:35)
>         at
> 
com.hp.hpl.jena.util.iterator.WrappedIterator.next(WrappedIterator.java:68)
>         at
> 
com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl.next(StmtIteratorImpl.java:33)
>         at
> 
com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl.next(StmtIteratorImpl.java:21)
>         at
> 
com.hp.hpl.jena.tdb.transaction.TestTransSystem.readModel(TestTransSystem.java:446)
>         at com.hp.hpl.jena.tdb.transaction.TestTransSystem.access
> $100(TestTransSystem.java:59)
>         at com.hp.hpl.jena.tdb.transaction.TestTransSystem
> $Reader.call(TestTransSystem.java:163)
>         at java.util.concurrent.FutureTask
> $Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> 
> 
> However, I get some test errors during the build and had to force Maven
> to ignore those in order to get a build, so this is not a clean run.
> 
> Surefire logs for the test-during-build errors are attached.
> 
> This is not my normal dev environment so there is little chance of stale
> maven cache.
> 
> Dave
> 
> 
> 



Reply via email to