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

ASF subversion and git services commented on JENA-1513:
-------------------------------------------------------

Commit be946b4254335da2cdbac2ef30c3f80daed08562 in jena's branch 
refs/heads/master from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=be946b4 ]

JENA-1513: Merge commit 'refs/pull/389/head' of https://github.com/apache/jena

This closes #389.


> ResultSetLang.init() not called when necessary
> ----------------------------------------------
>
>                 Key: JENA-1513
>                 URL: https://issues.apache.org/jira/browse/JENA-1513
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 3.6.0
>            Reporter: Elie Roux
>            Priority: Major
>
> This seems to be similar to 
> [1264|https://issues.apache.org/jira/browse/JENA-1264]:
> When I execute:
> {code:java}
>     public void testInit() {
>         String sparqljson = "{\n" + 
>                 "  \"head\" : {\n" + 
>                 "    \"vars\" : [ \"work\" ]\n" + 
>                 "  },\n" + 
>                 "  \"results\" : {\n" + 
>                 "    \"bindings\" : [ ]\n" + 
>                 "  }\n" + 
>                 "}";
>         InputStream stream = new 
> ByteArrayInputStream(sparqljson.getBytes(StandardCharsets.UTF_8));
>         //ResultSetLang.init();
>         ResultSet res = ResultSetMgr.read(stream, 
> ResultSetLang.SPARQLResultSetJSON);
>     }{code}
> I'm getting
> {code:java}
> org.apache.jena.riot.RiotException: No parser registered for content type: 
> application/sparql-results+json
>   at org.apache.jena.riot.ResultSetMgr.process(ResultSetMgr.java:89)
>   at org.apache.jena.riot.ResultSetMgr.read(ResultSetMgr.java:52){code}
> while when I uncomment
> {code:java}
> ResultSetLang.init();{code}
> the error disappears.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to