[jcifs] jcifs exception

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Thu Nov 15 10:50:08 EST 2001

> -----Original Message-----
> From:	Kurien Mathew [SMTP:kurien at envivio.com]
> Sent:	Wednesday, November 14, 2001 6:45 PM
> To:	jcifs at lists.samba.org
> Subject:	[jcifs] jcifs exception
> I get the following exception when jcifs attempts to list shares(Windows).
> This happens with shares requiring a password and to which no connection was
> made previously.
>      [java] jcifs.smb.SmbException: ERRDOS/ERRnoaccess: Access denied
>      [java]     at jcifs.smb.SmbTransport.send(SmbTransport.java:428)
>      [java]     at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:154)
>      [java]     at jcifs.smb.SmbSession.send(SmbSession.java:128)
>      [java]     at jcifs.smb.SmbTree.treeConnect(SmbTree.java:84)
>      [java]     at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:49)
>      [java]     at jcifs.smb.SmbTree.netShareEnum(SmbTree.java:289)
>      [java]     at jcifs.smb.SmbFile.list(SmbFile.java:710)
> Is there some way for the application to be notified of such
> exceptions/shares?
	Funny you should ask. I am currently testing/tweeking the 0.6 beta. It has the functionality you seek. Although of course it will be beta for a while :~( See this message for more discussion
of how it will work:



More information about the jcifs mailing list