Stardog 5 beta - Wildcard construct causing error


Finding lots of things today. Dunno if this is a known issue.

 ?a ?b ?c.
} where {                                                                                          
 ?a ?b ?c.

That query is causing an error in stardog when run from the frontend with reasoning disabled. From the logs:

ERROR 2017-05-19 13:27:26,172 [XNIO-1 task-13] com.stardog.http.server.undertow.ErrorHandling:writeError(179): Unexpected error on the server
java.lang.NullPointerException: null
        at com.complexible.stardog.protocols.http.server.ProtocolUtils.executeReadQuery( ~[stardog-protocols-http-server-5.0-beta.jar:?]
        at com.complexible.stardog.protocols.http.annex.QueryPanelService.executeQuery( ~[stardog-webconsole-annex-5.0-beta.jar:?]
        at ~[stardog-webconsole-annex-5.0-beta.jar:?]
        at com.stardog.http.server.undertow.jaxrs.ExtractRoutes.lambda$handleIt$81( ~[stardog-protocols-http-server-5.0-beta.jar:?]
        at ~[shiro-core-1.2.3.jar:1.2.3]
        at ~[shiro-core-1.2.3.jar:1.2.3]
        at com.stardog.http.server.undertow.ErrorHandling.lambda$safeDispatch$43( ~[stardog-protocols-http-server-5.0-beta.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_111-internal]
        at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_111-internal]
        at [?:1.8.0_111-internal]


Hi Håvard,

This is a bug that has been reported on here a couple of times actually, and it’s already been fixed! It will be included in the next 5.0 release.

It’s essentially that the webconsole no longer executes CONSTRUCT queries, because a loophole in our web server that was allowing it to send the wrong Accept header was closed up with 5.0. Running them through the CLI should give you no problems though.