java - jcifs.smb.NtStatus - NT_STATUS_INVALID_HANDLE -


i have question following error / error code means:

nt_status_invalid_handle in class jcifs.smb.ntstatus.

this "the java cifs client library"

i trying figure out when error occurs. happen when file not found in shared path? or occur when shared folder connection gets lost?

if aware of this, help!

i went through source code available here

regards, girish

when fid not exists

  • smb error code -> errbadfid(0x0006)
  • nt status code -> status_invalid_handle(0xc0000008)
  • posix equivalent -> enoent
  • description -> fid supplied invalid.

fid: 16-bit value server message block (smb) server uses represent opened file, named pipe, printer, or device. fid returned smb server in response client request open or create file, named pipe, printer, or device. smb server guarantees fid value returned unique given smb connection until smb connection closed, @ time fid value may reused. fid used smbclient in subsequent smb commands identify opened file, named pipe, printer, or device.

or when tid (tree identifier, unique id resource in use client) no longer valid

  • smb error code -> errinvtid(0x0005)
  • nt status code -> status_invalid_handle(0xc0000008)status_smb_bad_tid(0x00050002)
  • posix equivalent ->
  • description -> tid no longer valid.

or uid (user identifier) not valid

  • smb error code -> errbaduid(0x005b)
  • nt status code -> status_invalid_handle(0xc0000008)status_smb_bad_uid(0x005b0002)
  • posix equivalent ->
  • description -> uid supplied not known session.

in smb header fields during session/transaction.

the 2 last errors raised when trying open new session client while other session still active, causes old session reset server.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -