Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Windows XP, JDK 1.5.x
Description
If I open two files on a WebDav resource, there is an HTTPClient error if there is only a very short pause between
opening them. If there is no pause inbetween, it works.
If you turn debugging of HTTPclient on, it seems like the connection is closed while commons or VFS tries to read from the HTTP connection (I'm not using any threads!)
Sample, code is attached, the exception is:
org.apache.commons.vfs.FileSystemException: Could not determine the type of file "webdav://crtdhks1d0179/carladata/bla1.txt".
at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1281)
at org.apache.commons.vfs.provider.AbstractFileObject.getContent(AbstractFileObject.java:1017)
at VFSBugTest.main(VFSBugTest.java:41)
Caused by: org.apache.commons.httpclient.HttpRecoverableException: org.apache.commons.httpclient.HttpRecoverableException: Error in parsing the status line from the response: unable to find line starting with "HTTP"
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1933)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2627)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1061)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
at org.apache.commons.vfs.provider.webdav.WebdavFileObject.setDavResource(WebdavFileObject.java:139)
at org.apache.commons.vfs.provider.webdav.WebdavFileObject.doAttach(WebdavFileObject.java:88)
at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1267)
... 2 more