aspose file tools*
The moose likes Applets and the fly likes FTPClient Applet Problem on HP-UX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "FTPClient Applet Problem on HP-UX" Watch "FTPClient Applet Problem on HP-UX" New topic
Author

FTPClient Applet Problem on HP-UX

Keith Mc C
Greenhorn

Joined: May 01, 2005
Posts: 23
Hi All,

I have recently ported a project to a HP-UX machine and am having problems with an Applet that uses the FTPClient class.

It throws a 'Connection timed out: connect' exception on this line:

ftp = new FTPClient(server);

I have tried ftping from the HP-UX machine to the destination address and that works fine. Something goes wrong when the applet tries with the same details.

Any help would be brilliant!

Thanks,

Keith.
Keith Mc C
Greenhorn

Joined: May 01, 2005
Posts: 23
Oh and the applet works fine locally.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18124
    
    8

I'm confused. Is the applet running on the HP-UX machine or is it being served from that machine and running somewhere else? And what does "locally" mean?
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

By default, an applet can only connect to the server that 'served' the applet. Connecting to any other server will fail.
If you want to extend the capabilities of an applet, you have to sign it.
Read more from Sun.

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
Keith Mc C
Greenhorn

Joined: May 01, 2005
Posts: 23
Originally posted by Paul Clapham:
I'm confused. Is the applet running on the HP-UX machine or is it being served from that machine and running somewhere else? And what does "locally" mean?


It is running on the HP-UX machine.
by locally i mean it worked fine before porting to HP-UX
Keith Mc C
Greenhorn

Joined: May 01, 2005
Posts: 23
Originally posted by Jan Cumps:
By default, an applet can only connect to the server that 'served' the applet. Connecting to any other server will fail.
If you want to extend the capabilities of an applet, you have to sign it.
Read more from Sun.

Regards, Jan


I have signed the applet. So it should be able to connect as the server details are hard coded in the applet
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

Ah. Maybe it has to do withg the fact that the code does not run as a super user (if you run the browser, and the applet, with an other user then when you run the local test)?

See this info: on UNIX, port numbers below 1024 are reserved for super-user.

Regards, Jan
Keith Mc C
Greenhorn

Joined: May 01, 2005
Posts: 23
I figured it out. The HP-UX machine was on another network, which has tight security. So the network security stopped the Applet from performing the ftp connection, at least when i tried to access the page from here. It worked fine for users on the other network.
I'm going to read that java security page anyways, Thanks guys!
Keith Mc C
Greenhorn

Joined: May 01, 2005
Posts: 23
I figured it out. The HP-UX machine was on another network, which has tight security. So the network security stopped the Applet from performing the ftp connection, at least when i tried to access the page from here. It worked fine for users on the other network.
I'm going to read that java security page anyways, Thanks guys!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FTPClient Applet Problem on HP-UX
 
Similar Threads
ISAPI and SSL
websphere 4.0 on a HP-UX
Any Jintegra experts
CVS on HP-UX
Reading Remote File