Page 1 of 1

jproxy problem

Posted: Fri Jun 26, 2009 9:15 am
by jackp10
Hi
i have been using the jfileupload for quite sometimes now, and i have came across a problem one of our customer have.
the jfileupload works fine for people with normal broadband, but does not work for those people behind a proxy.

I have configured the jfileupload to work with proxy before, but the actual server was behind the proxy itself.
The problem now has got a different scenario. the server does not use proxy, but users that uses it have probrem.
It does return the following error:
"Attention required (The ISA Server requires authorization to fullfill the request... etc etc etc)".

Could someone advice on this problem ??
thanks

Re: jproxy problem

Posted: Sat Jun 27, 2009 10:27 am
by support
I would need you to enable DEBUG mode and post here the traces. See level 2 mode at:
http://www.jfileupload.com/products/jfi ... oting.html

Re: jproxy problem

Posted: Thu Jul 02, 2009 3:29 pm
by jackp10
Dear support
Below is the java error log i have been given from the customer.

======================================================
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer ROOT certificate store
security: Loaded certificates from Internet Explorer ROOT certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Connecting http://www.dnaassets.st-ives.com/nation ... tpimpl.jar with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/nation ... tpimpl.jar with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
basic: Loading http://www.dnaassets.st-ives.com/nation ... tpimpl.jar from cache
basic: Reading cached JAR file from JRE 1.5 release
basic: Certificates for http://www.dnaassets.st-ives.com/nation ... tpimpl.jar is read from JAR cache
network: Connecting http://www.dnaassets.st-ives.com/nation ... client.jar with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/nation ... client.jar with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
basic: Loading http://www.dnaassets.st-ives.com/nation ... client.jar from cache
basic: Reading cached JAR file from JRE 1.5 release
basic: Certificates for http://www.dnaassets.st-ives.com/nation ... client.jar is read from JAR cache
network: Connecting http://www.dnaassets.st-ives.com/nation ... ogging.jar with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/nation ... ogging.jar with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
basic: Loading http://www.dnaassets.st-ives.com/nation ... ogging.jar from cache
basic: Reading cached JAR file from JRE 1.5 release
basic: Certificates for http://www.dnaassets.st-ives.com/nation ... ogging.jar is read from JAR cache
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Connecting http://www.dnaassets.st-ives.com/PORTAL ... properties with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/PORTAL ... properties with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
network: Connecting http://www.dnaassets.st-ives.com/nation ... atchui.jar with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/nation ... atchui.jar with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
network: Connecting http://www.dnaassets.st-ives.com/nation ... atchui.jar with proxy=HTTP @ /192.168.10.20:8000
basic: Loading http://www.dnaassets.st-ives.com/nation ... atchui.jar from cache
basic: Reading cached JAR file from JRE 1.5 release
basic: Certificates for http://www.dnaassets.st-ives.com/nation ... atchui.jar is read from JAR cache
network: Connecting http://www.dnaassets.st-ives.com/PORTAL ... gger.class with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/PORTAL ... gger.class with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
network: Connecting http://www.dnaassets.st-ives.com/PORTAL ... gger.class with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/PORTAL ... gger.class with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
02-Jul-2009 12:10:41 jfileupload.upload.client.MApplet <init>
INFO: JFileUpload 2.2 Build FINAL.001
network: Connecting http://www.dnaassets.st-ives.com/nation ... properties with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/nation ... properties with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
02-Jul-2009 12:10:41 jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings : host = 192.168.10.20
02-Jul-2009 12:10:41 jfileupload.transfer.client.http.HTTPTransfer autoDetectProxy
INFO: Auto-detect proxy settings : port = 8000
02-Jul-2009 12:10:41 jfileupload.transfer.client.http.HTTPTransfer init
INFO: HTTP proxy enabled : 192.168.10.20:8000
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
02-Jul-2009 12:10:41 jfileupload.transfer.client.util.Conf getTransferUI
INFO: TransferUI instantiated : jfileupload.transfer.client.edesign.BatchTransferUI
02-Jul-2009 12:10:41 jfileupload.transfer.client.edesign.BatchTransferUI init
INFO: JBatchUpload 2.2 FINAL.001
network: Connecting http://www.dnaassets.st-ives.com/nation ... properties with proxy=HTTP @ /192.168.10.20:8000
network: Connecting http://www.dnaassets.st-ives.com/nation ... properties with cookie "ARCHFRMT=zip; BASKETNAME=XPB-213.121.204.66-8793; controlpaneltools=off; accountcontents=on; WNPSCALEFIT=true; volumecontents=off; PHPSESSID=dd365b21c611f5b9ce8f89cc409d2335"
02-Jul-2009 12:10:52 jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload (POST) started : C:\Documents and Settings\beth.bethell\My Documents\Work\National Grid\Stock\NG_images_240309\NG_images_240309\NG_images_240309\PBJ43842 - 3x3 Premier (EECN).jpg
network: Connecting socket://192.168.10.20:8000 with proxy=DIRECT
02-Jul-2009 12:10:55 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
02-Jul-2009 12:10:55 org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: No credentials available for NTLM <any realm>@192.168.10.20:8000
02-Jul-2009 12:10:55 jfileupload.transfer.client.http.HTTPUploadTransfer transfer
INFO: Upload Status code = 407
02-Jul-2009 12:10:55 jfileupload.transfer.client.http.HTTPUploadTransfer run
INFO: Upload failed
======================================================


Hope that can help raise a possible solution.
This problem is getting close to be a serious issue for the kind of business i have.

thanks

Re: jproxy problem

Posted: Thu Jul 02, 2009 7:27 pm
by support
Please update to release 2.4.
Also, add the following parameter because your proxy ask for authentication:
<PARAM NAME="authentication" VALUE="auto">

Does it help ?

Re: jproxy problem

Posted: Fri Jul 03, 2009 10:29 am
by jackp10
I can confirm that that line solved the problem..

thank you for the quick response.

Re: jproxy problem

Posted: Fri Jul 03, 2009 5:36 pm
by support
Great !