w3c / ldp-testsuite

(UNMAINTAINED) Tests for Linked Data Platform (LDP)
Other
22 stars 29 forks source link

Error - NoWriterForLangException: JSON-LD #161

Closed spadgett closed 10 years ago

spadgett commented 10 years ago

I see this error POSTing JSON-LD content when running on the command line. (I don't see the error using the Eclipse TestNG plugin.)

[FAILURE] BasicContainerTest.testPostJsonLd

LDP servers SHOULD accept a request entity body with a request header of
Content-Type with value of application/ld+json [JSON-LD].

com.hp.hpl.jena.shared.NoWriterForLangException: JSON-LD
    at com.hp.hpl.jena.rdf.model.impl.RDFWriterFImpl.getWriter(RDFWriterFImpl.java:109)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.getWriter(ModelCom.java:293)
    at org.w3.ldp.testsuite.mapper.RdfObjectMapper.serialize(RdfObjectMapper.java:54)
    at com.jayway.restassured.mapper.ObjectMapper$serialize.call(Unknown Source)
    at com.jayway.restassured.internal.RequestSpecificationImpl.body(RequestSpecificationImpl.groovy:593)
    at org.w3.ldp.testsuite.test.CommonContainerTest.testPostJsonLd(CommonContainerTest.java:814)
    at org.w3.ldp.testsuite.LdpTestSuite.run(LdpTestSuite.java:308)
    at org.w3.ldp.testsuite.LdpTestSuite.executeTestSuite(LdpTestSuite.java:337)
    at org.w3.ldp.testsuite.RunLdpTestSuite.main(RunLdpTestSuite.java:53)
... Removed 21 stack frames