Package org.apache.ftpserver.ftplet

Examples of org.apache.ftpserver.ftplet.FtpException


            LOG.info("Unbinding " + dn);
            adminContext.unbind(dn);
        }
        catch(NamingException ex) {
            LOG.error("LdapUserManager.delete()", ex);
            throw new FtpException("LdapUserManager.delete()", ex);
        }
    }
View Full Code Here


               fos = new FileOutputStream(userDataFile);
               userDataProp.store(fos, "Generated file - don't edit (please)");
           }
           catch(IOException ex) {
               LOG.error("Failed saving user data", ex);
               throw new FtpException("Failed saving user data", ex);
           }
           finally {
               IoUtils.close(fos);
           }
    }
View Full Code Here

            if(!passive) {
                int localPort = dataConfig.getActiveLocalPort();
                if(secure) {
                    SslConfiguration ssl = dataConfig.getSslConfiguration();
                    if(ssl == null) {
                        throw new FtpException("Data connection SSL not configured");
                    }
                    if(localPort == 0) {
                        dataSoc = createSocket(ssl, address, port, null, localPort, false);
                    }
                    else {
View Full Code Here

            rs = stmt.executeQuery(sql);
            return rs.next();
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.isAdmin()", ex);
            throw new FtpException("DbUserManager.isAdmin()", ex);
        }
        finally {
            if(rs != null) {
                try {
                    rs.close();
View Full Code Here

            stmt = createConnection().createStatement();
            stmt.executeUpdate(sql);
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.delete()", ex);
            throw new FtpException("DbUserManager.delete()", ex);
        }
        finally {
            if(stmt != null) {
                try {
                    stmt.close();
View Full Code Here

            stmt = createConnection().createStatement();
            stmt.executeUpdate(sql);
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.save()", ex);
            throw new FtpException("DbUserManager.save()", ex);
        }
        finally {
            if(stmt != null) {
                try {
                    stmt.close();
View Full Code Here

            }
            return thisUser;
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.getUserByName()", ex);
            throw new FtpException("DbUserManager.getUserByName()", ex);
        }
        finally {
            if(rs != null) {
                try {
                    rs.close();
View Full Code Here

            rs = stmt.executeQuery(sql);
            return rs.next();
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.doesExist()", ex);
            throw new FtpException("DbUserManager.doesExist()", ex);
        }
        finally {
            if(rs != null) {
                try {
                    rs.close();
View Full Code Here

            }
            return names.toArray(new String[0]);
        }
        catch(SQLException ex) {
            LOG.error("DbUserManager.getAllUserNames()", ex);
            throw new FtpException("DbUserManager.getAllUserNames()", ex);
        }
        finally {
            if(rs != null) {
                try {
                    rs.close();
View Full Code Here

            throw ex;
        }
        catch(Exception ex) {
            container.destroy();
            LOG.error("FtpletContainer.init()", ex);
            throw new FtpException("FtpletContainer.init()", ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ftpserver.ftplet.FtpException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.