tristan/jsonld-java — Issue #7: Unusable current snapshot
Author: wikier
Created: 2012-02-27 10:39:42+00:00
State: open

I've using your Java implementation for Java for a couple of months, but updating to the snapshot version you're publishing via your maven repo I can't get it work again. After change some code to adapt it to the new API, I'm getting the following error:

java.lang.NullPointerException
at de.dfki.km.json.jsonld.JSONLDUtils.compactIRI(JSONLDUtils.java:143)
at de.dfki.km.json.jsonld.impl.JSONLDProcessorImpl.compact(JSONLDProcessorImpl.java:389)
at de.dfki.km.json.jsonld.impl.JSONLDProcessorImpl.compact(JSONLDProcessorImpl.java:265)
at de.dfki.km.json.jsonld.impl.JSONLDProcessorImpl.compact(JSONLDProcessorImpl.java:282)
at de.dfki.km.json.jsonld.impl.JSONLDProcessorImpl.compact(JSONLDProcessorImpl.java:206)
at de.dfki.km.json.jsonld.JSONLDSerializer.asObject(JSONLDSerializer.java:158)
at org.fundacionctic.su4j.endpoint.formatter.JSONLDFormatter.serialize(JSONLDFormatter.java:34)
at org.fundacionctic.su4j.endpoint.formatter.SparqlHttpResultFormatter.format(SparqlHttpResultFormatter.java:69)
at org.fundacionctic.su4j.endpoint.DefaultSparqlEndpoint.query(DefaultSparqlEndpoint.java:249)
at org.fundacionctic.su4j.endpoint.demo.SparqlServlet.doGet(SparqlServlet.java:31)

You can see the code throwing such error at https://bitbucket.org/fundacionctic/su4j/src/aab9b89543db/libs/su4j-endpoint/src/main/java/org/fundacionctic/su4j/endpoint/formatter/JSONLDFormatter.java#cl-34

Any idea what going wrong?