Hi,

When I create a new Webdavresource objection with a .NOACTION parameter value and try to call .putMethod(String s), I get:

java.net.SocketException: Socket output is shutdown
at java.net.Socket.getOutputStream(Socket.java:713)
at org.apache.commons.httpclient.HttpClient.openConnection(HttpClient.java: 846)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:4 24)
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java: 2560)
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java: 2529)
at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:68 2)
at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.j ava:669)
at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1 528)
at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1 551)
at org.apache.webdav.lib.WebdavResource.refresh(WebdavResource.java:1562)
at org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2217)


using:
tempfile= new WebdavResource(url, org.apache.webdav.lib.WebdavResource.NOACTION, 0);
tempfile.putMethod(string0);


I'm using 1.0.16.
When I try the same thing (.NOACTION) with .getMethodData, everything works fine.


Replacing .NOACTION with .NAME, fixes the problem, but I think results in more requests to the webserver (i.e. propfind) than I would like--I'm
dealing with a high latency WAN.


Is there any way around the "requirement" to specify an action when creating a new webdavresource for writing/put purposes?

Thanks for any suggestions.

AJB



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to