void treeDisconnect( boolean inError ) { synchronized (session.transport()) { if (connectionState != 2) // not-connected return; connectionState = 3; // disconnecting if (!inError && tid != 0) { try { send( new SmbComTreeDisconnect(), null ); } catch( SmbException se ) { if (session.transport.log.level > 1) { se.printStackTrace( session.transport.log ); } } } inDfs = false; inDomainDfs = false; connectionState = 0; session.transport.notifyAll(); } }
void treeDisconnect( boolean inError ) { synchronized (session.transport()) { if (connectionState != 2) // not-connected return; connectionState = 3; // disconnecting if (!inError && tid != 0) { try { send( new SmbComTreeDisconnect(), null ); } catch( SmbException se ) { if (session.transport.log.level > 1) { se.printStackTrace( session.transport.log ); } } } inDfs = false; inDomainDfs = false; connectionState = 0; session.transport.notifyAll(); } }
void treeDisconnect( boolean inError ) { synchronized (session.transport()) { if (connectionState != 2) // not-connected return; connectionState = 3; // disconnecting if (!inError && tid != 0) { try { send( new SmbComTreeDisconnect(), null ); } catch( SmbException se ) { if (session.transport.log.level > 1) { se.printStackTrace( session.transport.log ); } } } inDfs = false; inDomainDfs = false; connectionState = 0; session.transport.notifyAll(); } }
} catch( SmbException se ) { if( log.level > 2 ) se.printStackTrace( log ); if( se.getNtStatus() != se.NT_STATUS_UNSUCCESSFUL ) { throw se;
} catch( SmbException se ) { se.printStackTrace(); } catch (UnknownHostException e) {
SmbTransport.log.println( "Failed validate DC: " + dc_list[i] ); if (SmbTransport.log.level > 2) se.printStackTrace( SmbTransport.log );
SmbTransport.log.println( "Failed validate DC: " + dc_list[i] ); if (SmbTransport.log.level > 2) se.printStackTrace( SmbTransport.log );
SmbTransport.log.println( "Failed validate DC: " + dc_list[i] ); if (SmbTransport.log.level > 2) se.printStackTrace( SmbTransport.log );
/** * It is not necessary to call this method directly. This is the * <tt>URLConnection</tt> implementation of <tt>connect()</tt>. */ public void connect() throws IOException { SmbTransport trans; SmbSession ssn; UniAddress addr; if( isConnected() ) { return; } getUncPath0(); getFirstAddress(); for ( ;; ) { try { doConnect(); return; } catch(SmbAuthException sae) { throw sae; // Prevents account lockout on servers with multiple IPs } catch(SmbException se) { if (getNextAddress() == null) throw se; if (log.level >= 3) se.printStackTrace(log); } } } boolean isConnected() {
/** * It is not necessary to call this method directly. This is the * <tt>URLConnection</tt> implementation of <tt>connect()</tt>. */ public void connect() throws IOException { SmbTransport trans; SmbSession ssn; UniAddress addr; if( isConnected() ) { return; } getUncPath0(); getFirstAddress(); for ( ;; ) { try { doConnect(); return; } catch(SmbAuthException sae) { throw sae; // Prevents account lockout on servers with multiple IPs } catch(SmbException se) { if (getNextAddress() == null) throw se; if (log.level >= 3) se.printStackTrace(log); } } } boolean isConnected() {
} catch (SmbException se) { if( log.level >= 4 ) se.printStackTrace( log );
} catch (SmbException se) { if( log.level >= 4 ) se.printStackTrace( log );
} catch (SmbException se) { if( log.level >= 4 ) se.printStackTrace( log );
e.printStackTrace(listener.error(e.getMessage())); } catch (JIException e) { if(e.getErrorCode()==5)
e.printStackTrace(listener.error(e.getMessage())); } catch (JIException e) { if(e.getErrorCode()==5)
throw se; if (log.level >= 3) se.printStackTrace(log);
se.printStackTrace( log ); } finally { close();
se.printStackTrace( log ); } finally { close();