Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Empty List when using FTP
Empty List when using FTP [message #29191] Mon, 03 November 2008 15:26 Go to next message
Katie is currently offline KatieFriend
Messages: 2
Registered: July 2009
Junior Member
I just got a hold of Eclipse RSE, and I am attempting to use it to connect
to my remote webhost using FTP. However, using the default settings, while
it does connect properly, and appears to change to the correct folder
(watching the console text, I see it move to /silverso which is my home
directory), the Home list is -always- empty. This happens whether it is an
active or a passive connection. I know there are files and folders in
there. Anyone have any ideas what I can do to see my files and folders?
Re: Empty List when using FTP [message #29343 is a reply to message #29191] Wed, 05 November 2008 14:54 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Katie,

this sounds like a list parsing exception. Please open a bugzilla
bug for the issue:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Target%2 0Management

You can try the following:
1.) Check the error log. Any exceptions there?
Window > Show View > Error Log
or
Help > About > Configuration Details >

2.) Create a subfolder of your home, which only holds 1 file.
In RSE, after connecting FTP, create a filter for that
subfolder:
Right-click > New > Filter : folder=/silverso/subFolder
can you see the contents of subfolder?

3.) Attach contents of the FTP Logging Console.

4.) Connect your FTP server with some commandline FTP client,
and attach output on the bug:
ftp yourhost
ftp> dir


Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Katie wrote:
> I just got a hold of Eclipse RSE, and I am attempting to use it to
> connect to my remote webhost using FTP. However, using the default
> settings, while it does connect properly, and appears to change to the
> correct folder (watching the console text, I see it move to /silverso
> which is my home directory), the Home list is -always- empty. This
> happens whether it is an active or a passive connection. I know there
> are files and folders in there. Anyone have any ideas what I can do to
> see my files and folders?
>
Re: Empty List when using FTP [message #29381 is a reply to message #29343] Wed, 05 November 2008 14:56 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
PS when your homedir contains a file that was changed
on 29 Feb 2008, the issue could be
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220939

which we should be able to fix reasonably soon by moving
to the newly released Commons Net 2.0

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm

Martin Oberhuber wrote:
> Hi Katie,
>
> this sounds like a list parsing exception. Please open a bugzilla
> bug for the issue:
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Target%2 0Management
>
> You can try the following:
> 1.) Check the error log. Any exceptions there?
> Window > Show View > Error Log
> or
> Help > About > Configuration Details >
>
> 2.) Create a subfolder of your home, which only holds 1 file.
> In RSE, after connecting FTP, create a filter for that
> subfolder:
> Right-click > New > Filter : folder=/silverso/subFolder
> can you see the contents of subfolder?
>
> 3.) Attach contents of the FTP Logging Console.
>
> 4.) Connect your FTP server with some commandline FTP client,
> and attach output on the bug:
> ftp yourhost
> ftp> dir
>
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Katie wrote:
>> I just got a hold of Eclipse RSE, and I am attempting to use it to
>> connect to my remote webhost using FTP. However, using the default
>> settings, while it does connect properly, and appears to change to the
>> correct folder (watching the console text, I see it move to /silverso
>> which is my home directory), the Home list is -always- empty. This
>> happens whether it is an active or a passive connection. I know there
>> are files and folders in there. Anyone have any ideas what I can do to
>> see my files and folders?
>>
Re: Empty List when using FTP [message #29491 is a reply to message #29191] Thu, 13 November 2008 17:56 Go to previous messageGo to next message
Jon Wilson is currently offline Jon WilsonFriend
Messages: 35
Registered: July 2009
Member
Hi,

I've just installed RSE and have been trying to make an FTP connection
to a target platform running uClinux.

I get the same problem - FTP connects but I can't see remote
files/folders. If I create a file I can use Linux cmd line ftp or
telnet to the target to see that the file has been created but it still
doesn't appear in the Eclipse view.

I took a Wireshark trace and can see the FTP-DATA packets containing the
file listing being returned but nothing appears in the Eclipse view.
FileZilla and Firefox have the same problem (they connect but don't list
files). But cmd line ftp works so I'm sure TM could be made to work. I
suspect the date/time parsing as our target currently always returns 0,
e.g.:

root:/> ls -la
drwxr-xr-x 15 0 0 0 .
drwxr-xr-x 15 0 0 0 ..
drwxrwxr-x 2 0 0 0 bin

Is there anyway to relax the parsing through configuration or do I need
to look at creating a new parser? If the latter, how would I go about
debugging this in the plug-in? Can someone point at the general area in
the code that deals with LIST parsing?

Cheers,

Jon


Katie wrote:
> I just got a hold of Eclipse RSE, and I am attempting to use it to
> connect to my remote webhost using FTP. However, using the default
> settings, while it does connect properly, and appears to change to the
> correct folder (watching the console text, I see it move to /silverso
> which is my home directory), the Home list is -always- empty. This
> happens whether it is an active or a passive connection. I know there
> are files and folders in there. Anyone have any ideas what I can do to
> see my files and folders?
>
Re: Empty List when using FTP [message #29556 is a reply to message #29491] Fri, 21 November 2008 14:02 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Jon,

I think you should be able to configure the date format just by editing
plugin.xml -- you can do this by self-hosting to debug it, i.e. you
modify the UNIX ftp listing parser extension; if it works you can just
copy that extension into your own plugin (with a different name), and
that way you can ship an extension to RSE to make your uCLinux targets work.

Self-hosting, see
http://wiki.eclipse.org/TM_and_RSE_FAQ#Working_on_TM_.2F_RSE
* File > Import > Plug-In Development > Plug-ins and fragments
- org.eclipse.rse.subsystems.files.ftp
- import with source folders

Edit plugin.xml of that plugin, enter a proper recentDateFormatStr
into the "UNIX" listingParser extension, see
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/extension-points/org_eclipse_rse_subsystems_ files_ftp_ftpListingParsers.html

* Run > Run Configurations > New "Eclipse Application" Launch, Run

test and see if it works

If it works, in order to bind "Your" listing parser against your
target by autodetection, check and see what the "SYST" command
returns on your target. Put a regular expression matching that
String into your listingParser extension.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Jon Wilson wrote:
> Hi,
>
> I've just installed RSE and have been trying to make an FTP connection
> to a target platform running uClinux.
>
> I get the same problem - FTP connects but I can't see remote
> files/folders. If I create a file I can use Linux cmd line ftp or
> telnet to the target to see that the file has been created but it still
> doesn't appear in the Eclipse view.
>
> I took a Wireshark trace and can see the FTP-DATA packets containing the
> file listing being returned but nothing appears in the Eclipse view.
> FileZilla and Firefox have the same problem (they connect but don't list
> files). But cmd line ftp works so I'm sure TM could be made to work. I
> suspect the date/time parsing as our target currently always returns 0,
> e.g.:
>
> root:/> ls -la
> drwxr-xr-x 15 0 0 0 .
> drwxr-xr-x 15 0 0 0 ..
> drwxrwxr-x 2 0 0 0 bin
>
> Is there anyway to relax the parsing through configuration or do I need
> to look at creating a new parser? If the latter, how would I go about
> debugging this in the plug-in? Can someone point at the general area in
> the code that deals with LIST parsing?
>
> Cheers,
>
> Jon
>
>
> Katie wrote:
>> I just got a hold of Eclipse RSE, and I am attempting to use it to
>> connect to my remote webhost using FTP. However, using the default
>> settings, while it does connect properly, and appears to change to the
>> correct folder (watching the console text, I see it move to /silverso
>> which is my home directory), the Home list is -always- empty. This
>> happens whether it is an active or a passive connection. I know there
>> are files and folders in there. Anyone have any ideas what I can do to
>> see my files and folders?
>>
Re: Empty List when using FTP [message #37541 is a reply to message #29556] Wed, 22 July 2009 05:08 Go to previous messageGo to next message
leandro schmitz is currently offline leandro schmitzFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

I've the same problem with LIST command in FTP connection.
FTP don't list the directors and files in the LIST command request in
a uClinux target.

When I use a Standart Linux FTP Client the LIST command work:
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
bin dev drivers etc home lib mnt proc
sbin sys tmp usr var
226 Transfer complete.

When I use Eclipse RSE FTP Client the LIST command doesn't work:
LIST -a
150 Opening BINARY mode data connection for '/bin/ls'.

226 Transfer complete.

A dump observation:
- FTP Client LIST response is in ASCII mode, and in RSE is in BINARY mode.

Pheraps everyone already noted it, but I'd like reforce it.

Tks
Re: Empty List when using FTP [message #468024 is a reply to message #37541] Mon, 03 August 2009 16:37 Go to previous message
Jon Wilson is currently offline Jon WilsonFriend
Messages: 35
Registered: July 2009
Member
I've since written an Eclipse plugin that uses the Apache Commons FTP
library and I had to write my own parser to get it to work with uClinux.

If you want to get your hands dirty you'll need to create a class that
implements FTPFileEntryParserFactory and returns object(s) that
implement FTPFileEntryParser.

You can then construct an FTPClient with your new class:

FTPClient ftp = new FTPClient();
ftp.setParserFactory(new MyFtpEntryParserFactory());

Hope this helps you or anyone else with the same issue!

Cheers,

Jon


leandro schmitz wrote:
> Hello,
> I've the same problem with LIST command in FTP connection.
> FTP don't list the directors and files in the LIST command request in
> a uClinux target.
>
> When I use a Standart Linux FTP Client the LIST command work:
> ftp> ls
> 200 PORT command sucessful.
> 150 Opening ASCII mode data connection for '/bin/ls'.
> bin dev drivers etc home lib mnt proc
> sbin sys tmp usr var
> 226 Transfer complete.
>
> When I use Eclipse RSE FTP Client the LIST command doesn't work:
> LIST -a
> 150 Opening BINARY mode data connection for '/bin/ls'.
>
> 226 Transfer complete.
>
> A dump observation:
> - FTP Client LIST response is in ASCII mode, and in RSE is in BINARY mode.
>
> Pheraps everyone already noted it, but I'd like reforce it.
>
> Tks
>
>
>
>
Re: Empty List when using FTP [message #577855 is a reply to message #29191] Wed, 05 November 2008 14:54 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Katie,

this sounds like a list parsing exception. Please open a bugzilla
bug for the issue:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Target%2 0Management

You can try the following:
1.) Check the error log. Any exceptions there?
Window > Show View > Error Log
or
Help > About > Configuration Details >

2.) Create a subfolder of your home, which only holds 1 file.
In RSE, after connecting FTP, create a filter for that
subfolder:
Right-click > New > Filter : folder=/silverso/subFolder
can you see the contents of subfolder?

3.) Attach contents of the FTP Logging Console.

4.) Connect your FTP server with some commandline FTP client,
and attach output on the bug:
ftp yourhost
ftp> dir


Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Katie wrote:
> I just got a hold of Eclipse RSE, and I am attempting to use it to
> connect to my remote webhost using FTP. However, using the default
> settings, while it does connect properly, and appears to change to the
> correct folder (watching the console text, I see it move to /silverso
> which is my home directory), the Home list is -always- empty. This
> happens whether it is an active or a passive connection. I know there
> are files and folders in there. Anyone have any ideas what I can do to
> see my files and folders?
>
Re: Empty List when using FTP [message #577866 is a reply to message #29343] Wed, 05 November 2008 14:56 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
PS when your homedir contains a file that was changed
on 29 Feb 2008, the issue could be
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220939

which we should be able to fix reasonably soon by moving
to the newly released Commons Net 2.0

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm

Martin Oberhuber wrote:
> Hi Katie,
>
> this sounds like a list parsing exception. Please open a bugzilla
> bug for the issue:
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Target%2 0Management
>
> You can try the following:
> 1.) Check the error log. Any exceptions there?
> Window > Show View > Error Log
> or
> Help > About > Configuration Details >
>
> 2.) Create a subfolder of your home, which only holds 1 file.
> In RSE, after connecting FTP, create a filter for that
> subfolder:
> Right-click > New > Filter : folder=/silverso/subFolder
> can you see the contents of subfolder?
>
> 3.) Attach contents of the FTP Logging Console.
>
> 4.) Connect your FTP server with some commandline FTP client,
> and attach output on the bug:
> ftp yourhost
> ftp> dir
>
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Katie wrote:
>> I just got a hold of Eclipse RSE, and I am attempting to use it to
>> connect to my remote webhost using FTP. However, using the default
>> settings, while it does connect properly, and appears to change to the
>> correct folder (watching the console text, I see it move to /silverso
>> which is my home directory), the Home list is -always- empty. This
>> happens whether it is an active or a passive connection. I know there
>> are files and folders in there. Anyone have any ideas what I can do to
>> see my files and folders?
>>
Re: Empty List when using FTP [message #577913 is a reply to message #29191] Thu, 13 November 2008 17:56 Go to previous message
Jon Wilson is currently offline Jon WilsonFriend
Messages: 35
Registered: July 2009
Member
Hi,

I've just installed RSE and have been trying to make an FTP connection
to a target platform running uClinux.

I get the same problem - FTP connects but I can't see remote
files/folders. If I create a file I can use Linux cmd line ftp or
telnet to the target to see that the file has been created but it still
doesn't appear in the Eclipse view.

I took a Wireshark trace and can see the FTP-DATA packets containing the
file listing being returned but nothing appears in the Eclipse view.
FileZilla and Firefox have the same problem (they connect but don't list
files). But cmd line ftp works so I'm sure TM could be made to work. I
suspect the date/time parsing as our target currently always returns 0,
e.g.:

root:/> ls -la
drwxr-xr-x 15 0 0 0 .
drwxr-xr-x 15 0 0 0 ..
drwxrwxr-x 2 0 0 0 bin

Is there anyway to relax the parsing through configuration or do I need
to look at creating a new parser? If the latter, how would I go about
debugging this in the plug-in? Can someone point at the general area in
the code that deals with LIST parsing?

Cheers,

Jon


Katie wrote:
> I just got a hold of Eclipse RSE, and I am attempting to use it to
> connect to my remote webhost using FTP. However, using the default
> settings, while it does connect properly, and appears to change to the
> correct folder (watching the console text, I see it move to /silverso
> which is my home directory), the Home list is -always- empty. This
> happens whether it is an active or a passive connection. I know there
> are files and folders in there. Anyone have any ideas what I can do to
> see my files and folders?
>
Re: Empty List when using FTP [message #577962 is a reply to message #29491] Fri, 21 November 2008 14:02 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Jon,

I think you should be able to configure the date format just by editing
plugin.xml -- you can do this by self-hosting to debug it, i.e. you
modify the UNIX ftp listing parser extension; if it works you can just
copy that extension into your own plugin (with a different name), and
that way you can ship an extension to RSE to make your uCLinux targets work.

Self-hosting, see
http://wiki.eclipse.org/TM_and_RSE_FAQ#Working_on_TM_.2F_RSE
* File > Import > Plug-In Development > Plug-ins and fragments
- org.eclipse.rse.subsystems.files.ftp
- import with source folders

Edit plugin.xml of that plugin, enter a proper recentDateFormatStr
into the "UNIX" listingParser extension, see
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/extension-points/org_eclipse_rse_subsystems_ files_ftp_ftpListingParsers.html

* Run > Run Configurations > New "Eclipse Application" Launch, Run

test and see if it works

If it works, in order to bind "Your" listing parser against your
target by autodetection, check and see what the "SYST" command
returns on your target. Put a regular expression matching that
String into your listingParser extension.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Jon Wilson wrote:
> Hi,
>
> I've just installed RSE and have been trying to make an FTP connection
> to a target platform running uClinux.
>
> I get the same problem - FTP connects but I can't see remote
> files/folders. If I create a file I can use Linux cmd line ftp or
> telnet to the target to see that the file has been created but it still
> doesn't appear in the Eclipse view.
>
> I took a Wireshark trace and can see the FTP-DATA packets containing the
> file listing being returned but nothing appears in the Eclipse view.
> FileZilla and Firefox have the same problem (they connect but don't list
> files). But cmd line ftp works so I'm sure TM could be made to work. I
> suspect the date/time parsing as our target currently always returns 0,
> e.g.:
>
> root:/> ls -la
> drwxr-xr-x 15 0 0 0 .
> drwxr-xr-x 15 0 0 0 ..
> drwxrwxr-x 2 0 0 0 bin
>
> Is there anyway to relax the parsing through configuration or do I need
> to look at creating a new parser? If the latter, how would I go about
> debugging this in the plug-in? Can someone point at the general area in
> the code that deals with LIST parsing?
>
> Cheers,
>
> Jon
>
>
> Katie wrote:
>> I just got a hold of Eclipse RSE, and I am attempting to use it to
>> connect to my remote webhost using FTP. However, using the default
>> settings, while it does connect properly, and appears to change to the
>> correct folder (watching the console text, I see it move to /silverso
>> which is my home directory), the Home list is -always- empty. This
>> happens whether it is an active or a passive connection. I know there
>> are files and folders in there. Anyone have any ideas what I can do to
>> see my files and folders?
>>
Re: Empty List when using FTP [message #582056 is a reply to message #29556] Wed, 22 July 2009 05:08 Go to previous message
leandro schmitz is currently offline leandro schmitzFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

I've the same problem with LIST command in FTP connection.
FTP don't list the directors and files in the LIST command request in
a uClinux target.

When I use a Standart Linux FTP Client the LIST command work:
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
bin dev drivers etc home lib mnt proc
sbin sys tmp usr var
226 Transfer complete.

When I use Eclipse RSE FTP Client the LIST command doesn't work:
LIST -a
150 Opening BINARY mode data connection for '/bin/ls'.

226 Transfer complete.

A dump observation:
- FTP Client LIST response is in ASCII mode, and in RSE is in BINARY mode.

Pheraps everyone already noted it, but I'd like reforce it.

Tks
Re: Empty List when using FTP [message #582068 is a reply to message #37541] Mon, 03 August 2009 16:37 Go to previous message
Jon Wilson is currently offline Jon WilsonFriend
Messages: 35
Registered: July 2009
Member
I've since written an Eclipse plugin that uses the Apache Commons FTP
library and I had to write my own parser to get it to work with uClinux.

If you want to get your hands dirty you'll need to create a class that
implements FTPFileEntryParserFactory and returns object(s) that
implement FTPFileEntryParser.

You can then construct an FTPClient with your new class:

FTPClient ftp = new FTPClient();
ftp.setParserFactory(new MyFtpEntryParserFactory());

Hope this helps you or anyone else with the same issue!

Cheers,

Jon


leandro schmitz wrote:
> Hello,
> I've the same problem with LIST command in FTP connection.
> FTP don't list the directors and files in the LIST command request in
> a uClinux target.
>
> When I use a Standart Linux FTP Client the LIST command work:
> ftp> ls
> 200 PORT command sucessful.
> 150 Opening ASCII mode data connection for '/bin/ls'.
> bin dev drivers etc home lib mnt proc
> sbin sys tmp usr var
> 226 Transfer complete.
>
> When I use Eclipse RSE FTP Client the LIST command doesn't work:
> LIST -a
> 150 Opening BINARY mode data connection for '/bin/ls'.
>
> 226 Transfer complete.
>
> A dump observation:
> - FTP Client LIST response is in ASCII mode, and in RSE is in BINARY mode.
>
> Pheraps everyone already noted it, but I'd like reforce it.
>
> Tks
>
>
>
>
Previous Topic:Dstore won't authenticate, SSH does
Next Topic:connect manually to subsistem ...
Goto Forum:
  


Current Time: Thu Apr 25 10:51:11 GMT 2024

Powered by FUDForum. Page generated in 0.04752 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top