at java.net.SocketInputStream.read(SocketInputStream.java:179)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
at org.apache.http.impl.io.SocketInputBuffer.isDataAvailable(SocketInputBuffer.java:101)
at org.apache.http.impl.AbstractHttpClientConnection.isResponseAvailable(AbstractHttpClientConnection.java:246)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.isResponseAvailable(ManagedClientConnectionImpl.java:180)
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:716)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:521)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1138)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1076)
at com.github.sardine.impl.SardineImpl.execute(SardineImpl.java:807)
at com.github.sardine.impl.SardineImpl.put(SardineImpl.java:738)
at com.github.sardine.impl.SardineImpl.put(SardineImpl.java:714)
at com.github.sardine.impl.SardineImpl.put(SardineImpl.java:684)
at com.github.sardine.impl.SardineImpl.put(SardineImpl.java:676)
at com.github.sardine.impl.SardineImpl.put(SardineImpl.java:670)
at WebDavWrapper.putFile(WebDavWrapper.java:36)
FileInputStream putStream = new FileInputStream(new File(localFilePath));
sardine.put(destinationWebDavUrl, putStream);
Also... I've noticed that the connection reset appears to occur at the end of the put(). When I upload a small file it resets immediately, if I put up a very large file it will throw the exception after a delay.byte[] data = FileUtils.readFileToByteArray(new File(localFilePath));
sardine.put(destinationWebDavUrl, data);
--
You received this message because you are subscribed to the Google Groups "sardine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sardine-dav...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "sardine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sardine-dav/LxJtnwIDiV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sardine-dav...@googlegroups.com.
Did you get this resolved? I am having a different problem with the Put (it works okay as long as I do a List first). I am using a Stream and need to use a Stream because of the File sizes we have.
--
You received this message because you are subscribed to a topic in the Google Groups "sardine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sardine-dav/LxJtnwIDiV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sardine-dav...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "sardine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sardine-dav/LxJtnwIDiV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sardine-dav...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.