commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (VFS-76) Timing Issues With Multiple Open Files and WebDav
Date Tue, 03 Oct 2006 19:50:23 GMT
     [ http://issues.apache.org/jira/browse/VFS-76?page=all ]

Mario Ivankovits resolved VFS-76.
---------------------------------

    Resolution: Fixed

Should be fixed.

httpclient knows a "restart operation" mode which I enabled yet, though, due to the limitation
of the used webdavlib only a handful of operations are restartable yet.

Your testcase works now.
Please give it a try.

> 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message