[jcifs] newbie problems

Mark Shifman mark.shifman at yale.edu
Wed Jul 13 16:41:35 GMT 2005


Hi:
I have been trying to connect to a share and I get this error:

Exception in thread "main" jcifs.smb.SmbException:
jcifs.util.transport.TransportException
java.net.SocketException: Invalid argument or cannot assign requested 
address
... complete stack trace below.
my code is:
SmbFile file = new SmbFile( 
"smb://user:password@aserver.yale.edu/ashare/" );
String [] thelist = file.list();

Things die on file.list() or file.listFiles(), or even file.exists();

I can do a smbmount to the share  using my  linux box without any 
problems so I assume my username,
password, host etc are correct.

My password does contain a forward slash ie. / or %2f  however the new 
SmbFile seems to be fine.

Any help would be appreciated.
mas


-- 
 Mark Shifman MD. Ph.D.
 Yale Center for Medical Informatics
 Phone (203)737-5219
 mark.shifman at yale.edu



More information about the jcifs mailing list