Timing Issues With Multiple Open Files and WebDav -------------------------------------------------
Key: VFS-76 URL: http://issues.apache.org/jira/browse/VFS-76 Project: Commons VFS Issue Type: Bug Environment: Windows XP, JDK 1.5.x Reporter: Thomas Hoppe Attachments: VFSBugTest.java 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]