Re: SPARQL update on TDB API frozen at transaction begin

2014-05-03 Thread Andy Seaborne
On 05/02/14 21:19, Jean-Marc Vanel wrote: In fact, isInTransaction() returns false ( because ThreadLocal returns setInitialValue() ) , so there must be something broken in the TDB dataset . isInTransaction returning true means that the current thread is in a transaction, not that there is

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-03 Thread Andy Seaborne
This might help: // Setup: Dataset dataset = DatasetGraphTransaction dsgt = (DatasetGraphTransaction) (dataset.asDatasetGraph()) ; Location loc = dsgt.getLocation() ; StoreConnection sConn = StoreConnection.make(loc) ; // then anywhere:

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-03 Thread Andy Seaborne
On 05/03/14 17:31, Jean-Marc Vanel wrote: Thanks for the advice ; currently I suspect that *several* threads start a transaction, via a same Dataset object ; which tdb_transactions.html explicitely discourages. Where? That's normal practice. It does talk about sharing one transaction bewteen

SPARQL update on TDB API frozen at transaction begin

2014-05-02 Thread Jean-Marc Vanel
Hi I'm trying to delete a whole named graph. The code: try { Dataset dataset = TDBFactory.createDataset(directory.getAbsolutePath()); UpdateProcessor qexec = UpdateExecutionFactory.create(request, GraphStoreFactory.create( dataset ) ); dataset.begin( ReadWrite.WRITE ); // frozen here !!

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-02 Thread Andy Seaborne
Hi, Do you have a complete, minimal example? I built a test from the details below and it works so maybe it something related but not shown here. The other thing to consider is whether any other thread is accessing the dataset. Andy On 02/05/14 14:15, Jean-Marc Vanel wrote: Hi

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-02 Thread Andy Seaborne
On 02/05/14 18:48, Jean-Marc Vanel wrote: Yes , it can be the case that another thread is accessing the dataset. From what you write, and the doc.: https://jena.apache.org/documentation/tdb/tdb_transactions.html I understand that the kind of access that can be the cause of this transaction not

Re: SPARQL update on TDB API frozen at transaction begin

2014-05-02 Thread Jean-Marc Vanel
In fact, isInTransaction() returns false ( because ThreadLocal returns setInitialValue() ) , so there must be something broken in the TDB dataset . 2014-05-02 21:26 GMT+02:00 Andy Seaborne a...@apache.org: On 02/05/14 18:48, Jean-Marc Vanel wrote: Yes , it can be the case that another