• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Help with FTP transfer

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to implement a part of my program such that it will up/download files to/from my ftp server. The server is set up correctly; that is, I can access it from a web browser just by typing in the server address. However, when I try to access it from within my application, it throws a ConnectionException error. The port is open, firewall disabled, etc, etc. Here is the code, gotten pretty much word for word from here. My code is below. Any help would be great; I'm under a bit of a time crunch.

 
Marshal
Posts: 27275
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you say, the server is fine. I could connect and even sign in. (You have an easily-guessed password, so I edited the user ID in your post.)

So that most likely means there's no problem with the code, but the problem is somewhere in the Android configuration. However you might get some clue from looking at the stack trace to see whether the error is thrown when trying to connect, when trying to log in, or when trying to set passive mode.
 
Sean Charboneau
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have also tried running that same code in a standalone application separate from the Android environment (minus the Android-specific code), with no more luck. The following is the error I get:

 
reply
    Bookmark Topic Watch Topic
  • New Topic