You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2014/04/23 13:28:14 UTC

[jira] [Commented] (STANBOL-1328) Running SPARQL query fails / "request body has been consumed by the servlet or a servlet filter"

    [ https://issues.apache.org/jira/browse/STANBOL-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978082#comment-13978082 ] 

Rupert Westenthaler commented on STANBOL-1328:
----------------------------------------------

The WARNING is written by Jersey because the `org.apache.stanbol.commons.httpqueryheaders` (CORS support for Internet Explorer) consumes the original ServletRequests and warps it with it with an custom one.

I do not think this is releated to the "Invalid query." You should find the real problem in `./stanbol/log/error.log`.

> Running SPARQL query fails / "request body has been consumed by the servlet or a servlet filter"
> ------------------------------------------------------------------------------------------------
>
>                 Key: STANBOL-1328
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1328
>             Project: Stanbol
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: java version "1.7.0_55"
> OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1)
> OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
>            Reporter: Andreas Kuckartz
>
> I am running:
> ```
> java -Xmx1024M -XX:MaxPermSize=400M -Xss512k -jar org.apache.stanbol.launchers.full-1.0.0-SNAPSHOT.jar
> ```
> When I visit http://localhost:8080/sparql/ and click on the button "Run SPARQL query" I see the response "Invalid query."
> At the same time such a warning is logged:
> ```
> Apr 23, 2014 10:19:09 AM org.glassfish.jersey.servlet.WebComponent filterFormParameters
> Warnung: A servlet request to the URI http://localhost:8080/sparql contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
> ```



--
This message was sent by Atlassian JIRA
(v6.2#6252)