mrwulf / cumulusrdf

Automatically exported from code.google.com/p/cumulusrdf
0 stars 0 forks source link

SPARQL endpoint throws exception when requesting JSON content #85

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Execute a SPARQL SELECT against the SPARQL endpoint with an Accept header 
specifying "application/json" or "application/sparql-results+json".

What is the expected output? What do you see instead?

A valid SPARQL result set serialized to JSON. An exception as follows:

The server encountered an internal error that prevented it from fulfilling this 
request.</u></p><p><b>exception</b> <pre>java.lang.IllegalStateException: 
getOutputStream() has already been called for this response
        org.apache.catalina.connector.Response.getWriter(Response.java:678)
        org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:213)
        edu.kit.aifb.cumulus.webapp.ErrorServlet.service(ErrorServlet.java:58)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        edu.kit.aifb.cumulus.webapp.AbstractHttpServlet.forwardTo(AbstractHttpServlet.java:204)
        edu.kit.aifb.cumulus.webapp.AbstractHttpServlet.sendError(AbstractHttpServlet.java:164)
        edu.kit.aifb.cumulus.webapp.SPARQLServlet.service(SPARQLServlet.java:235)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

What version of the product are you using? On what operating system?

Cumulus 1.0.1 on Centos release 6.5 (Final)

Please provide any additional information below.

Example using curl:

curl http://cumulusrdf/sparql --data "query=SELECT..." -H "Accept 
application/json"

Original issue reported on code.google.com by abar...@i3.com on 4 Nov 2014 at 8:46