[jcifs] jcifs bug?

Michael B Allen mballen at erols.com
Sat Feb 23 12:26:58 EST 2002


On Fri, 22 Feb 2002 16:57:23 -0700
"Bernie Wieser" <bernie.wieser at calgary.qcdata.com> wrote:

> 
> Some user has a file called "seti at home.txt" -
> URL is smb://HI137/D$/Documents and Settings/ryar/seti at home.txt
> 
> jcifs blows a chunk

A NullPointerException would be "blows a chunk". UknownHostException is
a carefully crafted and deliberate exception :~)

See the new SMB URL example on the SmbFile page of the API
documentation. In short you have to URL encode that at sign:

smb://HI137/D$/Documents and Settings/ryar/seti%40home.txt

> 
> java.net.UnknownHostException: home.txt
>         at jcifs.UniAddress.getByName(UniAddress.java:249)
> 
> B.
> 


-- 
May The Source be with you.




More information about the jcifs mailing list