Hi Andy, I will forward the exact query when I'm back to my desk but we did
discover that the offending part was a subquery ( a SELECT WHERE { } inside
of a WHERE clause. It validates as SPARQL and used to work. When we rewrote
it to exclude this subquery all was good again. Details shortly.Thanks, Vanessa On Wednesday, September 18, 2013, Andy Seaborne wrote: > Hi Vanessa, > > What is the query that cause this exception? > > (I will wildly guess it involves a LET) > > Andy > > On 17/09/13 20:42, Vanessa Williams wrote: > >> Hello, we recently upgraded TDB from 0.9.4 to 0.10.1 because we needed a >> nice fix in the latter. However now we are seeing errors such as these. >> >> ERROR 2013-09-17 19:21:05.026 - >> com.hp.hpl.jena.sparql.engine.**iterator.**QueryIteratorCloseable - >> QueryFatalException >> com.hp.hpl.jena.sparql.**ARQInternalErrorException: Attempt to reassign >> '?observation' from '< >> http://thoughtwire.ca/**ontology/2012/08/rvhs/**shiftObservation_22<http://thoughtwire.ca/ontology/2012/08/rvhs/shiftObservation_22>>' >> to '< >> http://thoughtwire.ca/**ontology/2012/08/rvhs/**shiftObservation_22<http://thoughtwire.ca/ontology/2012/08/rvhs/shiftObservation_22> >> >' >> at >> com.hp.hpl.jena.sparql.engine.**binding.BindingHashMap.** >> checkAdd(BindingHashMap.java:**111) >> at >> com.hp.hpl.jena.sparql.engine.**binding.BindingHashMap.add(** >> BindingHashMap.java:92) >> at >> com.hp.hpl.jena.sparql.engine.**binding.BindingFactory.** >> materialize(BindingFactory.**java:60) >> at >> com.hp.hpl.jena.tdb.solver.**QueryEngineTDB$** >> QueryIteratorMaterializeBindin**g.moveToNextBinding(** >> QueryEngineTDB.java:136) >> at >> com.hp.hpl.jena.sparql.engine.**iterator.QueryIteratorBase.** >> nextBinding(QueryIteratorBase.**java:154) >> at >> com.hp.hpl.jena.sparql.engine.**iterator.QueryIteratorWrapper.** >> moveToNextBinding(**QueryIteratorWrapper.java:43) >> at >> com.hp.hpl.jena.sparql.engine.**iterator.QueryIteratorBase.** >> nextBinding(QueryIteratorBase.**java:154) >> at >> com.hp.hpl.jena.sparql.engine.**iterator.QueryIteratorBase.** >> next(QueryIteratorBase.java:**129) >> at >> com.hp.hpl.jena.sparql.engine.**iterator.QueryIteratorBase.** >> next(QueryIteratorBase.java:**41) >> at org.apache.jena.atlas.**iterator.Iter$5.hasNext(Iter.**java:335) >> at >> com.hp.hpl.jena.sparql.engine.**QueryExecutionBase.**execConstruct(** >> QueryExecutionBase.java:228) >> at >> com.hp.hpl.jena.sparql.engine.**QueryExecutionBase.**execConstruct(** >> QueryExecutionBase.java:204) >> <...snip> >> >> Can anyone shed any light on a possible cause? The error message is not >> very informative. Note that the queries we're using haven't changed, and >> neither has our code usage, only the TDB version has been altered. >> >> Thanks in advance for any advice, >> >> Vanessa >> >> >
