Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for SmbException (0.26 sec)

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

            String p = loc.getURL().getPath();
            if ( p.lastIndexOf('/') != ( p.length() - 1 ) ) {
                throw new SmbException(loc.getURL() + " directory must end with '/'");
            }
            if ( unc.lastIndexOf('\\') != ( unc.length() - 1 ) ) {
                throw new SmbException(unc + " UNC must end with '\\'");
            }
    
            SmbTreeHandleImpl th = getTreeHandle();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 5.3K bytes
    - Viewed (0)
  2. 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
         */
        public SmbFileOutputStream ( SmbFile file ) throws SmbException {
            this(file, false);
        }
    
    
        /**
         * Creates an {@link java.io.OutputStream} for writing bytes to a file
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFile.java

        }
        void connect0() throws SmbException {
            try {
                connect();
            } catch( UnknownHostException uhe ) {
                throw new SmbException( "Failed to connect to server", uhe );
            } catch( SmbException se ) {
                throw se;
            } catch( IOException ioe ) {
                throw new SmbException( "Failed to connect to server", ioe );
            }
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  4. 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");
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/SessionTest.java

            }
        }
    
    
        protected void ignoreAuthFailure ( SmbAuthException e ) throws SmbAuthException {
            if ( e.getCause() != null && e.getCause() instanceof SmbException
                    && ( (SmbException) e.getCause() ).getNtStatus() == NtStatus.NT_STATUS_INVALID_PARAMETER ) {
                // broken samba servers
                Assume.assumeNoException(e);
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFile.java

        }
    
    
        @Override
        public void renameTo ( SmbResource d ) throws SmbException {
            renameTo(d, false);
        }
    
    
        @Override
        public void renameTo ( SmbResource d, boolean replace ) throws SmbException {
            if ( ! ( d instanceof SmbFile ) ) {
                throw new SmbException("Invalid target resource");
            }
            SmbFile dest = (SmbFile) d;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

         * @param transport
         * @return
         * @throws SmbException
         */
        private int waitForState ( SmbTransportImpl transport ) throws SmbException {
            int cs;
            while ( ( cs = this.connectionState.get() ) != 0 ) {
                if ( cs == 2 ) {
                    return cs;
                }
                if ( cs == 3 ) {
                    throw new SmbException("Disconnecting during tree connect");
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 29.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
    
        @Override
        public boolean hasCapability ( int cap ) throws SmbException {
            return getNegotiateResponse().haveCapabilitiy(cap);
        }
    
    
        /**
         * @return the negotiated
         * @throws SmbException
         */
        SmbNegotiationResponse getNegotiateResponse () throws SmbException {
            try {
                if ( this.negotiated == null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/ConcurrencyTest.java

                        log.debug("Open2");
                    }
                    catch ( IOException e ) {
                        if ( e instanceof SmbException && ( (SmbException) e ).getNtStatus() == NtStatus.NT_STATUS_SHARING_VIOLATION ) {
                            this.completed = true;
                            return;
                        }
                        throw e;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/FileAttributesTest.java

    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    
    import jcifs.CIFSException;
    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    import jcifs.smb.NtStatus;
    import jcifs.smb.SmbException;
    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbFileOutputStream;
    import jcifs.smb.SmbUnsupportedOperationException;
    import jcifs.smb.WinError;
    
    
    /**
     * 
     * 
     * 
     * @author mbechler
     */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
Back to top