Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-549

Subject variables in a text:query bound earlier in the query cause exception in TDB.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.11.0
    • Jena 2.11.1
    • Spatial, Text
    • None

    Description

      Example:

         ?s :p 123 .
         ?s text:query 'foo' 
      

      and text:query matches something, then an internal inconsistency is detected by TDB. This error happens more generally - TDB happens to have additional checking code and the order of creation of concrete terms is different for TDB vs in-memory execution.

      Exception in thread "main" com.hp.hpl.jena.sparql.ARQInternalErrorException: Attempt to reassign '?item' from '<http://www.riograndegames.com/games.html?id=181>' to '<http://www.riograndegames.com/games.html?id=181>'
      	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$QueryIteratorMaterializeBinding.moveToNextBinding(QueryEngineTDB.java:139)
      
      

      Attachments

        Activity

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: