So... a Jena bug then? Do you have an idea if there is something I can
configure in the HttpClient as a workaround?


On 31.10.19 15:18, Andy Seaborne wrote:
> I can make it happen sporadically using Fuseki main (so no shiro, not a
> webapp environment).  It happens maybe one in four test runs.
> 
> It looks like a client-side problem - it creates the HTTP connection
> each time and maybe something is cached in HttpClient.  A hash-map-ism
> would explain the "sporadically".  If so, the # triples effect maybe
> causing the timing to get changed a little.
> 
>     Andy
> 
> On 31/10/2019 13:27, Sebastian Trueg wrote:
>> Interestingly it does not. Only going down to a really small number of
>> triples does work.
>>
>> And to make sure I did implement manual HTTP DELETE+PUT via OkHttp which
>> works without problems on the same Fuseki instance.
>>
>> Regards,
>> Sebastian
>>
>> On 31.10.19 14:14, Andy Seaborne wrote:
>>> Thanks.
>>>
>>> Presumably it works if you create the RDFConnection once and reuse the
>>> java object?
>>>
>>>      Andy
>>>
>>> On 31/10/2019 12:10, Sebastian Trueg wrote:
>>>> Hi Andy,
>>>>
>>>> - Fuseki started via "fuseki-server".
>>>> - shiro config attached
>>>> - "pdm-data-model" dataset created via attached config
>>>> - Simple test app attached which takes the fuseki dataset url as
>>>>     parameter.
>>>>
>>>> Hope this helps.
>>>>
>>>> Regards,
>>>> Sebastian
>>>>
>>>> On 31.10.19 11:55, Andy Seaborne wrote:
>>>>> 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
>>>>>>
>>>>
>>

-- 
Sebastian Trueg
Managing Director
TrueGeeX UG (haftungsbeschränkt)
[email protected]
http://www.linkedin.com/in/trueg
Mobile: 0049 1762 3244 664

Reply via email to