Skip navigation
Currently Being Moderated

Problems with sample.basicftp

Apr 13, 2011 12:51 AM

Hi,

 

I have just tested the samples from the Drive SDK.

The 'HelloWorld' example works fine.

 

I have then tested the 'sample.basicftp' and even I can connect to the FTP-Server no files or directories were listed.

I also can't write on the FTP-Drive, because it is write protected.

I have activated the debug messages in 'log4j.xml'.

 

This is a snippet from the output of the log:

 

 

 

ConnectHandler - -->In()   

FtpClientHelper - connecting server: xxx.xxx.152.179 

FtpClientHelper - connected   

ConnectHandler - -->Out()   

GetVolumeIconHandler - -->In()   

GetVolumeIconHandler - -->Out()   

GetConnectionDetailsHandler - -->In()   

GetConnectionDetailsHandler - -->Out()   

GetAssetsHandler - -->In()    

GetAssetsHandler - -->In()    

GetAssetsHandler - (assetId:null | parentId:/ | assetPath:/Contents)

GetAssetsHandler - (assetId:null | parentId:/ | assetPath:/mach_kernel)

GetAssetsHandler - Attempting to determine asset type: /Contents

GetAssetsHandler - Attempting to determine asset type: /mach_kernel

GetAssetsHandler - Asset not found

GetAssetsHandler - -->Out()

GetAssetsHandler - Asset not found

GetAssetsHandler - -->Out()

GetAssetsHandler - -->In()

GetAssetsHandler - (assetId:null | parentId:/ | assetPath:/autoexec.bat)


.....


GetChildrenHandler - (assetId:/ | parentId:null | assetPath:/)

GetChildrenHandler - -->Out()    

GetAssetsHandler - -->In()    

GetAssetsHandler - (assetId:null | parentId:/ | assetPath:/.TemporaryItems)

GetAssetsHandler - -->Out()   

GetAssetsHandler - -->In()   

GetAssetsHandler - (assetId:null | parentId:/ | assetPath:/.Trashes)

GetAssetsHandler - -->Out()   

DisconnectHandler - -->In()   

FtpClientHelper - disconnected server: xxx.xxx.152.179 

DisconnectHandler - -->Out()  

 

 

 

 

 

I wonder about the asset names 'Contents', 'mach_kernel', 'autoexec.bat' and so on.

There are no files or directories on the remote or local system with these names.

 

So my questions is:

Is there an error in the sample, or is it me doing something wrong?

 
Replies
  • Currently Being Moderated
    Apr 14, 2011 7:31 PM   in reply to Snap-OM

    Hello,

     

    From the log, the platform you testing basicftp connector is Mac OS X, right?  Could you tell me your FTP server type, like IIS, Mac FTP server or Filezilla? Can you try to use a ftp client to connect your ftp server with your account?

     

     

    Thanks,

    Zhiqiang

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2011 5:42 AM   in reply to Snap-OM

    If the directory that user tries to access has no list priviledge, Adobe Drive will show empty directory, and it's correct.  Therefore, you need to check your pure ftp server configuration firstly, then remove your basicftp server in 'Recent Connections' Panel and reconnect it again.

    For the issue that service.getHostAddress() returns your local IP Address, you can edit /etc/hosts file, replacing your local address with the actual network address.

    As you mentioned that everything seems to be right when you connect to your local FTP server but failed when you connect to your remote FTP server, I tried to set up a pure ftp server on a machine and use Adobe Drive to connect it on another machine, it works well. Maybe you should check your network configuration firstly.

    Additionally, we can investigate your problem if  you can provide your pure ftp server connection info to us.

     
    |
    Mark as:
  • Currently Being Moderated
    May 3, 2011 6:54 AM   in reply to Snap-OM

    Adobe Drive will ping server periodically, you can refer to SDK API: ICheckServerOnlineStatusHandler. Therefore, I think your log is reasonable.

     

    My email address is 'huli@adobe.com'.

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2011 3:11 AM   in reply to Snap-OM

    Hi Snap-OM,

     

    I used FileZilla ftp client to connect your ftp server, and it showed empty directory which was the same as Adobe Drive's result. Then I used ftp command 'ls' to list the names of the files under the root directory, the console printed '425 Could not open data connection to port 36795: Connection refused'(I had closed my firewall). From this message, I think that you need to open a range of ports in your ftp server's firewall so that client can access ftp contents successfully.

     

    Thanks,

    Hui

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2011 5:01 AM   in reply to Snap-OM

    Hi,

     

    Thank you for your info. Currently,  basicftp sample uses 'active' mode. After changing the mode to passive, Adobe Drive can browse your ftp server's contents.

     

    Thanks,

    Hui

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2011 10:07 PM   in reply to Lee Hui

    We'll ship a new version of the sample with the next release of the SDK.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 27, 2011 10:33 AM   in reply to Snap-OM

    We plan to update this sample with the next release of the Adobe Drive SDK.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points