You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Simon Helsen (JIRA)" <ji...@apache.org> on 2012/08/31 23:46:08 UTC

[jira] [Commented] (JENA-311) Quad: object cannot be null

    [ https://issues.apache.org/jira/browse/JENA-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446410#comment-13446410 ] 

Simon Helsen commented on JENA-311:
-----------------------------------

The first run shows the following output:

17:45:07,758 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: begin$
17:45:07,790 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: begin
17:45:07,927 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: commit
17:45:07,927 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: Add to pending queue
17:45:07,927 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: begin$
17:45:07,929 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: begin
17:45:07,933 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: commit
17:45:07,933 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: Add to pending queue
17:45:07,934 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: begin$
17:45:07,935 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: begin
17:45:07,939 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: commit
17:45:07,939 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: Add to pending queue
17:45:07,940 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[4]/W: begin$
17:45:07,941 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[4]/W: begin
<https://localhost:9443/test> <http://somePredicate/p> "foo1" <https://localhost:9443/resource1> .
<https://localhost:9443/test> <http://somePredicate/p> "foo1" <https://localhost:9443/resource2> .
<https://localhost:9443/test> <http://somePredicate/p> "foo3" <https://localhost:9443/resource3> .
17:45:07,951 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[4]/W: commit
17:45:07,951 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[4]/W: Add to pending queue

The second run then shows the following:

17:45:29,534 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: begin$
17:45:29,562 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: begin
17:45:29,697 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: commit
17:45:29,697 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[1]/W: Add to pending queue
17:45:29,698 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: begin$
17:45:29,699 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: begin
17:45:29,702 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: commit
17:45:29,702 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[2]/W: Add to pending queue
17:45:29,702 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: begin$
17:45:29,704 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: begin
17:45:29,706 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: commit
17:45:29,706 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[3]/W: Add to pending queue
17:45:29,706 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[4]/W: begin$
17:45:29,708 [main] DEBUG com.hp.hpl.jena.tdb.transaction.TransactionManager  - Txn[4]/W: begin
Exception in thread "main" java.lang.UnsupportedOperationException: Quad: object cannot be null
	at com.hp.hpl.jena.sparql.core.Quad.<init>(Quad.java:62)
	at com.hp.hpl.jena.tdb.lib.TupleLib.quad(TupleLib.java:162)
	at com.hp.hpl.jena.tdb.lib.TupleLib.quad(TupleLib.java:153)
	at com.hp.hpl.jena.tdb.lib.TupleLib.access$1(TupleLib.java:149)
	at com.hp.hpl.jena.tdb.lib.TupleLib$4.convert(TupleLib.java:87)
	at com.hp.hpl.jena.tdb.lib.TupleLib$4.convert(TupleLib.java:1)
	at org.openjena.atlas.iterator.Iter$4.next(Iter.java:301)
	at org.openjena.atlas.iterator.IteratorCons.next(IteratorCons.java:97)
	at org.openjena.atlas.iterator.Iter.sendToSink(Iter.java:572)
	at org.openjena.riot.out.NQuadsWriter.write(NQuadsWriter.java:51)
	at org.openjena.riot.out.NQuadsWriter.write(NQuadsWriter.java:38)
	at org.openjena.riot.RiotWriter.writeNQuads(RiotWriter.java:41)
	at com.ibm.jena.test.QuadsObjectIsNullTest.main(QuadsObjectIsNullTest.java:147)

                
> Quad: object cannot be null
> ---------------------------
>
>                 Key: JENA-311
>                 URL: https://issues.apache.org/jira/browse/JENA-311
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: TDB
>    Affects Versions: TDB 0.9.4
>         Environment: windows 7/Oracle 6 JVM
>            Reporter: Simon Helsen
>
> I have attached a test case. If you first execute it and then execute it again you will hit
> Exception in thread "main" java.lang.UnsupportedOperationException: Quad: object cannot be null
> 	at com.hp.hpl.jena.sparql.core.Quad.<init>(Quad.java:62)
> 	at com.hp.hpl.jena.tdb.lib.TupleLib.quad(TupleLib.java:162)
> 	at com.hp.hpl.jena.tdb.lib.TupleLib.quad(TupleLib.java:153)
> 	at com.hp.hpl.jena.tdb.lib.TupleLib.access$1(TupleLib.java:149)
> 	at com.hp.hpl.jena.tdb.lib.TupleLib$4.convert(TupleLib.java:87)
> 	at com.hp.hpl.jena.tdb.lib.TupleLib$4.convert(TupleLib.java:1)
> 	at org.openjena.atlas.iterator.Iter$4.next(Iter.java:301)
> 	at org.openjena.atlas.iterator.IteratorCons.next(IteratorCons.java:97)
> 	at org.openjena.atlas.iterator.Iter.sendToSink(Iter.java:572)
> 	at org.openjena.riot.out.NQuadsWriter.write(NQuadsWriter.java:51)
> 	at org.openjena.riot.out.NQuadsWriter.write(NQuadsWriter.java:38)
> 	at org.openjena.riot.RiotWriter.writeNQuads(RiotWriter.java:41)
> 	at com.ibm.jena.test.QuadsObjectIsNullTest.main(QuadsObjectIsNullTest.java:147)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira