> > You can use org.apache.tomcat.util.buf.Base64 inside tomcat-util.jar.
> I also found sun.misc.BASE64Decoder while googeling, which was, to my
> surprise, in my classpath.
> 
> But now I face a strange problem, that I don't know any answer to:
> After having constructed the HttpURL Object, I call it's setUser(String)
> method, which throws a NullPointerException also I pass quite not-null
> String.
> 
> Are the apache.commons so buggy, or what might be the problem?

Indeed there seems to be a problem with HttpURL. Looks like the
password you have not set before (which therefore is null) causes the
Exception. So simply call setUserinfo() instead of setUser().

Ingo

> 
> 
> Here you can see the important part of the stacktrace. Looks like some
> String is created passing a null byte[] or something:
> 
> java.lang.NullPointerException
>         at java.lang.String.<init>(String.java:165)
>         at org.apache.commons.httpclient.HttpURL.setRawUser(HttpURL.java:556)
>         at org.apache.commons.httpclient.HttpURL.setUser(HttpURL.java:588)
>         at
> de.tum.in.httpdav.HttpdavServlet.getAuthenticatedHttpURL(HttpdavServlet.java:127)
> 
> 
> Thanks for your kind help.
> Frank


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

Reply via email to