Applet Not Writing to FTP
I've been beating my head against this wall for 8-10 hours, today. Please help if you can!
I have a java applet which uses an Apache FTPClient to download some information from a file, then use that information to write a file onto that same FTP server. These are all located in the same directory as the applet itself. When I run this applet in my Eclipse Applet Viewer, it works perfectly, writing the information to the FTP. When I load it from the browser, however, it hangs at that point and never writes. I've signed the only .jar file, and nothing seems to be working. Is there anything else I might be missing?
Re: Applet Not Writing to FTP
No error messages? Are you using chrome? If so you can use the debugger to check out the stack trace. If I were a betting man I would put my money on a SecurityException since applets aren't allowed to read/write to a physical drive (hackers would have a field day if they could).
If would also be worth while logging you program so you can see exactly where it has failed.
Re: Applet Not Writing to FTP
Re: Applet Not Writing to FTP
Re: Applet Not Writing to FTP
Regarding "What Applets Can and Cannot Do...," I've read over that stuff, and the impression that I had was that if I signed my applet, it wouldn't have the same restrictions once the user accepted it, right?
Re: Applet Not Writing to FTP
Ok - Java console is telling me it cannot locate the Apache class that I'd installed -
AWT-EventQueue-2" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
Why might this be happening? I compile fine and include all compiled classes in my jar...
Re: Applet Not Writing to FTP
What are you doing that could be restricted?
I don't know if sending a request to the server that the applet is loaded from is a problem.
Doing file I/O on a local PC is a problem.
You forgot to say if there are error messages in the browser's java console.
Be sure to look. Copy and paste the full text of the messages here.
Re: Applet Not Writing to FTP
IT WORKS! Sorry for wasting everyone's time - as soon as I checked the log, I realized it wasn't finding the apache library because I had to include that jar on the server... Thanks for helping everyone! :) (And sorry for the cross posts...)
By the way - this site was great with the reply times. Bookmarked!
Re: Applet Not Writing to FTP
Quote:
Originally Posted by
jtd200
By the way - this site was great with the reply times. Bookmarked!
For future reference however, please read the forum rules, and please read the following: http://www.javaprogrammingforums.com...s-posting.html
Re: Applet Not Writing to FTP
Ok - read the post about cross-posting, and it does make sense. All apologies, and thanks for the help.