Hi Wong,

you should set username and password before calling the WebdavResource
constructor, because the constructors try to establish a connection
right away.

Regards,
Ingo

> Hi,
> 
>  I've traced Client.java and try to write a simple program to connect to
> my slide 'http://137.189.94.70:8080/slide'. The program has been attached.
> 
>  However, it fails to connect with the following WARNING and
> NullPointerException shown as follows:
> 
> uri is http://137.189.94.70:8080/slide
> Apr 1, 2003 12:23:17 PM org.apache.commons.httpclient.HttpMethodBase
> processAuthenticationResponse
> WARNING: No credentials available for the Basic authentication realm
> 'Slide DAV Server'
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.webdav.cmd.Spool$2.write(Spool.java:163)
>         at java.io.PrintStream.write(PrintStream.java:258)
>         at
> sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:334)
>         at
> sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:393)
>         at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:134)
>         at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191)
>         at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
>         at java.io.PrintStream.write(PrintStream.java:304)
>         at java.io.PrintStream.print(PrintStream.java:448)
>         at java.io.PrintStream.println(PrintStream.java:585)
>         at Testing.handleException(Testing.java:232)
>         at Testing.connect(Testing.java:105)
>         at Testing.main(Testing.java:242)
> 
> What's the problem?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to