Results 1 to 7 of 7
  1. #1
    rioz is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default connection with authentication proxy

    Hi all,
    I am in an environment to access internet using authentication proxy. My browser is working properly after setting the proxy. However, when I try to access a page using java and the java console will show the error message.

    network: Connecting http://[url]:80/ with proxy=DIRECT

    In the network settings of java control panel, the 'use browser settings' is checked. I also try to choose use proxy server with proper setting. But both results are the same.

    Does anyone can help give me some hints to solve the problem?

    Below is the full log from java console.

    Thanks, ango

    -----



    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal .bind.,com.sun.imageio.,com.sun.javaws,com.sun.dep loy,com.sun.jnlp
    security: property package.definition value null
    security: property package.definition new value com.sun.javaws
    security: property package.definition value com.sun.javaws
    security: property package.definition new value com.sun.javaws,com.sun.deploy
    security: property package.definition value com.sun.javaws,com.sun.deploy
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal .bind.,com.sun.imageio.,com.sun.javaws,com.sun.dep loy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal .bind.,com.sun.imageio.,com.sun.javaws,com.sun.dep loy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.moz illa.jss
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressList ener@100ab23
    basic: Plugin2ClassLoader.addURL parent called for http://abc.homeip.net/application.jar
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Connecting http://abc.homeip.net/application.jar with proxy=HTTP @ gglisa01/111.11.11.11:8080
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Connecting http://abc.homeip.net/application.jar with proxy=HTTP @ gglisa01/111.11.11.11:8080
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Connecting http://abc.homeip.net/application.jar with proxy=HTTP @ gglisa01/111.11.11.11:8080
    network: Downloading resource: http://abc.homeip.net/application.jar
    Content-Length: 40,266
    Content-Encoding: null
    security: Blacklist revocation check is enabled
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    security: Loading Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loading Deployment certificates from C:\Documents and Settings\peter chan\Application Data\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Documents and Settings\peter chan\Application Data\Sun\Java\Deployment\security\trusted.certs
    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: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    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: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    network: Cache entry not found [url: http://abc.homeip.net/application.jar, version: null]
    basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 166263 us, pluginInit dt 2562452 us, TotalTime: 2728715 us
    network: Cache entry not found [url: http://abc.homeip.net/, version: null]
    basic: Loaded image: http://abc.homeip.net/jpg/alarm.jpg
    basic: Applet initialized
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressList ener@100ab23
    basic: Applet made visible
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet started
    basic: Told clients applet is started
    login run
    First-login
    network: Connecting http://abc.homeip.net:80/ with proxy=DIRECT

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    rioz is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default

    Standard Edition
    Version 6 update 23 (build 1.6.0_23-b05) mentioned as the latest version.

    ango

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  6. #6
    rioz is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default

    I have only one Java installation. It keeps connecting to url with proxy=direct no matter I set network proxy settings to use browser settings or manually input proxy server in java control panel.

    First-login
    network: Connecting socket://[url]:80 with proxy=DIRECT
    Error:java.net.ConnectException: Connection timed out: connect
    First-login
    network: Connecting socket://[url]:80 with proxy=DIRECT
    Error:java.net.ConnectException: Connection timed out: connect
    First-login
    network: Connecting socket://[url]:80 with proxy=DIRECT

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    If you have a connection timeout, have to check several things.

    1. Too many requests overloading the server. Check all your requests and see how the requests are open.

    2. A firewall may block packets without let it know to the sender.

    3. Packet loos due to wrong configurations.

    4. If you are using multiple threads to request simultaneously, they can hang up. Careful with multiple threads.

    Bu the time, did you try to increase the connection timeout?

Similar Threads

  1. Proxy authentication using HttpClient 4.0.3
    By Jsharma in forum Advanced Java
    Replies: 0
    Last Post: 01-21-2011, 03:33 AM
  2. Java client - proxy connection
    By ragnonerodocet in forum Networking
    Replies: 0
    Last Post: 03-10-2010, 06:21 PM
  3. Connection failure due to proxy problems
    By thalupularavi in forum Networking
    Replies: 2
    Last Post: 03-10-2010, 02:52 PM
  4. Basic authentication without a secure connection
    By Tokajac in forum Web Frameworks
    Replies: 0
    Last Post: 04-23-2009, 07:33 PM
  5. Replies: 1
    Last Post: 08-05-2008, 10:18 AM

Tags for this Thread

Posting Permissions

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