[jcifs] Re: Getting SmbAuthException
Michael B Allen
mba2000 at ioplex.com
Thu Aug 18 17:25:16 GMT 2005
On Thu, 18 Aug 2005 09:27:17 +0000 (UTC)
Swati <swati_roighare at persistent.co.in> wrote:
> > > currently disabled.
> > You need to specify credentials. The default credentials are "GUEST"
> > with no password which on most machines is a disabled account.
> Thanks Mike.
> But still i am not able to run the List example.
> Now i am passing the credentials with the command, but i cant use the default
> since by default that account is disabled. Can you please tell me the way by
> which i can enable that account?
> Even I tried to pass the username and password of the machine which i am trying
> to access but then i am getting the NullPointer exception as follws:-
> Exception in thread "main" java.lang.NullPointerException
> at jcifs.smb.SmbFile.getType(SmbFile.java:1110)
> at jcifs.smb.SmbFile.doNetEnum(SmbFile.java:1589)
> at jcifs.smb.SmbFile.list(SmbFile.java:1542)
> at jcifs.smb.SmbFile.list(SmbFile.java:1436)
> at List.main(List.java:12)
This should not happen. What exact URL did you use to get this exception?
More information about the jcifs