Hello!
I’m trying to upload a file using CLI:
stardog doc put test file.pdf
but it responds with “No value present” message.
With verbose mode on (-v), the following backtrace is output:
No value present
The detailed stack trace for the error is:
com.complexible.stardog.cli.CliException: No value present
at com.complexible.stardog.cli.impl.ConnectionCommand.call(ConnectionCommand.java:73)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:55)
at com.complexible.stardog.cli.CLI.main(CLI.java:105)
Caused by: com.complexible.stardog.StardogException: No value present
at com.complexible.stardog.protocols.http.client.BaseHttpClient.checkResponseCode(BaseHttpClient.java:433)
at com.complexible.stardog.protocols.http.client.BaseHttpClient.execute(BaseHttpClient.java:304)
at com.complexible.stardog.protocols.http.client.HttpClientImpl.execute(HttpClientImpl.java:197)
at com.complexible.stardog.protocols.http.docs.client.HttpStardocsConnection.putDocument(HttpStardocsConnection.java:78)
at com.complexible.stardog.docs.cli.DocPut.lambda$execute$1(DocPut.java:96)
at com.complexible.stardog.docs.cli.DocPut$$Lambda$17/675833472.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.complexible.stardog.docs.cli.DocPut.execute(DocPut.java:98)
at com.complexible.stardog.cli.impl.ConnectionCommand.call(ConnectionCommand.java:61)
When I try and use the web UI (“Document Store” tab > “Upload file”), I’m getting HTTP 405 error (as reported in the tooltip for the non-uploaded file icon). I tried different files, in different formats (jpg, pdf, txt, etc.), but nothing works.
Am I missing something?
P.S.: I use stardog-4.2.3 on MacOSX 10.12.3, starting the server with “stardog-admin” command, nothing fancy there.