[jcifs] The handle is invalid error calling to getSecurity

Ori oorrii at gmail.com
Thu Dec 17 08:42:04 MST 2009


jcifs.smb.SmbException: The handle is invalid.
	at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:644)
	at jcifs.smb.SmbSession.send(SmbSession.java:224)
	at jcifs.smb.SmbTree.send(SmbTree.java:111)
	at jcifs.smb.SmbFile.send(SmbFile.java:770)
	at jcifs.smb.SmbFile.close(SmbFile.java:1009)
	at jcifs.smb.SmbFile.getSecurity(SmbFile.java:2886)


Michael B Allen wrote:
> 
> On Thu, Dec 17, 2009 at 4:15 AM, Ori <oorrii at gmail.com> wrote:
>>
>> Hi,
>>
>> I'm trying to get the acl from a file using jcifs. This is my code:
>>
>> NtlmPasswordAuthentication ntlmPasswordAuthentication = new
>> NtlmPasswordAuthentication("my domain", "user", "password");
>> SmbFile file = new SmbFile( "smb://myserver/myshare/myfile"
>> ,ntlmPasswordAuthentication)
>>
>> ACE[] acl = file.getSecurity(true); // throws "The handle is invalid."
>> SmbException
>>
>> can someone help?
> 
> Hi Ori,
> 
> That should work. What is the full stack trace? What is the server? Is
> it an old version of Samba maybe?
> 
> Mike
> 
> -- 
> Michael B Allen
> Java Active Directory Integration
> http://www.ioplex.com/
> 
> 

-- 
View this message in context: http://old.nabble.com/The-handle-is-invalid-error-calling-to-getSecurity-tp26824549p26829993.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.



More information about the jCIFS mailing list