- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 148 for SmbException (0.11 seconds)
-
src/main/java/jcifs/http/NtlmHttpFilter.java
} } return new NtlmChallenge(trans.getServerEncryptionKey(), dc); } catch (final SmbException e) { throw e; } catch (final IOException e) { throw new SmbException("Connection failed", e); } } /** * @return */ private CIFSContext getTransportContext() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
* the smb URL syntax. * * @param file * An <code>SmbFile</code> specifying the file to write to * @throws SmbException if an SMB error occurs */ public SmbFileOutputStream(final SmbFile file) throws SmbException { this(file, false); } /** * Creates an {@link java.io.OutputStream} for writing bytes to a fileCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
rpc.retval = errorCode; // Simulate error return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class)); // Act & Assert SmbException thrown = assertThrows(SmbException.class, () -> { new SamrDomainHandle(mockDcerpcHandle, mockPolicyHandle, access, mockSid); }); assertEquals(errorCode, thrown.getNtStatus());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(config.getTransactionBufferSize()).thenReturn(65535); when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenThrow(new SmbException("boom")); IOException ex = assertThrows(IOException.class, stream::available, "Should convert SmbException to IOException"); assertTrue(ex.getMessage().contains("boom")); } @Test @DisplayName("ensureTreeConnected delegates to handle")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
} @Override public synchronized SmbFileHandleImpl ensureOpen() throws CIFSException { if (!this.open) { throw new SmbException("Pipe handle already closed"); } if (!isOpen()) { try (SmbTreeHandleImpl th = ensureTreeConnected()) { if (th.isSMB2()) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 10.2K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
rpc.retval = errorCode; // Simulate RPC error return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class)); // Act & Assert SmbException thrown = assertThrows(SmbException.class, () -> { new LsaPolicyHandle(mockDcerpcHandle, server, access); }); // The error code gets mapped to NT_STATUS_UNSUCCESSFUL because it's not a valid NT status codeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(handle.isValid()).thenReturn(false); SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0, false); SmbException ex = assertThrows(SmbException.class, sut::watch, "Expected SmbException when handle invalid"); assertTrue(ex.getMessage().contains("Watch was broken by tree disconnect")); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
* * @author mbechler */ public class SmbPipeInputStream extends SmbFileInputStream { private final SmbPipeHandleImpl handle; /** * @param handle * @param th * @throws SmbException */ SmbPipeInputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException { super(handle.getPipe(), th, null); this.handle = handle; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
@Test @DisplayName("getFid/getFileId throw SmbException when invalid") void getters_throw_whenInvalid() { when(cfg.isTraceResourceUsage()).thenReturn(false); stubValidTree(1L, true, true); SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, new byte[] { 0x01, 0x02 }, tree, "//x", 0, 0, 0, 0, 0L); // invalidate h.markClosed(); SmbException ex1 = assertThrows(SmbException.class, h::getFid);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 33.4K bytes - Click Count (0)