Re: ArrayIndexOutOfBounds exception on un-synchronized model modifications?

2017-04-14 Thread Andy Seaborne
Or transactions. DatasetFactory.createTxnMem() And "Txn" if you like the java8 Style. jena.apache.org/documentation/txn/ Andy On 14/04/17 12:11, Joshua TAYLOR wrote: Thanks, this is exactly what I needed. I've used it in the past, but have been "away" long enough that I'd forgotten

Re: ArrayIndexOutOfBounds exception on un-synchronized model modifications?

2017-04-14 Thread Joshua TAYLOR
Thanks, this is exactly what I needed. I've used it in the past, but have been "away" long enough that I'd forgotten about it. On Tue, Apr 11, 2017 at 4:23 PM, A. Soroka wrote: > Yes, you will want to exercise some control over concurrency here: > >

Re: ArrayIndexOutOfBounds exception on un-synchronized model modifications?

2017-04-11 Thread A. Soroka
Yes, you will want to exercise some control over concurrency here: https://jena.apache.org/documentation/notes/concurrency-howto.html --- A. Soroka The University of Virginia Library > On Apr 11, 2017, at 1:16 PM, Joshua TAYLOR wrote: > > I expect the answer to my

ArrayIndexOutOfBounds exception on un-synchronized model modifications?

2017-04-11 Thread Joshua TAYLOR
I expect the answer to my question is simply "make sure model access is synchronized", but just in case, I'm wondering whether this is expected behavior. Here's some code that modifies a model from a bunch of different threads. This doesn't cause an error every time, but occasionally throws, as