Page 1 of 5 1234 ... LastLast
Results 1 to 16 of 77

Thread: Java problem

  1. #1
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts

    Java problem

    It's a long paste so i put it in a pastebin

    http://phpfi.com/69714

    The three different pasted sections are the output, the main class and then the JFTP class. For some reason it just doesn't want to logout, it's a simple command which is passed to the ftp object. I'm not sure what's wrong with it but this is all part of the commons-net jakarta library that i'm using.

    If you can find the problem i'd be grateful, cheers

  2. #2
    Don't feed the trolls... tiggerai's Avatar
    Join Date
    Aug 2003
    Location
    Milk & Beans
    Posts
    9,286
    Thanks
    271
    Thanked
    479 times in 313 posts
    • tiggerai's system
      • Motherboard:
      • Gigabyte MA770T-UD3P
      • CPU:
      • AMD PhenomII 955BE
      • Memory:
      • 4Gb Corsair XMS DDR3
      • Storage:
      • Lots
      • Graphics card(s):
      • Sapphire X1950XT
      • PSU:
      • Hiper Type-R 550w
      • Case:
      • Antec lovely black thing
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 2x 20" widescreen
      • Internet:
      • Pipexpants
    Hmmm... I'm looking... can't see anything right now...

    are there any class thingys for the FTPClient class? - no worries, found the API..
    Last edited by tiggerai; 13-07-2005 at 09:15 PM.

  3. #3
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts

  4. #4
    Don't feed the trolls... tiggerai's Avatar
    Join Date
    Aug 2003
    Location
    Milk & Beans
    Posts
    9,286
    Thanks
    271
    Thanked
    479 times in 313 posts
    • tiggerai's system
      • Motherboard:
      • Gigabyte MA770T-UD3P
      • CPU:
      • AMD PhenomII 955BE
      • Memory:
      • 4Gb Corsair XMS DDR3
      • Storage:
      • Lots
      • Graphics card(s):
      • Sapphire X1950XT
      • PSU:
      • Hiper Type-R 550w
      • Case:
      • Antec lovely black thing
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 2x 20" widescreen
      • Internet:
      • Pipexpants
    Can't see anything right now, hot and tired... sorry hun.
    If i'm bored tomorrow, i'll take another look
    (besides, there are better programmers on here anyway)

  5. #5
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    I don't think problems require good programmers, just a good eye

    I have no idea why it's not logging out though, if you check out the FTPClient examples on the link i pasted you'll see that they simply do ftp.logout();. It's a simple method yet doesn't work correctly. I may have to send an e-mail to the commons-net developers

  6. #6
    Don't feed the trolls... tiggerai's Avatar
    Join Date
    Aug 2003
    Location
    Milk & Beans
    Posts
    9,286
    Thanks
    271
    Thanked
    479 times in 313 posts
    • tiggerai's system
      • Motherboard:
      • Gigabyte MA770T-UD3P
      • CPU:
      • AMD PhenomII 955BE
      • Memory:
      • 4Gb Corsair XMS DDR3
      • Storage:
      • Lots
      • Graphics card(s):
      • Sapphire X1950XT
      • PSU:
      • Hiper Type-R 550w
      • Case:
      • Antec lovely black thing
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 2x 20" widescreen
      • Internet:
      • Pipexpants
    I'm usually ok at spotting problems, but the heat and being at work all day doesn't make for good coding conditions!

  7. #7
    Hexus.net Troll Dougal's Avatar
    Join Date
    Jun 2005
    Location
    In your eyeball.
    Posts
    2,750
    Thanks
    0
    Thanked
    0 times in 0 posts
    You tried stepping through the code? Seeing if it actually reaches the switch?
    Quote Originally Posted by Errr...me
    I MSN offline people
    6014 3DMk 05

  8. #8
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Yup, it's reaching the ftp.logout() method but then an IOException is caught, but it doesn't state why which is the annoying part. Well, it does the stacktrace because i tell it to in the catch statement obviously. How annoying!

  9. #9
    Hexus.net Troll Dougal's Avatar
    Join Date
    Jun 2005
    Location
    In your eyeball.
    Posts
    2,750
    Thanks
    0
    Thanked
    0 times in 0 posts
    weird q.

    Whats the OS?
    Quote Originally Posted by Errr...me
    I MSN offline people
    6014 3DMk 05

  10. #10
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    Windows

  11. #11
    Hexus.net Troll Dougal's Avatar
    Join Date
    Jun 2005
    Location
    In your eyeball.
    Posts
    2,750
    Thanks
    0
    Thanked
    0 times in 0 posts
    which one? 2000? xp 2003?
    Quote Originally Posted by Errr...me
    I MSN offline people
    6014 3DMk 05

  12. #12
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    XP Professional

  13. #13
    Hexus.net Troll Dougal's Avatar
    Join Date
    Jun 2005
    Location
    In your eyeball.
    Posts
    2,750
    Thanks
    0
    Thanked
    0 times in 0 posts
    Can you try running it on 2000?

    Some cases of Jakarta have been known to have problems under other OS's
    Quote Originally Posted by Errr...me
    I MSN offline people
    6014 3DMk 05

  14. #14
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    That shouldn't happen whatsoever. The JVM causes the conditions of Java to be the same on every machine hence why Java is platform independant. That's the reason why it is platform independant anyway. Different OS's don't cause Java any problem, neither does different hardware

  15. #15
    Hexus.net Troll Dougal's Avatar
    Join Date
    Jun 2005
    Location
    In your eyeball.
    Posts
    2,750
    Thanks
    0
    Thanked
    0 times in 0 posts
    I'm just saying what i've seen in mail listings.

    Seems as though different OS's have different over ride times and so forth.

    **EDIT***

    Also, not sure about this but, could having a variable set to the same name as the function cause an error? Try making it a diff case like Disconnect.
    Quote Originally Posted by Errr...me
    I MSN offline people
    6014 3DMk 05

  16. #16
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    No it wouldn't at all. If you look my method to logout which i've created has the same name as the method to actually logout in FTPClient. So JFTP and FTPClient both have the same method name to logout. I recently did a lot of OOP study and this doesn't matter at all. Variable names especially don't matter in programming

Page 1 of 5 1234 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DVI problem, pc won't start! help needed.
    By snowwolf in forum Graphics Cards
    Replies: 1
    Last Post: 09-04-2010, 04:11 PM
  2. XFX 6800GT Problem
    By nvisage in forum SCAN.care@HEXUS
    Replies: 45
    Last Post: 07-08-2006, 12:28 AM
  3. Key Java source code to be opened
    By Steve in forum HEXUS News
    Replies: 0
    Last Post: 27-06-2005, 10:54 AM
  4. ATi + Java + BSOD?
    By Kezzer in forum PC Hardware and Components
    Replies: 1
    Last Post: 11-06-2005, 01:26 PM
  5. Wierd Ati driver problem
    By Skii in forum PC Hardware and Components
    Replies: 5
    Last Post: 20-01-2004, 06:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •