Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 150 for SmbException (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java

                    @Override
                    public boolean accept(SmbFile file) throws SmbException {
                        if (file == null) {
                            throw new SmbException("null file");
                        }
                        return true;
                    }
                };
                assertThrows(SmbException.class, () -\u003e throwOnNull.accept(null));
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileInputStream.java

            }
            return this.handle.acquire();
        }
    
        /**
         * Converts an SmbException to an IOException
         *
         * @param se the SmbException to convert
         * @return an IOException wrapping the SmbException
         */
        protected static IOException seToIoe(final SmbException se) {
            IOException ioe = se;
            Throwable root = se.getCause();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbCopyUtil.java

         * @param w
         * @param dh
         * @param sh
         * @param req
         * @param resp
         * @throws SmbException
         */
        static void copyFile(final SmbFile src, final SmbFile dest, final byte[][] b, final int bsize, final WriterThread w,
                final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException {
    
            if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            // Simulate network name deleted error
            SmbException networkDeletedError = new SmbException(SmbException.NT_STATUS_NETWORK_NAME_DELETED, false);
            doThrow(networkDeletedError).when(session).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    
            // Execute and verify exception is thrown
            assertThrows(SmbException.class, () -> tree.send(request, response));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbSessionImpl.java

         * Establish a tree connection with the configured logon share
         *
         * @throws SmbException
         */
        @Override
        public void treeConnectLogon() throws SmbException {
            String logonShare = getContext().getConfig().getLogonShare();
            if (logonShare == null || logonShare.isEmpty()) {
                throw new SmbException("Logon share is not defined");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                when(src.toString()).thenReturn("smb://src");
                when(dest.toString()).thenReturn("smb://dest");
    
                // Act + Assert
                SmbException ex =
                        assertThrows(SmbException.class, () -> SmbCopyUtil.copyFile(src, dest, buffers, 8, new WriterThread(), sh, dh));
                assertTrue(ex.getMessage().contains("smb://src"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

        /**
         * Exception flow: filter throws SmbException and it propagates to caller.
         */
        @Test
        @DisplayName("throws SmbException as declared by contract")
        void throwsSmbExceptionFromFilter() {
            SmbFilenameFilter filter = (dir, name) -> {
                throw new SmbException("boom");
            };
    
            SmbException ex = assertThrows(SmbException.class, () -> filter.accept(mockDir, "x"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx));
            SmbException original = new SmbException("original");
            doThrow(original).when(trace).connect(loc);
    
            // Act & Assert
            SmbException ex = assertThrows(SmbException.class, () -> trace.connectWrapException(loc));
            assertSame(original, ex);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

                rpc.retval = errorCode; // Simulate failure
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class));
    
            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new SamrAliasHandle(mockDcerpcHandle, mockSamrDomainHandle, access, rid);
            });
    
            assertEquals(errorCode, thrown.getNtStatus());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/Kerb5Context.java

                    throw new SmbException("Failed to query Kerberos session key from ExtendedGSSContext", ex);
                }
            }
            throw new SmbException("ExtendedGSSContext is not implemented by GSSContext");
        }
    
        @Override
        public byte[] initSecContext(byte[] token, int off, int len) throws SmbException {
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
Back to top