Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] java – it.sauronsoftware.ftp4j.FTPListParseException while retrieving Files List

Posted on November 11, 2022 By

Solution 1 :

Using ftp4j was a bad idea, i think its not mature enough instead of this i replaced my code and started using Apache Commons lib that works smoothly.

Problem :

I’m using ftp4j lib to upload download files from a server through an FTP Client. While retrieving the files list it’s giving an error.

My code is:

int port = 21;
String server = getResources().getString(R.string.FTPServer);
String username = getResources().getString(R.string.FTPUser);
String password = getResources().getString(R.string.FTPPwd);
String remotePath = "/";

FTPClient ftpClient = new FTPClient(); //ftp clientimiz
ftpClient.setType(FTPClient.TYPE_BINARY);
ftpClient.connect(server, port);
// ftpClient.setPassive(true);
ftpClient.login(username, password);
ftpClient.changeDirectory(remotePath);
FTPFile[] list = ftpClient.list();

Error details are shown in the following image:
error in file list

FileZilla is listing files correctly, kindly suggest a solution.

READ  [FIXED] service - Porting Android Studio Project into AOSP: need Android.mk
Powered by Inline Related Posts
Android Tags:android-studio, ftp-client, java

Post navigation

Previous Post: [FIXED] Xamarin.forms – Trouble behaviour between ListView & keyboard
Next Post: [FIXED] android – two elements in linear layout are packed to center instead of to the sides

Related Posts

[FIXED] android – Flutter shared_preferences Build failed with an exception Android
[FIXED] android – “A RenderFlex overflowed by 60 pixels on the bottom” error on flutter Android
[FIXED] java – Can´t use intent to move data to another activity Android
[FIXED] Why android take photos should offer a content provider? Android
[FIXED] java – unable to convert string resource name into resource Android
[FIXED] android – React native gradlew assembleRelease build failed. Execution failed for task ‘:app:mergeReleaseResources’ Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme