> -----Original Message-----
> From: Raj Kumar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 3:54 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with lock
> 
> 
> hi,
>   I am getting the following error while running the command 
> line example
> Slide.java
> 
> [LOCALHOST] /slide/ $ ls
> files                     actions                   users
> [LOCALHOST] /slide/ $ cd files
> [LOCALHOST] /slide/files/ $ search
> Performing a search on the server side
> Inside the generate method of the Search Method
> [LOCALHOST] /slide/files/ $ lock test
> Locking '/slide/files/test': Fatal Error:
> org.apache.commons.httpclient.State
> Command input: lock test
> java.lang.ClassCastException: org.apache.commons.httpclient.State
>         at
> org.apache.webdav.lib.WebdavResource.generateIfHeader(WebdavRe
> source.java:60
> 6)
>         at
> org.apache.webdav.lib.WebdavResource.lockMethod(WebdavResource
> .java:3236)
>         at
> org.apache.webdav.lib.WebdavResource.lockMethod(WebdavResource
> .java:3214)
>         at 
> org.apache.webdav.cmd.Slide.processCommands(Slide.java:1343)
>         at org.apache.webdav.cmd.Slide$1.run(Slide.java:218)
>         at java.lang.Thread.run(Unknown Source)
> Please, email to [EMAIL PROTECTED]
> 
> 
> It looks like the problem is that HttpClient.getState() 
> return an object of
> the class State but it is being cast to
> WebdavState in the WebdavResource class. Does any body have a 
> fix for this.
>     thanks.
>     rajkumar
> 

What version are you using?
If you are using a (patched) cvs version make sure you only use the
httpclient from the slide cvs.

Send a complete log starting from the moment you start the client (one
without executing your search method).


Dirk

Reply via email to