Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for TransportException (0.1 sec)

  1. src/main/java/jcifs/smb1/util/transport/Transport.java

                case 4:
                    state = 0;
                    throw new TransportException("Connection in error", te);
                default:
                    final TransportException te = new TransportException("Invalid state: " + state);
                    state = 0;
                    throw te;
                }
    
                state = 1;
                te = null;
                thread = new Thread(this, name);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

                TransportException exception = new TransportException("Message", rootCause);
    
                assertEquals(rootCause, exception.getRootCause());
            }
    
            @Test
            @DisplayName("Should return null when no root cause")
            void testGetRootCauseWhenNull() {
                TransportException exception = new TransportException("Message");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/transport/Transport.java

                case 4:
                    this.state = 6;
                    throw new TransportException("Connection in error", this.te);
                case 5:
                case 6:
                    log.debug("Trying to connect a disconnected transport");
                    return false;
                default:
                    final TransportException tex = new TransportException("Invalid state: " + st);
                    throw tex;
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

    import jcifs.internal.smb1.com.SmbComClose;
    import jcifs.internal.smb1.com.SmbComFindClose2;
    import jcifs.internal.smb1.trans.nt.NtTransQuerySecurityDesc;
    import jcifs.util.transport.TransportException;
    
    /**
     * This class encapsulates the logic for switching tree connections
     *
     * Switching trees can occur either when the tree has been disconnected by failure or idle-timeout - as well as on
     * DFS referrals.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTransport.java

    import jcifs.smb1.util.LogStream;
    import jcifs.smb1.util.transport.Request;
    import jcifs.smb1.util.transport.Response;
    import jcifs.smb1.util.transport.Transport;
    import jcifs.smb1.util.transport.TransportException;
    
    /**
     * Legacy SMB transport implementation for SMB1 protocol communication.
     * Handles the low-level transport layer for SMB1 protocol messages.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

    import jcifs.Address;
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.SmbConstants;
    import jcifs.SmbTransport;
    import jcifs.SmbTransportPool;
    import jcifs.util.transport.TransportException;
    
    /**
     * Implementation of the SMB transport pool for managing SMB connections.
     * Provides connection pooling and reuse for improved performance.
     *
     * @author mbechler
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
        protected static IOException seToIoe(final SmbException se) {
            IOException ioe = se;
            Throwable root = se.getCause();
            if (root instanceof TransportException) {
                ioe = (TransportException) root;
                root = ioe.getCause();
            }
            if (root instanceof InterruptedException) {
                ioe = new InterruptedIOException(root.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            @Test
            @DisplayName("seToIoe maps Interrupted cause to InterruptedIOException")
            void seToIoeInterruptedMapping() {
                SmbException se = new SmbException("x", new jcifs.util.transport.TransportException(new InterruptedException("boom")));
                IOException ioe = SmbFileInputStream.seToIoe(se);
                assertTrue(ioe instanceof InterruptedIOException);
                assertTrue(ioe.getMessage().contains("boom"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            // Configure the tree to throw transport error on first call, succeed on second
            when(tree.send(eq(req), eq(resp), anySet()))
                    .thenThrow(new SmbException("transport error", new jcifs.util.transport.TransportException()))
                    .thenReturn(resp);
    
            setTree(c, tree);
    
            // Override connectHost to avoid actual network connection on retry
            doAnswer(invocation -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top