Hi Paolo,
On 3/12/2012 12:27 AM, Paolo Castagna wrote:
Zhe Wu wrote:
I will go with Fuseki in the long run. For now, I am going to stick with
Joseki 3.4.4
Ack.
Anyway, I figured out where the problem is and fixed it.
What was the problem? (Others might benefit from your experience and solution).
Paolo
In SPARQLUpdate.java, the exception handling of failed updates only covers
uProc.execute(). If I move the update request parsing inside the same
try-catch block, then the problem goes away.
It appears that sendException method will be called in the ExecutionException
handling in Dispatcher class. And that sendException will invoke doCallbacks
which will eventually call datasetDesc.returnDataset(dataset) to free things up.
If the update request parsing code is outside that try-catch block, then a
QueryParseException,
instead of a ExecutionException, will be thrown out when there is a syntax
error.
A QueryParseException, unfortunately, does not trigger a call to returnDataset.
Thanks,
Zhe