Announcement

Collapse
No announcement yet.

FTPS Zugang - 503 Bad sequence of commands

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • FTPS Zugang - 503 Bad sequence of commands

    Hallo ich arbeite zur Zeit an einem Projekt bei dem es darum geht dateien von einem FTPS Server runterzuladen.

    Das funktioniert mit eclipse unter Windows auch schon alles, nur das seltsame ist,
    wenn ich das gleiche projekt mit eclipse unter Linux öffne bekomme ich folgende Exception:

    javax.net.ssl.SSLException: 503 Bad sequence of commands.

    hier auszugsweise mein code:

    Code:
    		FTPSClient ftpsClient = new FTPSClient();
    		String host = p.getProperty("hostname");
    		int port = 21;
    		String usr = p.getProperty("username");
    		String pwd = p.getProperty("password");
    		
    		try {
    			ftpsClient.connect(host, port);
    		} catch (SSLException e){
    			System.out.println(e);
    		}
    
    		if (FTPReply.isPositiveCompletion(reply)) {
    			try {
    				ftpsClient.login(usr, pwd);
    			} catch (IOException e) {
    				e.printStackTrace();
    			}
    		}
    Die Zugangsdaten bekomme ich vom Property-File korrekt,
    die Exception wird direkt beim .connect Befehl geworfen.

    Ich hoffe jemand hat eine Idee woran das liegen kann.

    Danke,
    maggo119
    Zuletzt editiert von maggo119; 28.09.2011, 10:32.

  • #2
    Debugge mal das Connect durch, um zu sehen, was die Exception wirft
    Christian

    Comment

    Working...
    X