OK, thanks. I'm using Virtuoso Opensource 6.1.2 and the corresponding
Jena Provider.
If I remove "count(?o)" from the SELECT it works fine. Moreover, once
and exception is thrown, something seems to get corrupted till I
restart the webapp that is executing this code. By corrupted I mean
that each time I try to send a SPARQL, even those that worked
previously, I get a different exceptions like:
com.hp.hpl.jena.shared.JenaException: Can not create
ResultSet.:virtuoso.jdbc3.VirtuosoException: Tag 62 not defined.
at virtuoso.jena.driver.VirtuosoQueryExecution.execSelect(Unknown
Source)
...
com.hp.hpl.jena.shared.JenaException: Can not create
ResultSet.:virtuoso.jdbc3.VirtuosoException: Tag 43 not defined.
at virtuoso.jena.driver.VirtuosoQueryExecution.execSelect(Unknown
Source)
...
java.lang.Error: java.lang.ClassCastException:java.lang.Short cannot
be cast to openlink.util.Vector
at virtuoso.jdbc3.VirtuosoConnection.read_request(Unknown Source)
at virtuoso.jdbc3.VirtuosoFuture.nextResult(Unknown Source)
at virtuoso.jdbc3.VirtuosoStatement.close(Unknown Source)
at virtuoso.jena.driver.VirtuosoQueryExecution.close(Unknown Source)
...
Roberto García