You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Andreas Probst <an...@gmx.net> on 2003/01/16 13:54:41 UTC
Bug with webdav delete
Hi Sliders,
deleting from the client side causes a Null-Pointer-Exception
(see below).
Uri: full extern URI of the resource which to delete
WebdavResource.setPath to the Uri
Call WebdavResource.deleteMethod(Uri).
The resource gets deleted, but an Exception is thrown. I tried
to look into the code of commons httpclient but didn't really
see the bug.
Andreas
java.lang.NullPointerException
at
org.apache.webdav.lib.methods.XMLResponseMethodBase.readResponseB
ody(XMLResponseMethodBase.java:212)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMet
hodBase.java:1610)
at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpM
ethodBase.java:2264)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBa
se.java:862)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient
.java:574)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient
.java:493)
at
org.apache.webdav.lib.WebdavResource.deleteMethod(WebdavResource.
java:3390)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Bug with webdav delete
Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
>Hi Andreas,
>
>your post is a good occasion to express my own frustration. I have
>noticed, that I can no longer do a PUT with the client library, and
>who knows which other operations will fail, too. These problems are
>obviously caused by the switch to the official http-commons package.
FYI,
I have just seen some posts on the commons-httpclient-dev list, that
there is indeed a bug in the PUT method.
>
>Another user already posted that WebDAV operations are now 10 to 30
>times slower than before.
>
>Well, I fear there remains a lot of work to be done, before the client
>library is usable again.
>
>Regards,
>Ingo
>
>> Hi Sliders,
>>
>> deleting from the client side causes a Null-Pointer-Exception
>> (see below).
>>
>> Uri: full extern URI of the resource which to delete
>> WebdavResource.setPath to the Uri
>> Call WebdavResource.deleteMethod(Uri).
>>
>> The resource gets deleted, but an Exception is thrown. I tried
>> to look into the code of commons httpclient but didn't really
>> see the bug.
>>
>> Andreas
>>
>>
>> java.lang.NullPointerException
>> at
>> org.apache.webdav.lib.methods.XMLResponseMethodBase.readResponseB
>> ody(XMLResponseMethodBase.java:212)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMet
>> hodBase.java:1610)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpM
>> ethodBase.java:2264)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBa
>> se.java:862)
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient
>> .java:574)
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient
>> .java:493)
>> at
>> org.apache.webdav.lib.WebdavResource.deleteMethod(WebdavResource.
>> java:3390)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Bug with webdav delete
Posted by Andreas Probst <an...@gmx.net>.
Hmm,
put works for me.
Set path in WebdavResource to the directory, put File or
InputStream, with the path consisting of directory and filename,
i.e. full extern URI of the file.
Regards.
Andreas
On 16 Jan 2003 at 14:21, Ingo Brunberg wrote:
> Hi Andreas,
>
> your post is a good occasion to express my own frustration. I
> have noticed, that I can no longer do a PUT with the client
> library, and who knows which other operations will fail, too.
> These problems are obviously caused by the switch to the official
> http-commons package.
>
> Another user already posted that WebDAV operations are now 10 to
> 30 times slower than before.
>
> Well, I fear there remains a lot of work to be done, before the
> client library is usable again.
>
> Regards,
> Ingo
>
> > Hi Sliders,
> >
> > deleting from the client side causes a Null-Pointer-Exception
> > (see below).
> >
> > Uri: full extern URI of the resource which to delete
> > WebdavResource.setPath to the Uri
> > Call WebdavResource.deleteMethod(Uri).
> >
> > The resource gets deleted, but an Exception is thrown. I tried
> > to look into the code of commons httpclient but didn't really
> > see the bug.
> >
> > Andreas
> >
> >
> > java.lang.NullPointerException
> > at
> > org.apache.webdav.lib.methods.XMLResponseMethodBase.readRespons
> > eB ody(XMLResponseMethodBase.java:212) at
> > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpM
> > et hodBase.java:1610) at
> > org.apache.commons.httpclient.HttpMethodBase.processRequest(Htt
> > pM ethodBase.java:2264) at
> > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethod
> > Ba se.java:862) at
> > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
> > nt .java:574) at
> > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClie
> > nt .java:493) at
> > org.apache.webdav.lib.WebdavResource.deleteMethod(WebdavResourc
> > e. java:3390)
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Bug with webdav delete
Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
Hi Andreas,
your post is a good occasion to express my own frustration. I have
noticed, that I can no longer do a PUT with the client library, and
who knows which other operations will fail, too. These problems are
obviously caused by the switch to the official http-commons package.
Another user already posted that WebDAV operations are now 10 to 30
times slower than before.
Well, I fear there remains a lot of work to be done, before the client
library is usable again.
Regards,
Ingo
> Hi Sliders,
>
> deleting from the client side causes a Null-Pointer-Exception
> (see below).
>
> Uri: full extern URI of the resource which to delete
> WebdavResource.setPath to the Uri
> Call WebdavResource.deleteMethod(Uri).
>
> The resource gets deleted, but an Exception is thrown. I tried
> to look into the code of commons httpclient but didn't really
> see the bug.
>
> Andreas
>
>
> java.lang.NullPointerException
> at
> org.apache.webdav.lib.methods.XMLResponseMethodBase.readResponseB
> ody(XMLResponseMethodBase.java:212)
> at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMet
> hodBase.java:1610)
> at
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpM
> ethodBase.java:2264)
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBa
> se.java:862)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient
> .java:574)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient
> .java:493)
> at
> org.apache.webdav.lib.WebdavResource.deleteMethod(WebdavResource.
> java:3390)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>