I'm using Stardog Community Edition 2.1.2, Sesame 2.7.11 and ran into following problem:
If I try to add an owl file (in xml/rdf format) I get an HTTP status code 415 as answer, but if I upload the very same file via the WebGUI -> Data -> Add no error occurs.
I've used mitmproxy in reverse proxy mode to get the HTTP status code, but I assume using the proxy doesn't add additional problems, because the exception stays the same whether I use the proxy.
[main] WARN org.openrdf.http.client.HTTPClient:1011 - Server reports problem:
Exception in thread "main" org.openrdf.repository.RepositoryException: error executing transaction
at org.openrdf.repository.sparql.SPARQLConnection.commit(SPARQLConnection.java:300)
at at.ac.tuwien.otpb.AnotherTestMain.main(AnotherTestMain.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.openrdf.query.UpdateExecutionException:
at org.openrdf.repository.sparql.query.SPARQLUpdate.execute(SPARQLUpdate.java:78)
at org.openrdf.repository.sparql.SPARQLConnection.commit(SPARQLConnection.java:297)
... 6 more
Caused by: org.openrdf.repository.RepositoryException:
at org.openrdf.http.client.HTTPClient.handleHTTPError(HTTPClient.java:953)
at org.openrdf.http.client.HTTPClient.sendUpdate(HTTPClient.java:390)
at org.openrdf.repository.sparql.query.SPARQLUpdate.execute(SPARQLUpdate.java:61)
... 7 more