Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for getNtStatus (0.15 sec)

  1. src/main/java/jcifs/smb/SmbTreeConnection.java

                    // retrying make no sense, as it will never become available again.
                    if (params.contains(RequestParam.NO_RETRY)
                            || !(smbe.getCause() instanceof TransportException) && smbe.getNtStatus() != NtStatus.NT_STATUS_INVALID_PARAMETER) {
                        log.debug("Not retrying", smbe);
                        throw smbe;
                    }
                    log.debug("send", smbe);
                    last = smbe;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                if (r.getStatus() == NtStatus.NT_STATUS_NO_MORE_FILES) {
                    return false;
                }
                this.response = r;
            } catch (final SmbException e) {
                if (e.getNtStatus() == NtStatus.NT_STATUS_NO_MORE_FILES) {
                    log.debug("End of listing", e);
                    return false;
                }
                throw e;
            }
            return true;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

                                n = resp.getDataLength();
                            } catch (final SmbException e) {
                                if (e.getNtStatus() == 0xC0000011) { // NT_STATUS_END_OF_FILE
                                    log.debug("Reached end of file", e);
                                    n = -1;
                                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbTree.java

                }
                try {
                    session.send(request, response);
                } catch (final SmbException se) {
                    if (se.getNtStatus() == NtStatus.NT_STATUS_NETWORK_NAME_DELETED) {
                        /* Someone removed the share while we were
                         * connected. Bastards! Disconnect this tree
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NetworkExplorer.java

                } catch (final SmbAuthException sae) {
                    log.warn("Auth failed", sae);
                } catch (final SmbException se) {
                    log.warn("Connection failed", se);
                    if (se.getNtStatus() != NtStatus.NT_STATUS_UNSUCCESSFUL) {
                        throw se;
                    }
                }
                if (dirents[i].isDirectory()) {
                    dirCount++;
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbException.java

            this.status = winerr ? errcode : getStatusByCode(errcode);
        }
    
        /**
         * Get the NT STATUS code associated with this exception
         *
         * @return status code
         */
        public int getNtStatus() {
            return this.status;
        }
    
        /**
         * Get the root cause of this exception (deprecated - use getCause() instead)
         *
         * @return cause
         */
        @Deprecated
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SIDCacheImplTest.java

            }).when(handle).sendrecv(any());
    
            SmbException ex = assertThrows(SmbException.class, () -> cache.resolveSids(handle, policy, sids));
            assertEquals(NtStatus.NT_STATUS_ACCESS_DENIED, ex.getNtStatus());
        }
    
        @Test
        @DisplayName("resolveSids(CIFSContext,server,sids,offset,length) resolves missing, caches, and reuses cache")
        void resolveSids_withOffsetAndCache_behavesCorrectly() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

         */
        private boolean isRetryableException(CIFSException e) {
            if (e instanceof SmbException) {
                SmbException se = (SmbException) e;
                int status = se.getNtStatus();
                // Retry on network-related errors but not on authentication or access errors
                return status == NtStatus.NT_STATUS_CONNECTION_REFUSED || status == NtStatus.NT_STATUS_NETWORK_NAME_DELETED
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NetworkExplorer.java

                    }
                } catch (final SmbException se) {
                    if (LogStream.level > 2) {
                        se.printStackTrace(log);
                    }
                    if (se.getNtStatus() != NtStatus.NT_STATUS_UNSUCCESSFUL) {
                        throw se;
                    }
                }
                if (dirents[i].isDirectory()) {
                    dirCount++;
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

                    }
                    file.send(request, response);
                } catch (final SmbException se) {
                    if (file.type == SmbFile.TYPE_NAMED_PIPE && se.getNtStatus() == NtStatus.NT_STATUS_PIPE_BROKEN) {
                        return -1;
                    }
                    throw seToIoe(se);
                }
                n = response.dataLength;
                if (n <= 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top