JFileUpload Failed to Detect Proxy Server

Upload core product.
Post Reply
coolshot26
Posts: 1
Joined: Fri Apr 12, 2013 10:52 pm

JFileUpload Failed to Detect Proxy Server

Post by coolshot26 »

I am using the JFileUpload applet to upload files to a remote site. I'm getting the following error: java.net.ConnectException: Connection timed out: connect

I checked the java logs and know what is the issue:

Apr 11, 2013 5:31:04 PM jfileupload.transfer.client.http.HTTPTransfer registerSSLSocketFactory
INFO: WeakSSL registered for HTTPS
Apr 11, 2013 5:31:04 PM jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings : host = null
Apr 11, 2013 5:31:04 PM jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings : port = -1
basic: Applet initialized
basic: Starting applet
basic: completed perf rollup
basic: Applet made visible
basic: Applet started
basic: Told clients applet is started
Apr 11, 2013 5:31:19 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Users\lienn\Desktop\testing.txt
network: Connecting http://pacificdocument.com:80/ with proxy=DIRECT
Apr 11, 2013 5:31:40 PM jfileupload.transfer.client.http.HTTPUploadTransfer transfer
SEVERE: java.net.ConnectException: Connection timed out: connect
Apr 11, 2013 5:31:40 PM jfileupload.transfer.client.http.HTTPUploadTransfer run
INFO: Upload failed

All Internet communication goes through the Proxy server. However, from the log, it doesn't seem like JFileUpload is detecting the Proxy. I've already configured the Java Control Panel to use the Browser settings and that didn't work. I changed the option in Java Control Panel to "Use Proxy Server" and explicitly entered the Proxy server and that didn't work either. I can't explicitly set the Applet parameter for proxy since the application is available outside of the internal network.

I don't know what else I'm overlooking, but I can't seem get JFileUpload to detect the proxy correctly.

Please help.

Thanks.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: JFileUpload Failed to Detect Proxy Server

Post by support »

You may have disabled Proxy support in Java Control panel. Could you check Network settings in Control Panel-> Java -> Network? What do you have for Proxy? Direct connection?

You can also force proxy host/port through httpproxyhost/httpproxyport extra parameter:
http://www.jfileupload.com/products/jfi ... _http.html

Post Reply