Sebastian,

Do you have a complete, minimal example, including the Fuseki setup for the user/password. Which Fuseki variant? war? full-jar? main?

    Andy

PS Don't forget teh javadoc on connectPW : it's "basic auth"

On 31/10/2019 10:30, Sebastian Trueg wrote:
Hi everyone,

trying to use RDFConnection with Jena 3.13.1 to put a Model into a
remote Fuseki instance I encountered very strange behavior. First off,
let me show my very simple code:

try(RDFConnection conn
    = RDFConnectionFactory.connectPW(datasetUrl, "admin", "admin")) {
    conn.put(graphUri, model);
}

This works fine on its own and for very small models in general. But as
soon as I repeat the exact same snippet of code, ie. run the same try
block twice I get a SocketException (Broken pipe) on the first call to
RDFConnection::put.

So, to sum up:
- Single put works fine.
- A subsequent call to put will result in the first one already throwing
   an exception!
- Using a model with less than 100 triples results in both put
   operations to succeed.
- In all this the Fuseki instance keeps on working.

Any ideas?

Regards,
Sebastian

Reply via email to