Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: FileNotFoundException on ftp connection

  1. #1
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: FileNotFoundException on ftp connection

    Can you look at the log for the server and see where it is looking for the file?
    For testing make lots of text.txt files all with different contents and spread them over the possible folders the server would look in. When the file is read, its contents will tell you where it was read from.
    If you don't understand my answer, don't ignore it, ask a question.

  2. The Following User Says Thank You to Norm For This Useful Post:

    hdty (February 10th, 2013)


  3. #2
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: FileNotFoundException on ftp connection

    Thanks Norm for the suggestion.

    In the end I found out that the path I thought I was writing to was a relativa path from my home dir, instead of absolute.

    I discovered this by changing the path from '//home/rezah/test.txt' to just /test.txt it would just create a file on my home directory.

Similar Threads

  1. Replies: 0
    Last Post: March 27th, 2012, 08:00 AM
  2. Scanning large FTP directories with apache.commons.net.ftp
    By daniel_el in forum Java Theory & Questions
    Replies: 3
    Last Post: February 10th, 2012, 06:40 AM
  3. [SOLVED] FileNotFoundException via Scanner
    By mtn_student in forum Exceptions
    Replies: 6
    Last Post: August 31st, 2011, 04:14 PM
  4. simple ftp server and ftp client
    By simontkk2005 in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2011, 10:29 AM
  5. FileNotFoundException!?
    By Shaddam in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: June 29th, 2010, 06:46 PM

Tags for this Thread